Jenkins RCE with Groovy Script
Jenkins RCE with Groovy Script
This is less noisy than creating a new project in Jenkins
Go to path_jenkins/script
Inside the text box introduce the script
You could execute a command using: cmd.exe /c dir
In linux you can do: "ls /".execute().text
If you need to use quotes and single quotes inside the text. You can use """PAYLOAD""" (triple double quotes) to execute the payload.
Another useful groovy script is (replace [INSERT COMMAND]):
Reverse shell in linux
Reverse shell in windows
You can prepare a HTTP server with a PS reverse shell and use Jeking to download and execute it:
Script
You can automate this process with this script.
You can use MSF to get a reverse shell:
Last updated