Sniff HTTP traffic on your machine

From XPUB & Lens-Based wiki
Revision as of 11:59, 15 January 2011 by Aymeric Mansoux (talk | contribs) (Created page with "== Sniff URL == '''Situtation:''' you have for a reason or another, some HTTP traffic running through a machine on which you have root access and you wan to know which URLs are ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Sniff URL

Situtation: you have for a reason or another, some HTTP traffic running through a machine on which you have root access and you wan to know which URLs are requested.

Install dnsiff:

sudo apt-get install dsniff

Run urlsnarf (change interface if required):

sudo urlsnarf -i eth0

Prettify output:

sudo urlsnarf -i eth0 |cut -d\" -f4