Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1.  
  2. <?php
  3. $path="./shells.txt"; //tapez le chemin des shells
  4. $dest="./result.html"; // tapez le chemin ou vous voulez sauvegardez les shells ;
  5. $motrech="Unames"; //tapez le mots rechercez
  6.  
  7.  
  8.  
  9. function connect($url) {
  10. $im = curl_init($url);
  11. curl_setopt($im, CURLOPT_RETURNTRANSFER, 1);
  12. curl_setopt($im, CURLOPT_CONNECTTIMEOUT, 10);
  13. curl_setopt($im, CURLOPT_FOLLOWLOCATION, 1);
  14. curl_setopt($im, CURLOPT_HEADER, 0);
  15. $retour=curl_exec($im);
  16. return $retour;
  17. curl_close();
  18. }
  19.  
  20.  
  21.  
  22.  
  23. $ge=@file_get_contents($path);
  24. $x=explode("\r\n",$ge);
  25. $op1=fopen($dest,"w+");
  26. foreach($x as $url) {
  27. $ka=connect($url);
  28. echo " scanning :" .$url ."\n\r";
  29. if (eregi($motrech,$ka)){
  30. echo "\found \n\r ";
  31. fwrite($op1,"$url<br>");
  32. }
  33. }
  34.  
  35.  
  36.  
  37. /* $test="";
  38. $daba=connect($test);
  39. if (eregi($motrech,$daba)){
  40. echo " cbon" ;
  41. } */
  42. //echo $daba;
  43.  
  44.  
  45. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement