Created
June 15, 2020 23:39
-
-
Save teixeira0xfffff/b4e813c9abfc8ae54ee73e3d31b76091 to your computer and use it in GitHub Desktop.
Auto Visitor [decoded version]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
system("clear"); | |
echo "\e[32m | |
_ _ __ ___ _ _ | |
/ \ _ _| |_ ___ \ \ / (_)___(_) |_ ___ _ __ | |
/ _ \| | | | __/ _ \ \ \ / /| / __| | __/ _ \| '__| | |
/ ___ \ |_| | || (x) | \ V / | \__ \ | || (x) | | | |
/_/ \_\__,_|\__\___/ \_/ |_|___/_|\__\___/|_| | |
\e[39m(c) Evil Twin | |
\n"; | |
echo 'Site : '; | |
$url = trim(fgets(STDIN)); | |
echo 'Visitors to send : '; | |
$max = trim(fgets(STDIN)); | |
error_reporting(0); | |
class Random_UA | |
{ | |
/** | |
* | |
*/ | |
var $linux_proc; | |
/** | |
* | |
*/ | |
var $mac_proc; | |
/** | |
* A | |
*/ | |
var $lang; | |
function __construct() | |
{ | |
$this->linux_proc = array( | |
'i686', | |
'x86_64' | |
); | |
$this->mac_proc = array( | |
'Intel', | |
'PPC', | |
'U; Intel', | |
'U; PPC' | |
); | |
$this->lang = array( | |
'en-US', | |
'sl-SI' | |
); | |
} | |
function firefox() { | |
$ver = array( | |
'Gecko/' . date('Ymd', rand(strtotime('2011-1-1'), mktime())) . ' Firefox/' . rand(5, 7) . '.0', | |
'Gecko/' . date('Ymd', rand(strtotime('2011-1-1'), mktime())) . ' Firefox/' . rand(5, 7) . '.0.1', | |
'Gecko/' . date('Ymd', rand(strtotime('2010-1-1'), mktime())) . ' Firefox/3.6.' . rand(1, 20), | |
'Gecko/' . date('Ymd', rand(strtotime('2010-1-1'), mktime())) . ' Firefox/3.8' | |
); | |
$platforms = array( | |
'(Windows NT ' . rand(5, 6) . '.' . rand(0, 1) . '; ' . $this->lang[array_rand($this->lang, 1)] . '; rv:1.9.' . rand(0, 2) . '.20) ' . $ver[array_rand($ver, 1)], | |
'(X11; Linux ' . $this->linux_proc[array_rand($this->linux_proc, 1)] . '; rv:' . rand(5, 7) . '.0) ' . $ver[array_rand($ver, 1)], | |
'(Macintosh; ' . $this->mac_proc[array_rand($this->mac_proc, 1)] . ' Mac OS X 10_' . rand(5, 7) . '_' . rand(0, 9) . ' rv:' . rand(2, 6) . '.0) ' . $ver[array_rand($ver, 1)] | |
); | |
return $platforms[array_rand($platforms, 1)]; | |
} | |
function safari() { | |
$saf = rand(531, 535) . '.' . rand(1, 50) . '.' . rand(1, 7); | |
if (rand(0, 1) == 0) { | |
$ver = rand(4, 5) . '.' . rand(0, 1); | |
} else { | |
$ver = rand(4, 5) . '.0.' . rand(1, 5); | |
} | |
$platforms = array( | |
'(Windows; U; Windows NT ' . rand(5, 6) . '.' . rand(0, 1) . ") AppleWebKit/$saf (KHTML, like Gecko) Version/$ver Safari/$saf", | |
'(Macintosh; U; ' . $this->mac_proc[array_rand($this->mac_proc, 1)] . ' Mac OS X 10_' . rand(5, 7) . '_' . rand(0, 9) . ' rv:' . rand(2, 6) . '.0; ' . $this->lang[array_rand($this->lang, 1)] . ") AppleWebKit/$saf (KHTML, like Gecko) Version/$ver Safari/$saf", | |
'(iPod; U; CPU iPhone OS ' . rand(3, 4) . '_' . rand(0, 3) . ' like Mac OS X; ' . $this->lang[array_rand($this->lang, 1)] . ") AppleWebKit/$saf (KHTML, like Gecko) Version/" . rand(3, 4) . ".0.5 Mobile/8B" . rand(111, 119) . " Safari/6$saf", | |
); | |
return $platforms[array_rand($platforms, 1)]; | |
} | |
function iexplorer() { | |
$ie_extra = array( | |
'', | |
'; .NET CLR 1.1.' . rand(4320, 4325) . '', | |
'; WOW64' | |
); | |
$platforms = array( | |
'(compatible; MSIE ' . rand(5, 9) . '.0; Windows NT ' . rand(5, 6) . '.' . rand(0, 1) . '; Trident/' . rand(3, 5) . '.' . rand(0, 1) . ')' | |
); | |
return $platforms[array_rand($platforms, 1)]; | |
} | |
function opera() { | |
$op_extra = array( | |
'', | |
'; .NET CLR 1.1.' . rand(4320, 4325) . '', | |
'; WOW64' | |
); | |
$platforms = array( | |
'(X11; Linux ' . $this->linux_proc[array_rand($this->linux_proc, 1)] . '; U; ' . $this->lang[array_rand($this->lang, 1)] . ') Presto/2.9.' . rand(160, 190) . ' Version/' . rand(10, 12) . '.00', | |
'(Windows NT ' . rand(5, 6) . '.' . rand(0, 1) . '; U; ' . $this->lang[array_rand($this->lang, 1)] . ') Presto/2.9.' . rand(160, 190) . ' Version/' . rand(10, 12) . '.00' | |
); | |
return $platforms[array_rand($platforms, 1)]; | |
} | |
function chrome() { | |
$saf = rand(531, 536) . rand(0, 2); | |
$platforms = array( | |
'(X11; Linux ' . $this->linux_proc[array_rand($this->linux_proc, 1)] . ") AppleWebKit/$saf (KHTML, like Gecko) Chrome/" . rand(13, 15) . '.0.' . rand(800, 899) . ".0 Safari/$saf", | |
'(Windows NT ' . rand(5, 6) . '.' . rand(0, 1) . ") AppleWebKit/$saf (KHTML, like Gecko) Chrome/" . rand(13, 15) . '.0.' . rand(800, 899) . ".0 Safari/$saf", | |
'(Macintosh; U; ' . $this->mac_proc[array_rand($this->mac_proc, 1)] . ' Mac OS X 10_' . rand(5, 7) . '_' . rand(0, 9) . ") AppleWebKit/$saf (KHTML, like Gecko) Chrome/" . rand(13, 15) . '.0.' . rand(800, 899) . ".0 Safari/$saf" | |
); | |
return $platforms[array_rand($platforms, 1)]; | |
} | |
/** | |
* Main function which will choose random browser | |
* @return string user agent | |
*/ | |
function generate() { | |
$x = rand(1, 5); | |
switch ($x) { | |
case 1: | |
return "Mozilla/5.0 " . $this->firefox(); | |
break; | |
case 2: | |
return "Mozilla/5.0 " . $this->safari(); | |
break; | |
case 3: | |
return "Mozilla/" . rand(4, 5) . ".0 " . $this->iexplorer(); | |
break; | |
case 4: | |
return "Opera/" . rand(8, 9) . '.' . rand(10, 99) . ' ' . $this->opera(); | |
break; | |
case 5: | |
return 'Mozilla/5.0' . $this->chrome(); | |
break; | |
} | |
} | |
} | |
class autovisitor extends Random_UA { | |
public function __construct($url) { | |
$this->url = $url; | |
} | |
private function curl() { | |
$ch = curl_init(); | |
CURL_SETOPT($ch, CURLOPT_URL, $this->url); | |
CURL_SETOPT($ch, CURLOPT_HTTPHEADER, array('Referer: '.$this->acakReferer(), | |
'User-Agent: '.$this->generate())); | |
CURL_SETOPT($ch, CURLOPT_FOLLOWLOCATION, true); | |
CURL_SETOPT($ch, CURLOPT_SSL_VERIFYHOST, 0); | |
CURL_SETOPT($ch, CURLOPT_SSL_VERIFYPEER, 0); | |
CURL_SETOPT($ch, CURLOPT_RETURNTRANSFER, 1); | |
CURL_SETOPT($ch, CURLOPT_USERAGENT, $this->generate()); | |
$result = curl_exec($ch); | |
curl_close($ch); | |
return $result; | |
} | |
private function xflush() { | |
static $output_handler = null; | |
if ($output_handler === null) { | |
$output_handler = @ini_get('output_handler'); | |
} | |
if ($output_handler == 'ob_gzhandler') { | |
return; | |
} | |
flush(); | |
if (function_exists('ob_flush') AND function_exists('ob_get_length') AND ob_get_length() !== false) { | |
@ob_flush(); | |
} else if (function_exists('ob_end_flush') AND function_exists('ob_start') AND function_exists('ob_get_length') AND ob_get_length() !== FALSE) { | |
@ob_end_flush(); | |
@ob_start(); | |
} | |
} | |
private function acakReferer() { | |
$list = array(); | |
/* Asal traffic yang di submit */ | |
$list[] = "http://facebook.com"; | |
$list[] = "http://google.ac"; | |
$list[] = "http://google.ad"; | |
$list[] = "http://google.ae"; | |
$list[] = "http://google.com.af"; | |
$list[] = "http://google.com.ag"; | |
$list[] = "http://google.com.ai"; | |
$list[] = "http://google.am"; | |
$list[] = "http://google.it.ao"; | |
$list[] = "http://google.com.ar"; | |
$list[] = "http://google.as"; | |
$list[] = "http://google.at"; | |
$list[] = "http://google.az"; | |
$list[] = "http://google.com.au"; | |
$list[] = "http://google.ba"; | |
$list[] = "http://google.com.bd"; | |
$list[] = "http://google.be"; | |
$list[] = "http://google.bg"; | |
$list[] = "http://google.com.bh"; | |
$list[] = "http://google.bi"; | |
$list[] = "http://google.bj"; | |
$list[] = "http://google.com.bn"; | |
$list[] = "http://google.com.bo"; | |
$list[] = "http://google.com.br"; | |
$list[] = "http://google.bs"; | |
$list[] = "http://google.co.bw"; | |
$list[] = "http://google.com.by"; | |
$list[] = "http://google.com.bz"; | |
$list[] = "http://google.ca"; | |
$list[] = "http://google.cc"; | |
$list[] = "http://google.cd"; | |
$list[] = "http://google.cf"; | |
$list[] = "http://google.cg"; | |
$list[] = "http://google.ch"; | |
$list[] = "http://google.cl"; | |
$list[] = "http://google.ci"; | |
$list[] = "http://google.co.ck"; | |
$list[] = "http://google.cm"; | |
$list[] = "http://google.cn"; | |
$list[] = "http://google.com.co"; | |
$list[] = "http://google.co.cr"; | |
$list[] = "http://google.com.cu"; | |
$list[] = "http://google.cz"; | |
$list[] = "http://google.de"; | |
$list[] = "http://google.dj"; | |
$list[] = "http://google.dk"; | |
$list[] = "http://google.dm"; | |
$list[] = "http://google.com.do"; | |
$list[] = "http://google.dz"; | |
$list[] = "http://google.com.ec"; | |
$list[] = "http://google.ee"; | |
$list[] = "http://google.com.eg"; | |
$list[] = "http://google.es"; | |
$list[] = "http://google.com.et"; | |
$list[] = "http://google.fi"; | |
$list[] = "http://google.com.fj"; | |
$list[] = "http://google.fm"; | |
$list[] = "http://google.fr"; | |
$list[] = "http://google.ga"; | |
$list[] = "http://google.gd"; | |
$list[] = "http://google.ge"; | |
$list[] = "http://google.gf"; | |
$list[] = "http://google.gg"; | |
$list[] = "http://google.com.gh"; | |
$list[] = "http://google.com.gi"; | |
$list[] = "http://google.gl"; | |
$list[] = "http://google.gp"; | |
$list[] = "http://google.gr"; | |
$list[] = "http://google.com.gt"; | |
$list[] = "http://google.gy"; | |
$list[] = "http://google.com.hk"; | |
$list[] = "http://google.hn"; | |
$list[] = "http://google.hr"; | |
$list[] = "http://google.ht"; | |
$list[] = "http://google.nu"; | |
$list[] = "http://google.co.nz"; | |
$list[] = "http://google.com.np"; | |
$list[] = "http://google.nr"; | |
$list[] = "http://google.no"; | |
$list[] = "http://google.com.na"; | |
$list[] = "http://google.com.nf"; | |
$list[] = "http://google.com.ng"; | |
$list[] = "http://google.com.ni"; | |
$list[] = "http://google.nl"; | |
$list[] = "http://google.mw"; | |
$list[] = "http://google.com.mx"; | |
$list[] = "http://google.com.my"; | |
$list[] = "http://google.co.mz"; | |
$list[] = "http://google.mn"; | |
$list[] = "http://google.ms"; | |
$list[] = "http://google.com.mt"; | |
$list[] = "http://google.mu"; | |
$list[] = "http://google.mv"; | |
$list[] = "http://google.co.ma"; | |
$list[] = "http://google.md"; | |
$list[] = "http://google.me"; | |
$list[] = "http://google.mg"; | |
$list[] = "http://google.mk"; | |
$list[] = "http://google.com.ly"; | |
$list[] = "http://google.lu"; | |
$list[] = "http://google.lt"; | |
$list[] = "http://google.lv"; | |
$list[] = "http://google.co.ls"; | |
$list[] = "http://google.la"; | |
$list[] = "http://google.com.lb"; | |
$list[] = "http://google.com.lc"; | |
$list[] = "http://google.lk"; | |
$list[] = "http://google.li"; | |
$list[] = "http://google.co.kr"; | |
$list[] = "http://google.com.kw"; | |
$list[] = "http://google.kz"; | |
$list[] = "http://google.ki"; | |
$list[] = "http://google.kg"; | |
$list[] = "http://google.com.jm"; | |
$list[] = "http://google.co.ke"; | |
$list[] = "http://google.jo"; | |
$list[] = "http://google.com.kh"; | |
$list[] = "http://google.co.jp"; | |
$list[] = "http://google.co.in"; | |
$list[] = "http://google.io"; | |
$list[] = "http://google.it"; | |
$list[] = "http://google.is"; | |
$list[] = "http://google.je"; | |
$list[] = "http://google.co.id"; | |
$list[] = "http://google.co.il"; | |
$list[] = "http://google.ie"; | |
$list[] = "http://google.hu"; | |
$list[] = "http://google.com.ph"; | |
$list[] = "http://google.com.pk"; | |
$list[] = "http://google.rw"; | |
$list[] = "http://google.com.sg"; | |
$list[] = "http://google.se"; | |
$list[] = "http://google.com.sb"; | |
$list[] = "http://google.sc"; | |
$list[] = "http://google.com.sa"; | |
$list[] = "http://google.ru"; | |
$list[] = "http://google.com.py"; | |
$list[] = "http://google.com.qa"; | |
$list[] = "http://google.ro"; | |
$list[] = "http://google.pl"; | |
$list[] = "http://google.pn"; | |
$list[] = "http://google.com.pr"; | |
$list[] = "http://google.ps"; | |
$list[] = "http://google.pt"; | |
$list[] = "http://google.com.pe"; | |
$list[] = "http://google.sh"; | |
$list[] = "http://google.com.om"; | |
$list[] = "http://google.com.pa"; | |
$list[] = "http://google.tt"; | |
$list[] = "http://google.com.tr"; | |
$list[] = "http://google.com.tw"; | |
$list[] = "http://google.co.tz"; | |
$list[] = "http://google.com.ua"; | |
$list[] = "http://google.to"; | |
$list[] = "http://google.co.ug"; | |
$list[] = "http://google.tl"; | |
$list[] = "http://google.tm"; | |
$list[] = "http://google.com.tj"; | |
$list[] = "http://google.tk"; | |
$list[] = "http://google.st"; | |
$list[] = "http://google.com.sv"; | |
$list[] = "http://google.td"; | |
$list[] = "http://google.tg"; | |
$list[] = "http://google.co.th"; | |
$list[] = "http://google.si"; | |
$list[] = "http://google.sk"; | |
$list[] = "http://google.com.sl"; | |
$list[] = "http://google.sn"; | |
$list[] = "http://google.sm"; | |
$list[] = "http://google.com.vn"; | |
$list[] = "http://google.vu"; | |
$list[] = "http://google.co.vi"; | |
$list[] = "http://google.vg"; | |
$list[] = "http://google.co.ve"; | |
$list[] = "http://google.rs"; | |
$list[] = "http://google.ws"; | |
$list[] = "http://google.co.za"; | |
$list[] = "http://google.co.zm"; | |
$list[] = "http://google.co.zw"; | |
$list[] = "http://google.co.uk"; | |
$list[] = "http://google.com"; | |
$list[] = "http://google.com.uy"; | |
$list[] = "http://google.co.uz"; | |
$list[] = "http://google.com.vc"; | |
$list[] = "http://facebook.com"; | |
$list[] = "http://twitter.com"; | |
$list[] = "http://search.yahoo.com"; | |
$list[] = "http://beinyu.com"; | |
$acak = array_rand($list,1); | |
return $list[$acak]; | |
} | |
public function jalankan() { | |
$this->xflush(); | |
$this->curl(); | |
return $this->acakReferer(); | |
$this->xflush(); | |
} | |
} | |
for($i = 1; $i < $max+1; $i++) { | |
$class = new autovisitor($url); | |
echo "\e[31m[\e[37m".$i."\e[31m]\e[32m Visitors Sent Through Referrers \e[31m> \e[37m".$class->jalankan()."\n"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment