Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- set_time_limit(0);
- echo"
- [+]======================================[+]
- [+] Get Joomla/wordpress by list IP [+]
- [+] hamza killer [+]
- [+]======================================[+]
- ";
- echo"
- # File IP server ->";
- $ips=trim(fgets(STDIN,1024));
- $d=@file_get_contents($ips);
- if(!$d){
- echo"
- [-] no file found try again";
- exit();
- }
- $v=explode("\n",$d);
- $t=count($v);
- if($t == 0){
- echo"
- [-] n0 ip found exiting";
- exit();
- }
- echo"
- [+] loded $t ip \n";
- echo"
- [1] Joomla
- [2] wordpress
- # Put her -->";
- $sdr=trim(fgets(STDIN));
- if($sdr == 1){
- $fp=fopen('joom1.txt','a+');
- }elseif($sdr == 2){
- $fp=fopen('wp1.txt','a+');
- }
- foreach($v as $vs){
- echo"
- # Start With $vs \n";
- if($sdr == 1){
- $dork = urlencode("ip:$vs index.php?option=com_");
- }elseif($sdr == 2)
- {
- $dork = urlencode("ip:$vs ?page_id=");
- }
- $pages = pages($dork);
- $scanaed = array();
- for($i=1;$i<=$pages;$i=$i+10){
- $src = file_get_contents("http://www.bing.com/search?q=$dork&first=$i");
- preg_match_all('/<cite>(.*?)<strong>/',$src,$matches);
- $sites = $matches[1];
- foreach($sites as $site){
- $sitet = trim(str_replace('www.','',str_replace('/','',$site)));
- $site=str_ireplace("?","",$site);
- echo"
- http://$site";
- fwrite($fp,"ip = $vs \n \nhttp://$site\n");
- }
- }
- }
- system('hamza.txt');
- function pages($dork){
- $src = file_get_contents("http://www.bing.com/search?q=$dork&go=&qs=n&sk=&filt=all&first=199&FORM=PERE3");
- $ex = explode('<span class="sb_count" id="count">',$src);
- $ex = explode('-',$ex['1']);
- return $ex[0];
- }
- function check($url)
- {
- /*
- by xsecurity
- */
- $url=(!eregi("http://www",$url))?str_replace("http://","http://www.",$url):$url;
- $m = parse_url($url);
- return "http://".$m[host]."/";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement