-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvisit.php
41 lines (39 loc) · 1.63 KB
/
visit.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
error_reporting(0);
system("clear");
echo "
-----------------------------------------------------
Auto visitor blog/web
-----------------------------------------------------
\n";
$user=file_get_contents("user-agents.txt");
$exp_user=explode("\n",$user);
//$i=0;
$referer=["http://facebook.com","http://google.com.sg","http://twitter.com","http://facebook.com","http://google.com.sg","http://twitter.com","http://google.co.id","http://google.com.my","http://google.jp","http://google.us","http://google.tl","http://google.ac","http://google.ad","http://google.ae","http://google.af","http://google.ag","http://google.ru","http://google.by","http://google.ca","http://google.cn","http://google.cl","http://google.cm","http://google.cv","http://google.gg","http://google.ge","http://google.gr","http://google.com.tw","https://search.yahoo.com","http://www.beinyu.com"];
$cok=rand(0,28);
echo "Web/Blog-> ";
$web=trim(fgets(STDIN));
if($web==false){
echo "Masukan urlnya!";
}else{
echo "Jumlah visitor-> ";
$visitor=trim(fgets(STDIN));
}
if($web==true){
for($i=0;$i<$visitor;$i++){
$us=rand(0,999);
$ch = curl_init();
CURL_SETOPT($ch, CURLOPT_URL, $web);
CURL_SETOPT($ch, CURLOPT_HTTPHEADER, array('Referer: '.$referer[$cok],'User-Agent: '.$exp_user[$us]));
CURL_SETOPT($ch, CURLOPT_FOLLOWLOCATION, true);
CURL_SETOPT($ch, CURLOPT_SSL_VERIFYHOST, false);
CURL_SETOPT($ch, CURLOPT_SSL_VERIFYPEER, false);
CURL_SETOPT($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
$info=curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
echo $web." -> ".$exp_user[$us]." -> ".$info."\n";
}
}else{
echo "Cek ulang url!";
}