Advertisement
SAINTSATRIA

leaked-clear.php

May 16th, 2019
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1.  
  2. <?php
  3. //error_reporting(1);
  4. error_reporting(E_ALL);
  5. ini_set('display_errors', TRUE);
  6. ini_set('display_startup_errors', TRUE);
  7.  
  8. $argv = $_SERVER['argv'];
  9. $file_ls = trim($argv['1']);
  10. if ($file_ls == ''){
  11. echo "\LIMPADOR DE SITES\n---\n";
  12. echo "Uso: php ".trim($argv['0'])." lista.txt\n---\n";
  13. echo "* by Kevinho\n";
  14. exit(1);
  15. }
  16.  
  17. echo "\LIMPADOR DE SITES\n---\n";
  18. echo "Uso: php ".trim($argv['0'])." lista.txt\n---\n";
  19. echo "* by Kevinho\n";
  20.  
  21. ////////////////////////////////////////////////
  22.  
  23.  
  24. $h = fopen($file_ls, "r");
  25.  
  26. $fp = fopen("tmp_sites.txt", "a");
  27. $i = 0;
  28.  
  29. if ($h) {
  30.  
  31. while (!feof($h)) {
  32.  
  33.  
  34. $urll = trim(fgets($h));
  35. if(strpos($urll, "option=")){
  36. $i++;
  37. $aux = explode("index.php", $urll);
  38. $url = $aux[0];
  39. //$scheme = parse_url($url, PHP_URL_SCHEME);// sem o ://
  40. //if($scheme == ''){$scheme = 'http';}
  41. //$host = parse_url($url, PHP_URL_HOST);
  42. //$path = parse_url($url, PHP_URL_PATH);
  43. //$url_final = $scheme . "://" . $host;
  44. $url_final = $url;
  45. fwrite($fp, $url_final."\n");
  46. echo "[$i] URL: ".$url_final."\n";
  47.  
  48. }
  49.  
  50. }
  51.  
  52. fclose($h);
  53.  
  54. }
  55.  
  56.  
  57.  
  58. $cmd = system("sort tmp_sites.txt |uniq > OK_JOOM.txt");
  59. $cmd2 = system("wc -l OK_JOOM.txt");
  60. $cmd3 = system("rm -rf tmp_sites.txt");
  61.  
  62. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement