LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 02-14-2006, 01:25 PM   #1
ilan1
LQ Newbie
 
Registered: Jan 2006
Posts: 18

Rep: Reputation: 0
Forging HTTP headers, OS fingerprinting, etc.


When I do regular web surfing, I know that via HTTP headers, the
websites I connect to can see that I am running Linux and I was
wondering if there was an easy way for me to forge these headers
to make those sites think that I am running Windoze.

Could somebody clue me in?

BTW, I run the Knoppix live CD fairly often, especially when I login
to sensitive sites like my online banking/ebay/Paypal, but usually run
Fedora Core 4 for ordinary stuff.

Ilan
 
Old 02-14-2006, 03:00 PM   #2
The MCP
Member
 
Registered: Nov 2003
Distribution: SUSE
Posts: 31

Rep: Reputation: 15
The identifying information is in the browser's User-Agent string. If you look through Apache logs, it's the last field of information. Windows typically sends something like "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)". There's no need to forge anything, browsers make it quite easy to change the UA string:

In Konqueror, look under Settings -> Configure Konqueror -> Browser ID to configure the default UA and set specific ones for problem sites.
In Firefox, enter 'about:config' into the browser bar. Search for 'agent' and configure the general.useragent. strings that show up as desired.
 
Old 02-14-2006, 09:07 PM   #3
Matir
Moderator
 
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502

Rep: Reputation: 110Reputation: 110
In Firefox, there's a "User-agent" extension available.
 
Old 03-04-2006, 11:12 AM   #4
rino.caldelli
Member
 
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181

Rep: Reputation: 31
yes but what about the operating system? i didn't find an option to chenge it to windows...
 
Old 03-04-2006, 07:40 PM   #5
win32sux
Moderator
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
did you at least take a look at the extension that was suggested??

it does the OS thing, etc...

https://addons.mozilla.org/extension...cation=firefox

BTW, you can do this easily (regardless of browser) with a couple lines in your squid.conf if you use squid... here's what mine kinda looks like:
Code:
header_access User-Agent deny all
header_replace User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7
.5) Gecko/20041202 Firefox/1.0

Last edited by win32sux; 03-04-2006 at 07:42 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Referer HTTP Headers and Squid win32sux Linux - Networking 0 09-17-2005 03:02 PM
apache: http://localhost (work) http://ipaddress (not working) sarmad Linux - Newbie 6 01-21-2005 05:44 PM
block OS fingerprinting bentman78 Linux - Security 12 06-21-2004 08:47 AM
Server uptime - Http headers?? wizade Linux - General 2 02-19-2003 03:56 PM
OS Fingerprinting and IPtables cirrusgr Linux - Networking 2 12-07-2002 06:48 PM


All times are GMT -5. The time now is 07:29 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration