-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
89 lines (75 loc) · 1.75 KB
/
index.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
$proxy = getRandomProxy();
$url = urlDecode($_GET['url']);
if (strlen($url) < 12 )
$viewer = "viewer.php?url=";
if (hasParam('loads'))
{
$loads = $_GET['loads'];
}
else
{
$loads = 1;
}
if(hasParam('submit'))
{
$result = proxy($proxy, $viewer.urlDecode($url));
echo ($loads+1).' Total <br>1 New View From '.$proxy.'<br>'.$url."<br>".$result.'<br>
<script type="text/JavaScript">
setTimeout(function(){
window.location.href="index.php?url='.urlEncode($url).'&submit=true&loads='.($loads+1).'";
}, 5000);
</script>';
exit;
}
function getRandomProxy()
{
$proxies = file('proxies.txt');
return trim($proxies[array_rand($proxies,1)]);
}
function getRandomAgent()
{
$bits = file('useragents.txt');
return trim($bits[array_rand($bits,1)]);
}
function proxy($proxy, $url){
$url = ($url);
$agent = getRandomAgent();
$ch = curl_init();
curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_REFERER, "https://www.youtube.com");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT_MS, 5000);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_HEADER, 0);
$page = curl_exec($ch);
curl_close($ch);
if (strlen($page) > 50)
{
$hit = true;
}
return $page;
}
function hasParam($param)
{
return array_key_exists($param, $_REQUEST);
}
?>
<html>
<head>
<title>Trabott</title>
</head>
<body>
</body>
• Enter a valid URL<br>
• Close the Tab to Stop Getting Traffic<br>
• Leave Tab Open to Keep Getting Traffic<br><br>
<form action="" method="GET">
URL: <input type="text" name="url">
<br>
<button type="submit" name="submit" value="true">START</button>
</form>
</body>
</html>