Skip to content

Instantly share code, notes, and snippets.

@dspinellis
Last active May 29, 2022 14:39
Show Gist options
  • Save dspinellis/1f9b93b4d48973a4b0953b093e172ef7 to your computer and use it in GitHub Desktop.
Save dspinellis/1f9b93b4d48973a4b0953b093e172ef7 to your computer and use it in GitHub Desktop.
Display host names of Cytrox spyware-hosting sites visited with Firefox
#!/usr/bin/env bash
#
# Display host names of Cytrox spyware-hosting sites visited with Firefox
# See: https://github.com/AmnestyTech/investigations/tree/master/2021-12-16_cytrox
#
# Diomidis Spinellis, May 2022
#
if [ -z "$1" ] ; then
echo "Usage: $0 /path/to/Firefox/places.sqlite" 1>&2
exit 1
fi
comm -12 <(
sqlite3 "$1" 'select url from moz_places' | sed -nE 's|^https?://||;s|/.*||;/:/!p' | sort -u ) <(
curl -sL https://raw.githubusercontent.com/AmnestyTech/investigations/master/2021-12-16_cytrox/domains.txt | sort)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment