Apr 01, 2018 - Service Pages Extension

I recently noticed that a tracker called “superfish” was being injected into pages loaded in Chrome on my laptop. The tracker didn’t show up when in incognito mode, so I guessed that an extension was the culprit. I disabled my loaded extensions one by one and queried a locally served page after each one until the tracker disappeared.

The tracker stopped being injected when I disabled “Service Pages for Google Chrome”. So I removed the extension. I went to the Chrome Store to comment on the extension’s landing page, but it seems to have been removed (by the author) sometime in the recent past.

Problem solved, but it just goes to show that you need to be careful about what you have running in your browser.

Apr 01, 2017 - Ip Location

Install geoiplookup:

sudo apt-get install geoip-bin

Download a free city-level geo-ip database:

wget -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz  -O - |
  gunzip > /usr/share/GeoIP/GeoIP.dat.new &&
    mv /usr/share/GeoIP/GeoIP.dat.new /usr/share/GeoIP/GeoIP.dat


traceroute amazon.com |
  cut -d'(' -f2 | cut -d')' -f1 |
  grep -v '*' |
  xargs -n 1 geoiplookup -f /usr/share/GeoIP/GeoLiteCity.dat

Sadly, the geo locations seem to be not very accurate. For Yahoo, Google, and Amazon the final hop is shown as Sunnyvale, Mountain View, and Seattle, respectively. But those are the headquarters locations, not the data centers where the traffic is actually served.