1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fake Traffic Gen Script

Discussion in 'Visual Basic .NET' started by falkor, Dec 14, 2011.

  1. falkor

    falkor Junior Member

    Joined:
    Sep 18, 2010
    Messages:
    102
    Likes Received:
    96
    Location:
    My location is...
    Home Page:
    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: Dec 14, 2011
  2. falkor

    falkor Junior Member

    Joined:
    Sep 18, 2010
    Messages:
    102
    Likes Received:
    96
    Location:
    My location is...
    Home Page:
    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!
     
  3. andee

    andee Regular Member

    Joined:
    Jul 24, 2010
    Messages:
    218
    Likes Received:
    83
    yo,

    why are you using sloooooooooooooow webbrowser controls to do this ?
     
  4. falkor

    falkor Junior Member

    Joined:
    Sep 18, 2010
    Messages:
    102
    Likes Received:
    96
    Location:
    My location is...
    Home Page:
    For the exact reason I made the post... Most scripts don't parse javascript as they only process html using http.request.
     
  5. dangerbear

    dangerbear Newbie

    Joined:
    Apr 3, 2011
    Messages:
    4
    Likes Received:
    1
    Occupation:
    Software Developer
    Location:
    India
    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...
     
  6. Jixor

    Jixor Registered Member

    Joined:
    Jan 1, 2012
    Messages:
    86
    Likes Received:
    7
    Opening an old post. But was there an exact answer to this problem?
     
  7. Cynikal

    Cynikal Newbie

    Joined:
    May 11, 2010
    Messages:
    32
    Likes Received:
    8
    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
     
  8. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,143
    You could try to inject javascript code that spoofs the values (make sure it 's executed before anything else).
     
  9. christoss1959

    christoss1959 Senior Member

    Joined:
    Nov 25, 2010
    Messages:
    894
    Likes Received:
    1,150
    Home Page:
    I am strugling to figure out code injection can you point me somewhere with good resources?