using curl to spoof referers

BlackBeard

Newbie
Joined
May 29, 2009
Messages
26
Reaction score
9
You can do a lot of powerful things with a simple UNIX shellscript!

I haven't used PR Storm since I'm a Mac/Unix not Windows guy, but after reading about it... it seems to basically do this?

referer.sh

PHP:
# usage: ./referer.sh www.site-to-promote.com sites.txt
# sites.txt should contain a list of sites formatted like
# www.site1.com
# www.site2.com
# which have google-indexed web statistics pages

for i in `cat $2`
 do 
   echo "Posting referer: $1          To URL: $i"
   curl --form ref=http://$1 \
   --referer http://$1 \
   --user-agent "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6 Gecko/20070725 Firefox/2.0.0.6)" \
   --request POST http://$i/  > /dev/null 

done
 
Yeah so simple...you can use wget too...I prefer python cause my script is multithreaded.

For python just use urllib
 
Good luck replying on a 5 years old thread asking a guy who hasn't visited the forum for the last 3 years. :o
 
Don't know a ton of the bhw program types, but it appears this one takes a list of sites, and visits them, using your target site as the referring url.
That said and a quick glance at the original php shows me it would likely work with little to no modification.
A good schedule, some proxies or servers...

Would be easy enough to port to python.

What would be the point of putting my site url in the from-site header data logs of other sites?
 
Back
Top