8080 - Jenkins
Jenkins is a free and open source automation server. It helps automate the parts of software development related to building, testing, and deploying, facilitating continuous integration and continuous delivery.
Enumeration
Jenkins run by default on port 8080
Exploitation
Basic command execution (Authenticated)
Press 'Create a job'
Choose a name and Create new freestyle project
In the
build
section pressExecute shell
Enter the command you would like (based on OS)
Press 'Save'
On the project dashboard go to
Build now
Press the newly created number under 'Build History'
Press
Console houtput
See output of the command.
To execute a different command press 'back to project' and then 'configure'
Groovy Script
Jenkins features a nice Groovy script console which allows one to run arbitrary Groovy scripts within the Jenkins master runtime or in the runtime on agents.
Reverse Shell from the web interface
At Jenkins Dashboard go to Manage Jenkins
and then select Script Console
, run the following code for reverse shell:
For windows:
Linux:
Executing commands local:
Metasploit
uses the Jenkins-CI Groovy script console to execute OS commands using Java:
use exploit/multi/http/jenkins_script_console
Last updated