View difference between Paste ID: KzDm2msc and WFpHVtj6
SHOW: | | - or go back to the newest paste.
1
<html>
2
<head>
3
<style type="text/css">
4
textarea {
5
    width: 500px;
6
    height: 250px;
7
    border: 1px solid #000000;
8
    margin: 5px auto;
9
    padding: 7px;
10
}
11
input[type=text] {
12
	padding-left: 7px;
13
	width: 250px;
14
    height: 25px;
15
    border: 1px solid #000000;
16
    background: transparent;
17
    margin: 5px auto;
18
}
19
input[type=submit] {
20
	height: 25px;
21
	border: 1px solid #000000;
22
	background: transparent;
23
	margin: 5px auto;
24
	color: #000000;
25
}
26
</style>
27
</head>
28
<form method="post">
29
Bing Dork: <input type="text" name="dork" placeholder="dork" required>
30
<input type="submit" name="go" value=">>">
31
</form>
32
<?php
33
// coded by Mr. Magnom 
34
// Re-Coded to Web Based by Mr. Error 404 - IndoXploit
35
// greetz to Mr. Magnom - Sanjungan Jiwa
36
function getsource($url, $proxy) {
37
    $curl = curl_init($url);
38
    curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
39
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
40
    if($proxy) {
41
        $proxy = explode(':', autoprox());
42
        curl_setopt($curl, CURLOPT_PROXY, $proxy[0]);
43
        curl_setopt($curl, CURLOPT_PROXYPORT, $proxy[1]);
44
    }
45
    $content = curl_exec($curl);
46
    curl_close($curl);
47
    return $content;
48
}
49
$dork = htmlspecialchars($_POST['dork']);
50
$do = urlencode($dork);
51
if(isset($_POST['go'])) {
52
	$npage = 1;
53
	$npages = 30000;
54
	$allLinks = array();
55
	$lll = array();
56
	while($npage <= $npages) {
57
	    $x = getsource("http://www.bing.com/search?q=".$do."&first=".$npage."", $proxy);
58
	    if($x) {
59
	        preg_match_all('#<h2><a href="(.*?)" h="ID#', $x, $findlink);
60
	        foreach ($findlink[1] as $fl) array_push($allLinks, $fl);
61
	        $npage = $npage + 10;
62
	        if (preg_match("(first=" . $npage . "&amp)siU", $x, $linksuiv) == 0) break;
63
	    } else break;
64
	}
65
	$URLs = array();
66
	foreach($allLinks as $url){
67
	    $exp = explode("/", $url);
68
	    $URLs[] = $exp[2];
69
	}
70
	$array = array_filter($URLs);
71
	$array = array_unique($array);
72
	$sss = count(array_unique($array));
73
	echo "ToTaL SiTe : $sss<br>";
74
	foreach($array as $domain) {
75
		echo "http://$domain/<br>";
76
	}
77
}
78
?>
79
</html>