smziaurrashid icon

WPInstall Scaner

smziaurrashid | PRO | 03/08/16 05:18:30 AM UTC | 0 ⭐ | 346 👁️ | Never ⏰ | []
PHP |

12.6 KB

|

None

|

0 👍

/

0 👎

<!DOCTYPE html>
<html>
<head>
<title>./WPInstall Scaner</title>
<link href="http://www.iconj.com/ico/i/v/iv1f9cw51h.ico" rel="icon"><link href="http://khillmeeh.mw.lt/css/style.css" rel='stylesheet' type='text/css' />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
</script>
<script src="http://khillmeeh.mw.lt/js/jquery.min.js"></script>
<script src="http://khillmeeh.mw.lt/js/easyResponsiveTabs.js" type="text/javascript"></script>
                <script type="text/javascript">
                    $(document).ready(function () {
                        $('#horizontalTab').easyResponsiveTabs({
                            type: 'default',         
                            width: 'auto', 
                            fit: true  
                        });
                    });
                   </script>
</head>
<body>
    <h1>WPInstall Scaner By 54K16 & Kazi Shaheb</h1>
 
<div class="main-content">
    <div class="sap_tabs">  
         
        <div id="horizontalTab" style="display: block; width: 100%; margin: 0px;">
        
<?php
 
