How to Hack Your Firefox User Agent to Spoof Your OS and Browser

Nov 8, 2011 06:46 PM
Oct 15, 2019 02:00 AM

There are a lot of things on your computer that can reveal information about you when you are surfing the Internet. If you are like me, then you will do anything to maintain your privacy and prevent those little leaks of information from happening. Here's a list of a few of the "threats" that can reveal information about you:

  • Undeleted cookies
  • User Agent
  • OS fingerprint
  • IP address
  • Username (if they pertain to your real name)

For the next few days at Null Byte, we are going to mitigate as many of the Internet's anonymity issues as we can through some safe practices, browser plugins, hacks and more! Today we are going to hack our Internet browser's user agent to appear on websites as a different operating system and browser.

Requirements

A user agent is something used by JavaScript for a multitude of reasons. Here are just a few of the things that it can be used for:

What Is a User Agent Used For?

  • Running different versions of a page, based on browser and compatibility with said browser.
  • Seeing which OS you have to stream media.
  • Web logs. Someone can use a user agent to identify a hacker via matching logs.
  • Browser-specific applications compatibility checking.
  • Marketing sites can use your agent to tailor ads towards you.

Hack Your User Agent

Now, let's actually hack out our agent. I want to have our agent display us as a microwave oven. This ought to throw off the pesky feds after I "r00ted their b0x3n" (just kidding).

  1. Open up Firefox, and in a new tab type:

about:config

In that new tab, click "I'll be careful, I promise!" to proceed.

  1. Type in the search bar on top:

agent

  1. Then find the string value that corresponds to your computer's information. If should look something like this:

Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0

  1. Right-click this value and modify it to display whatever you would like. Here's a silly picture of mine after checking it on Who is Hosting This's User Agent tool.
634562964107216845.jpg

Funny, isn't it?

Follow me on Twitter and jump in the IRC for more of the latest and greatest Null Byte action.

Just updated your iPhone? You'll find new Apple Intelligence capabilities, sudoku puzzles, Camera Control enhancements, volume control limits, layered Voice Memo recordings, and other useful features. Find out what's new and changed on your iPhone with the iOS 18.2 update.

Comments

No Comments Exist

Be the first, drop a comment!