2013-12-31 00:18:14

Reverse IP Domain CheckⅡ

<?php
/**
 * Created BY Saline
 * Date : 13-7-23
 * Time : 上午10:09
 * FileName : domain.php
 * 感谢独自等待提供类似代码
 */
print_r('
<pre>
+-------------------------------------------------+
               Reverse IP Domain CheckⅡ
            Site:http://fuck.0day5.com/
               Exploit BY: Saline
                 Time:' . date('Y-m-d') . '
+-------------------------------------------------+
</pre>
');
error_reporting(7);
$url = 'http://domains.yougetsignal.com//domains.php';
$referer = 'http://domains.yougetsignal.com/';
if(isset($_POST['url'])){
    $domain = $_POST['url'];
}else{
    echo <<<EOF
        <form action="" method="POST">
            请输入查询域名:<input type="text" name="url" value="www.0day5.com"/>
            <input type="submit" value="提交"/>
        </form>
EOF;
    exit;
}
$ip= rand(100, 244).'.'.rand(100, 244).'.'.rand(100, 244).'.'.rand(100, 244);
$post_data = 'remoteAddress=' . $domain;
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
//初始化CURL
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
//返回原生的(Raw)输出
curl_setopt($curl, CURLOPT_REFERER, $referer);
//设置refere信息
curl_setopt($curl, CURLOPT_HTTPHEADER, array('X-FORWARDED-FOR:'.$ip, 'CLIENT-IP:'.$ip)); 
//设置X-FORWARDED-FOR信息为随机获取
curl_setopt($curl, CURLOPT_POST, 1);
//启用POST提交数据
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);
//POST提交的数据
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
//抓取跳转后的数据
$data = curl_exec($curl);
//执行CURL
curl_close($curl);
if (preg_match_all('/\["(.*?)",/i', $data, $match)) {
    echo '共有旁站域名:' . count($match[1]) . "个<br>";
    foreach ($match[1] as $list) {
        echo '<a href=http://' . $list . '/ target=_blank style="text-decoration: none;padding: 100px auto">' . $list . '</a><br>';
    }
} else {
    echo '查询失败';
}
?>
发表回复