//coded by 54K16
@set_time_limit(0);
error_reporting(0);
if(isset($_POST['s'])){
 
$do=1;
$site = $_POST["host"]; if($site==''){ $error ="Enter server address!"; $do=0;}
if (filter_var($site, FILTER_VALIDATE_IP) === false) {  $error ="Error =>Invalid IP"; $do=0;}
$proxy = $_POST["proxy"];
$method = $_POST["method"];
if($proxy=='1'){
$ip = $_POST["ip"];
$port = $_POST["port"];
$wp='';
 
if($method=='1'){
if($ip == '' || $port==''){ $error ="Enter Ip & Port!";$do=0;} } }
 
if($do=='1'){
if($method=='1'){
$ghost = "http://domains.yougetsignal.com/domains.php";
$ch = curl_init($ghost);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
if($proxy =='1'){
curl_setopt($ch, CURLOPT_PROXYTYPE,CURLPROXY_HTTP);
curl_setopt($ch, CURLOPT_PROXY,"$ip");
curl_setopt($ch, CURLOPT_PROXYPORT,"$port");
}
curl_setopt($ch, CURLOPT_POSTFIELDS,  "remoteAddress=$site&ket=");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
$resp = curl_exec($ch);
if(eregi('Daily reverse IP check limit reached for', $resp )){
echo "<p align='center' dir='ltr'><font face='Arial Black' size='2'> Failed =>ip have been banned, Change ip </font></p>";
$do=0;
}
if(eregi('Invalid remote address.', $resp )){
echo "<p align='center' dir='ltr'><font face='Arial Black' size='2'>Failed =>Invalid remote address</font></p>";
$do=0;
}
$resp = str_replace("[","", str_replace("]","", str_replace("\"\"","", str_replace(", ,",",", str_replace("{","", str_replace("{","", str_replace("}","", str_replace(", ",",", str_replace(", ",",",  str_replace("'","", str_replace("'","", str_replace(":",",", str_replace('"','', $resp ) ) ) ) ) ) ) ) ) ))));
$array = explode(",,", $resp);
unset($array[0]);
 
echo "<center><h4>Total ".sizeof($array)." sites found!</h4><br><br></center>";
foreach($array as $lnk)
{
$link= $lnk."\r\n";
$linnk = rtrim($link, "");
$file = "link.txt";
$handle = fopen($file, 'a');
fwrite($handle, "$linnk");
fclose($handle);
}
}
if($method=='2'){
 
echo "<center><h4>Total ".sizeof(bing($site))." sites found!</h4><br><br></center>";
 
foreach(bing($site) as $domain){
$link= $domain."\r\n";
$linnk = rtrim($link, "");
$file = "link.txt";
$handle = fopen($file, 'a');
fwrite($handle, "$linnk");
fclose($handle);
 
}
 
 
 
}
 
 
if($method=='3'){
    
$ghost = "http://api.hackertarget.com/reverseiplookup/?q=$site";
$ch = curl_init($ghost);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt($ch, CURLOPT_HEADER, 0);
$resp = curl_exec($ch);
$link = preg_replace("/\s+/", "\r\n", $resp);
$linnk = rtrim($link, "");
$file = "link.txt";
$handle = fopen($file, 'a');
fwrite($handle, "$linnk");
fclose($handle);
}
 
 
if (!file_exists("link.txt")){
$error ='Something Wrong...Try again..';
$do=0;
}
 
 
}
 
 
 
 
 
 
if($do=='1'){
$s=file_get_contents("link.txt");
$sites = explode("\r\n", $s);
$domains=count($sites);
unlink('link.txt');
if($method=='3'){
echo "<center><h4>Total $domains sites found!</h4><br><br></center>";
}
echo "<center><h4>Scaning Sites by 'wp-admin/setup-config.php'</h4></center>";
for($i=0; $i<$domains; $i++){
$host= ($sites[$i]);
$domain = Removecomma($host);
$domain = str_replace(array("http://", "https://", "www."), "", trim($domain));
$domai = "http://" . $domain.'/wp-admin/setup-config.php';
 
if($domain ==''){
    continue;
    }
 
 
    ob_flush();
    flush(); 
$ch = curl_init($domai);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 5); 
$data = curl_exec($ch);
 
 
 
if(eregi('Select a default language', $data )){
echo "<p align='center' dir='ltr'><font face='Arial Black' size='2'>Found! install WP now =><font color='#F0FFF0'> $domai </font></font></p>";
    ob_flush();
    flush();
    continue;
}
if(eregi("already exists.", $data )){
    echo "<p align='center' dir='ltr'><font face='Arial Black' size='2'>Already WP Installed =><font color='#9ACD32'> $domain </font></font></p>";
    $wp=$wp.$domain."\r\n";
    ob_flush();
    flush();
    continue;
    }
else{   
    echo "<p align='center' dir='ltr'><font face='Arial Black' size='2'>HTTP Error =><font color='#008080'> $domain </font></font></p>";
    ob_flush();
    flush();
    continue;
}
 
}
 
echo "<center><h4>Scaning Sites by 'blog/wp-admin/setup-config.php'</h4></center>";
for($i=0; $i<$domains; $i++){
$host= ($sites[$i]);
$domain = Removecomma($host);
$domain = str_replace(array("http://", "https://", "www."), "", trim($domain));
$domai = "http://" . $domain.'/blog/wp-admin/setup-config.php';
 
if($domain ==''){
    continue;
    }
 
 
    ob_flush();
    flush(); 
$ch = curl_init($domai);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 5); 
$data = curl_exec($ch);
 
 
 
if(eregi('Select a default language', $data )){
echo "<p align='center' dir='ltr'><font face='Arial Black' size='2'>Found! install WP now =><font color='#F0FFF0'> $domai </font></font></p>";
    ob_flush();
    flush();
    continue;
}
if(eregi("already exists.", $data )){
    echo "<p align='center' dir='ltr'><font face='Arial Black' size='2'>Already WP Installed =><font color='#9ACD32'> $domain </font></font></p>";
    $wp=$wp.$domain."\r\n";
    ob_flush();
    flush();
    continue;
    }
else{   
    echo "<p align='center' dir='ltr'><font face='Arial Black' size='2'>HTTP Error =><font color='#008080'> $domain </font></font></p>";
    ob_flush();
    flush();
    continue;
}
 
}
 
 
echo "<center><h4>Scaning Sites by 'wp/wp-admin/setup-config.php'</h4></center>";
for($i=0; $i<$domains; $i++){
$host= ($sites[$i]);
$domain = Removecomma($host);
$domain = str_replace(array("http://", "https://", "www."), "", trim($domain));
$domai = "http://" . $domain.'/wp/wp-admin/setup-config.php';
 
if($domain ==''){
    continue;
    }
 
 
    ob_flush();
    flush(); 
$ch = curl_init($domai);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 5); 
$data = curl_exec($ch);
 
 
 
if(eregi('Select a default language', $data )){
echo "<p align='center' dir='ltr'><font face='Arial Black' size='2'>Found! install WP now =><font color='#F0FFF0'> $domai </font></font></p>";
    ob_flush();
    flush();
    continue;
}
if(eregi("lready exists.", $data )){
    echo "<p align='center' dir='ltr'><font face='Arial Black' size='2'>Already WP Installed =><font color='#9ACD32'> $domain </font></font></p>";
    $wp=$wp.$domain."\r\n";
    ob_flush();
    flush();
    continue;
    }
else{   
    echo "<p align='center' dir='ltr'><font face='Arial Black' size='2'>HTTP Error =><font color='#008080'> $domain </font></font></p>";
    ob_flush();
    flush();
    continue;
}
 
}
 
echo "<center><h4>Scaning Sites by 'wordpress/wp-admin/setup-config.php'</h4></center>";
for($i=0; $i<$domains; $i++){
$host= ($sites[$i]);
$domain = Removecomma($host);
$domain = str_replace(array("http://", "https://", "www."), "", trim($domain));
$domai = "http://" . $domain.'/wordpress/wp-admin/setup-config.php';
 
if($domain ==''){
    continue;
    }
 
 
    ob_flush();
    flush(); 
$ch = curl_init($domai);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 5); 
$data = curl_exec($ch);
 
 
 
