Bits and bytes of a hacker.

Anonymous Content Grabbing With Python

As a malware analyst, sometimes it’s necessary to obtain a sample of a website’s source code to manually evaluate any hidden malicious JavaScript. But why give up your IP address just to snoop around a bit?

Fellow analysts, I present to you, my customized python-based anonymous browser, anonBrowser.py.

It’s nothing special, just a quick and dirty little python script that grabs a random proxy, emulates a random browser and pulls the target content using it’s forged identity. Written so that it’s easy to understand and easy to customize should you like to make changes to it.

Usage: ./anonBrowser.py -s URL