JustPaste.it

<?php set_time_limit(86400) ?>
<html>
<head>
<title>BİGERAN WP Tespit</title>
</head>

<form action="" method="POST">
<center>

<?php
if($_POST){
$dil = $_POST["dil"];
$kelime = $_POST["kelime"];

function sayfayaBaglan( $_URL ){
$useragent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; tr-TR; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13';
$referer = 'http://www.google.com/';
$ch = curl_init();
$zaman = 0;
curl_setopt ($ch, CURLOPT_URL, $_URL);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $zaman);
curl_setopt ($ch, CURLOPT_REFERER, $referer);
curl_setopt ($ch, CURLOPT_USERAGENT, $useragent);
$rmx = curl_exec($ch);
curl_close($ch);
return $rmx;
}

$emptyArray = array();

function varmi($arr, $new){

$sonuc = false;

foreach ( $arr as $key ){

if ( mb_substr($key, 0, 15, 'UTF-8') == mb_substr($new, 0, 15, 'UTF-8') ){

$sonuc = true;
break;

}

}

return $sonuc;

}

for ( $page = 0; $page < 21; $page = $page + 10){

//$adresdd = "https://www.google.com.".$dil."/search?q=wordpress&og=wordpress&start=".$aa."&sourceid=chrome&ie=UTF-8";
$adresdd = "https://www.google.com/search?q=".$kelime."&start=".$page."&lr=lang_".$dil."&sourceid=chrome&ie=UTF-8";

echo '<b>Arama yapılan SAYFA: '.$adresdd.'</b><br /><hr>';

flush(); ob_get_contents(); ob_flush();

$siteAdresi = sayfayaBaglan($adresdd);

preg_match_all('#<h3 class="r"><a href=''#', $siteAdresi, $ciktiMage);

foreach ($ciktiMage[1] as $key){

if ( strstr($key, '/url?q=') ){

$key = str_replace('/url?q=', '', $key);

$keyExp = explode('sa=', $key);

$key = mb_substr($keyExp[0], 0, -5);

$siteAdresi2 = sayfayaBaglan($key);

if ( strstr($siteAdresi2, 'wp-content') ){

echo '<input type="hidden" name="ali[]" value="'.$key.'" />'.$key.' <b style="color:green;"><-- Site Wordpress! &#x2714;</b><br />';

// AYNI OLANLARI EKLEMEYECEK..

$varmi = varmi($emptyArray, $key);

if ( $varmi == false ){

array_push($emptyArray, $key);

}

}else{

echo $key.'<b style="color:red;"><-- Site Wordpress Değil! X</b><br />';

}
}
}

flush(); ob_get_contents(); ob_flush();

} // FOR

// KAYIT

$metin = ''; foreach ( $emptyArray as $key ){ $metin .= $key.chr(10); }

$whereFileWrite = fopen('wpsiteler-'.$dil.'-'.$kelime.'.txt', 'w'); fwrite($whereFileWrite, $metin); fclose($whereFileWrite);

}
?>
<br>
<label for="firstname">Ülke Kodu Girin :</label>
<input class=" form-control" name="dil" type="text"><br /><br/>
<label for="firstname">Arama Metni :</label>
<input class=" form-control" name="kelime" type="text"><br/><br/>
<input type="submit" value="Gonder" style="border:none;width:75px;height:25px;background-color:red;border-radius:3px;color:white;" />
</form>

</center>
</html>