I use two types of faker, the first one is to build a new query cache in my Database, you cant see the hits in Google-Analytics.

First one :

I use wget and a shell script, the -r Parameter is for recursive be carefully with that :

wget --spider -r 'http://www.example.com/index.php?M_TOP=send&SEARCH='
wget --spider -r 'http://www.example.com/index.php?M_LAST=send&SEARCH='

 Second one :

For this Script I use Phantomjs with Selenium, and for faking hits the Tor Proxy, if you want a http Tor Proxy look here.

use strict;
use warnings;
use Selenium::Remote::Driver;

if(-e "./phantomjs-1.9.7-linux-x86_64/bin/phantomjs"){
system('./phantomjs-1.9.7-linux-x86_64/bin/phantomjs --webdriver='.($ARGV[1]//4444).' --proxy= --proxy-type=socks5 >> /dev/null 2>&1 &');
die "cant find phantomjs !";

my $driver = new Selenium::Remote::Driver('remote_server_addr' => 'localhost',
                                          'port' 	       => ($ARGV[1]//4444),
                                          'browser_name'       => 'chrome',
                                          'platform'           => 'VISTA',
                                          #'proxy' 	       =>  {'proxyType' => 'manual', 'httpProxy' => ''}

if( $driver->get_current_url() ne "about:blank"){
system('ps -e -o pid,args -dd | egrep 'phantomjs.+webdriver='.($ARGV[1]//4444).'' | grep -v egrep | cut -d " " -f1 | xargs kill');
system('ps -e -o pid,args -dd | egrep 'phantomjs.+webdriver='.($ARGV[1]//4444).'' | grep -v egrep | cut -d " " -f1 | xargs kill');

Line 7 and 8 check Phantomjs and start.

Line 14 create a new Selenium Server, in Line 18 you could use the default Proxy option from Selenium.

Line 21 and 22 got to the Page and wait there.

Line 26 check if our Site was loaded.

Line 28 is a script to kill our Phantomjs. At first we take all process IDs and process arguments with PS, then we make a egrep to get our webdriver after this we cut of to get the PID and then we kill the Process.


Now we need a little script to start our faker script, this Bash Script starts our faker.pl Script 10 Times and then cleans up.

for i in {4440..4449};
do ./faker.pl 'http://www.example.com' $i '&';pidof tor | xargs kill -HUP >/dev/null 2>&1;sleep 5;

sleep 4;

killall phantomjs;
killall faker.pl;



2 thoughts on “Hitfaker”

  1. Quality posts is the important to be a focus for the people to
    pay a visit the web site, that’s what this site is providing.

  2. Thanks , I’ve just been looking for info about this topic for ages and yours is the greatest I’ve
    found out so far. But, what about the conclusion? Are you certain in regards to the source?

Leave a Reply

Your email address will not be published.

5 × one =