Fake Traffic Gen Script

falkor

Junior Member
Joined
Sep 18, 2010
Messages
102
Reaction score
97
So I'm making a script in VB.net that will basically create fake traffic which includes but not limited to a Fake Referer and Fake User-Agent.

I've got the script working pretty well so far but my stumbling point is the following:

Standard browser detection is detecting the correctly faked referer and user-agent but javascript "which most sites use to check referers these days" is not detecting it:

Detect User-Agent in Javascript
Code:
javascript: alert(navigator.userAgent)
Detect Referer in Javascript
Code:
javascript: alert(document.referrer)
The code I'm using within VB.net is a simple WebBrowser control with the following:
Code:
WebBrowser1.Navigate("javascript: alert(navigator.userAgent)", "_self", Nothing, "User-Agent:Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64)" & vbCrLf & "Referer:http://www.google.com" & vbCrLf)
and
Code:
WebBrowser1.Navigate("javascript: alert(document.referrer)", "_self", Nothing, "User-Agent:Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64)" & vbCrLf & "Referer:http://www.google.com" & vbCrLf)
Anyone that is able to provide any help with resolving this will get a free copy of the program and any future updates!

PS: I have double checked and the spelling of "referrer and referer" are correct, It would appear that standard HTML headers use a single R and javascript uses double R
 
Last edited:
Doing some research it would appear "HTTP_REFERER" comes from the HTTP Header and can obviously be spoofed, but Document.Referrer comes from the browser its self...

Still no further guys, do I have to pay someone to get the answer :)

PS: I know of the double meta-refresh but don't really want to do this unless it comes to it!
 
yo,

why are you using sloooooooooooooow webbrowser controls to do this ?
 
yo,

why are you using sloooooooooooooow webbrowser controls to do this ?

For the exact reason I made the post... Most scripts don't parse javascript as they only process html using http.request.
 
You can try using the Skybound.Gecko Project ..which is a Usercontrol for Mozilla Browser on .NET.....The browser is much faster than the Standard WebBrowser control and is much easier than any other controls....I found...try using this browser control...for your application...
 
Opening an old post. But was there an exact answer to this problem?
 
I would use the webclient, as its much easier and efficient to send referrer information.

and it would be something as simple as..

Change Proxy
Download Page
Rinse, Repeat
 
You could try to inject javascript code that spoofs the values (make sure it 's executed before anything else).
 
You could try to inject javascript code that spoofs the values (make sure it 's executed before anything else).
I am strugling to figure out code injection can you point me somewhere with good resources?
 
Back
Top