if(eregi('Select a default language', $data )){
echo "<p align='center' dir='ltr'><font face='Arial Black' size='2'>Found! install WP now =><font color='#F0FFF0'> $domai </font></font></p>";
    ob_flush();
    flush();
    continue;
}
if(eregi("already exists.", $data )){
    echo "<p align='center' dir='ltr'><font face='Arial Black' size='2'>Already WP Installed =><font color='#9ACD32'> $domain </font></font></p>";
    $wp=$wp.$domain."\r\n";
    ob_flush();
    flush();
    continue;
    }
else{   
    echo "<p align='center' dir='ltr'><font face='Arial Black' size='2'>HTTP Error =><font color='#008080'> $domain </font></font></p>";
    ob_flush();
    flush();
    continue;
}
 
}
 
 
echo '<br><br><h2>Scaning Finished .';
}
 
$file = "wp.txt";
$handle = fopen($file, 'a');
fwrite($handle, "WordPress Sites \r\n"."$wp");
fclose($handle);
 
 
}
function Removecomma($host) {
if (strrpos($host, ',', -1) == strlen($host) - 1) {
return substr($host, 0, strrpos($host, ',', -1));
} else {
return $host;
}
}
function bing($site){
$ch=curl_init();
$i=1;
while($i){
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_URL,"http://www.bing.com/search?q=ip%3A$site&first=$i");
curl_setopt($ch,CURLOPT_COOKIEFILE,'cookie.txt');
curl_setopt($ch,CURLOPT_COOKIEJAR,'cookie.txt');
curl_setopt($ch,CURLOPT_USERAGENT,'msnbot/1.0 (+http://search.msn.com/msnbot.htm)');
curl_setopt($ch,CURLOPT_ENCODING,"gzip, deflate, compress");
$data=curl_exec($ch);
preg_match_all('/<h2><a href="(.*?)"/',$data,$matches);
$links=array_unique($matches[1]);
foreach($links as $link){
$alllinks[]=correctit($link);
}
if(!preg_match('#"sw_next"#',$data)) break;
$i+=10;
}
curl_close($ch);
if(!empty($alllinks) && is_array($alllinks)){
return array_unique($alllinks);
}
}
function correctit($http){
if((strpos(trim($http), "http://") === 0) || (strpos(trim($http), "https://") === 0)){
return parse_url($http, PHP_URL_HOST);
}else{
return trim($http);
}
}
 
 
?>
 
         <?php if(isset($error)): ?>
            <h3><?php echo $error ?></h3></br></br>
        <?php endif ?>
              <ul>
                  <li class="resp-tab-item" aria-controls="tab_item-0" role="tab"><span>Without Proxy</span></li>
                  <li class="resp-tab-item" aria-controls="tab_item-1" role="tab"><span>With Proxy</span></li>
                  
              </ul>     
              <!---->
 
            <div class="tab-1 resp-tab-content" aria-labelledby="tab_item-0">
                <div class="facts">
                    <!--login1-->
                    <div class="register">
                        <form method="POST"><input type="hidden" name="proxy" value="0" >
                            
                         <select name=method>
  <option value="1">Youget Signal</option>
  <option value="2" selected>Bing</option>
  <option value="3">Hacker Target</option>>
  
                             <input placeholder="IP" name="host" type="text" required="">                                   
                                <div class="sign-up">
                                    <input type="submit" name="s" value="Start Scan"/>
                                </div>
                        </form>
                    </div>
                </div>
            </div>  
 
            <div class="tab-2 resp-tab-content" aria-labelledby="tab_item-1">
                <div class="facts">
                    <div class="register">
                        <form method="POST"><input type="hidden" name="proxy" value="1" >
                        <div class="proxy"><input placeholder="Proxy IP" name="ip" type="text" required=""></div>
            <div class="proxy"><input placeholder="Proxy Port" name="port" type="text" required=""></div>           
                    <select name=method>
  <option value="1">Youget Signal</option>
  <option value="2" selected>Bing</option>
  <option value="3">Hacker Target</option>>
  
                             <input placeholder="IP" name="host" type="text" required="">                                   
                                <div class="sign-up">
                                    <input type="submit" name="s" value="Start Scan"/>
                            </div>
                        </form>
                    </div>
                </div> 
            </div>                                                            
                
        </div>  
        
    </div>
</div>
<!--start-copyright-->
        <div class="copy-right">
            <div class="wrap">
                <p>&copy; 2016 <a href="http://facebook.com/cybercommand0s">TeaM_CC</a>,  All Rights  Reserved | Designed by 54K16</p>
            </div>
        </div>
    <!--//end-copyright-->
 
</body>
</html>

Comments