Jenkins RCE with Groovy Script
Last updated
Last updated
Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE) Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)
Hii ni kimya zaidi kuliko kuunda mradi mpya katika Jenkins
Nenda kwenye path_jenkins/script
Ndani ya kisanduku cha maandiko ingiza script
You could execute a command using: cmd.exe /c dir
In linux you can do: "ls /".execute().text
If you need to use quotes and single quotes inside the text. You can use """PAYLOAD""" (triple double quotes) to execute the payload.
Script ya groovy nyingine yenye manufaa ni (badilisha [INSERT COMMAND]):
Unaweza kuandaa seva ya HTTP yenye PS reverse shell na kutumia Jeking kupakua na kuitekeleza:
Unaweza kuendesha mchakato huu kwa kutumia hiki skripti.
Unaweza kutumia MSF kupata shell ya kurudi:
Jifunze na fanya mazoezi ya AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE) Jifunze na fanya mazoezi ya GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)