Current location: Hot Scripts Forums » Programming Languages » C/C++ » Spoofing a http referrer

Spoofing a http referrer

Reply
  #1 (permalink)  
Old 04-06-04, 02:47 PM
LuckyPimp LuckyPimp is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Spoofing a http referrer

I am trying to figure out some information on how to spoof a http referrer in c++ and I am not getting too much luck. Any ideas on the function or a place to look?

Thanks
__________________
<a href="http://www.reactorhosting.com">Reactor Hosting </a>

Last edited by LuckyPimp; 04-06-04 at 02:50 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 04-13-04, 11:46 AM
hyjacked hyjacked is offline
Wannabe Coder
 
Join Date: Nov 2003
Location: New Brunswick, Canada
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
I have no clue, check around the underground hacking sites though. That sounds like something they would be into.
__________________
hyjacked
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 04-19-04, 11:52 AM
LuckyPimp LuckyPimp is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks, I need it for a legit program though.
__________________
<a href="http://www.reactorhosting.com">Reactor Hosting </a>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 04-20-04, 12:16 AM
hyjacked hyjacked is offline
Wannabe Coder
 
Join Date: Nov 2003
Location: New Brunswick, Canada
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
could you explain a bit more about what you are doing, and what you want the program to do, maybe a bit more information and i may be able to think up some ways to go about it.

and yea what they do isn't legit, but if you can find the source, what does it matter that they use it for illegal, while you use it for legal.
__________________
hyjacked
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 05-07-04, 05:52 AM
r00tb00t r00tb00t is offline
New Member
 
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb HTTP Referer

Hey this is my first post but I hope it help!

When a browser sends a request for a web page it looks like this

GET /a_web_page.html HTTP/1.1
Host: AwebSITE.com
Referer: LASTwebSITE.com
(Not all of a request but that doesn't matter yet!)

The line:
GET /a_web_page.html HTTP/1.1
means to get the file '/a_web_page.html" from a server using HTTP version 1.1 (<thats the highest at the moment! I think?)

The line:
Host: AwebSITE.com
means to get it from the web site 'AwebSITE.com'

And finally the line:
Referer: LASTwebSITE.com
Is the last web site you visited


EXAMPLE:

If you were on: http://www.somesite.com/page1.html
and you clicked a link to: http://www.somesite.com/folder/page2.html
the HTTP head would look like this!

GET /folder/page2.html HTTP/1.1
Host: http://www.somesite.com
Referer: http://www.somesite.com

From there if you were to click a link to:
http://anothersite.com/page1.asp
then it would look like this:

GET /page1.asp HTTP/1.1
Host: http://www.anothersite.com
Referer: http://www.somesite.com

Now, some web pages only let people in from a certain domain so the HTTP REFERER must be 'Spoofed', (faked). We can do this in telnet.

OK Windows user...goto start>run>and type cmd > then hit enter
TU-DA.....A Command Prompt!

Now open telnet:

c:>telnet (hit enter)

Welcome to Microsoft Telnet Client

Escape Character is 'CTRL+]'

Microsoft Telnet>

know let say we want a page (securepage.html) from: http://www.securesite.com and they only let people in from http://www.trustedsite.com. We need to make our own HTTP Header Request.

Type:
o www.securesite.com 80 (change 'www.securesite.com' for you chosen site and the port if needs be!)

then whack enter!

****because my telnet it buggered it looks like nothing has happen:


Welcome to Microsoft Telnet Client

Escape Character is 'CTRL+]'

Microsoft Telnet> o www.securesite.com 80
Connecting To www.securesite.com...


****But When I type i find my self type of the text already:

GET /apage.html HTTP/1.1net Client

Escape Character is 'CTRL+]'

Microsoft Telnet> o www.securesite.com 80
Connecting To www.securesite.com...


****But this is ok it only send what you have written. Know we write our fake header!

type this:
GET /securepage.html HTTP/1.1 (hit enter)

type this:
Host: http://www.securesite.com (hit enter)

type this:
Referer: http://www.trustedsite.com (hit enter)
(hit enter again)
maybe 2 or 3 seconds delay...but sure enough a webpage's html source will be displayed on the screen...

II this helps although I know nothing at all about c/c++ programming (not a sausage), so I cant actually tell you any coding...SORRY!


r00tb00t

Last edited by r00tb00t; 05-07-04 at 06:07 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 05-14-04, 03:09 PM
proxomitronfan proxomitronfan is offline
New Member
 
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Proxomitron offeres these features. It's terribly useful for slowing down evil sites that harvest needless information

http://proxomitron.info

for better rules

http://jd5000.net


=D =D


Here is an open source project:

http://livehttpheaders.mozdev.org/

You'll want to look closely at "replay headers"

hope this helps
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 01-26-07, 06:22 PM
valdineyap valdineyap is offline
New Member
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
hint: changereferrer.com is a good site to change your referer!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting referer info lordmerlin PHP 0 01-31-04 08:37 AM
Referer Check to save bandwidth or sumthin DJ-Ready Perl 2 12-15-03 12:00 PM


All times are GMT -5. The time now is 09:08 AM.
vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.