LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-16-2009, 06:11 AM   #1
vikhr
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Rep: Reputation: 0
Firefox user platform masquerading


system configuration: Ubuntu 8.10 GNU/Linux Firefox 3.0.6 i386

I wanna masquerade my os details from browser scripts and http header.
I did manage to override browser defaults by:

editing about:config
general.useragent.override="//The user agent string"
similarly vendor and extra.firefox values were edited..

but how to masquerade values like appName,platform which can be retrieved
by navigator.platform and navigator.appName etc

I tried putting in values user_pref("general.useragent.platform","Win32")
or pref("general.useragent.platform","Win32")
in ~/mozilla/firefox/<random>/pref.js
and /usr/lib/firefox-3.0.6/default/preferences/ubuntu-useragent.js
and /usr/lib/firefox-3.0.6/default/preferences/firefox.js

etc..but hard luck

Help Please
 
Old 02-16-2009, 06:48 AM   #2
vikhr
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Original Poster
Rep: Reputation: 0
At last I got it.. sorry guys for wasting your time..
I edited .mozilla/firefox/<random>/prefs.js
and inserted the following entries:
<b><i>
user_pref("general.appname.override", "xxxxxxxxxxx");
user_pref("general.appversion.override", "xxxxxxxx");
user_pref("general.platform.override", "xxxxx");
</b></i>
and it worked..on url location like "javascript:navigator.platform"
but I used Firefox "Error Console" to check the entries ..and it always gave the "original"
stuff..so i guess Error Console might be using system calls to get the data..
rather than browser's javascript sandbox..

sop..thanks anyway..
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail Single User Masquerading akvino Linux - Enterprise 4 07-03-2008 10:17 AM
LXer: Cross platform javascript vulnerability leaves IE, Firefox open LXer Syndicated Linux News 0 06-08-2006 04:21 AM
would Firefox be faster if it wouldn't be cross-platform? exit3219 General 17 03-02-2006 03:05 PM
Firefox - specify platform - Linux not allowed SirAeryn Linux - Software 8 09-15-2005 11:12 PM
Convert Windows2003 ftp server to linux platform with user and password hitesh187 Linux - Networking 1 03-07-2005 06:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:50 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration