Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $path="./shells.txt"; //tapez le chemin des shells
- $dest="./result.html"; // tapez le chemin ou vous voulez sauvegardez les shells ;
- $motrech="Unames"; //tapez le mots rechercez
- function connect($url) {
- $im = curl_init($url);
- curl_setopt($im, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($im, CURLOPT_CONNECTTIMEOUT, 10);
- curl_setopt($im, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($im, CURLOPT_HEADER, 0);
- $retour=curl_exec($im);
- return $retour;
- curl_close();
- }
- $ge=@file_get_contents($path);
- $x=explode("\r\n",$ge);
- $op1=fopen($dest,"w+");
- foreach($x as $url) {
- $ka=connect($url);
- echo " scanning :" .$url ."\n\r";
- if (eregi($motrech,$ka)){
- echo "\found \n\r ";
- fwrite($op1,"$url<br>");
- }
- }
- /* $test="";
- $daba=connect($test);
- if (eregi($motrech,$daba)){
- echo " cbon" ;
- } */
- //echo $daba;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement