Skip to content

Instantly share code, notes, and snippets.

@frankperrakis
Forked from dspinellis/cytrox-check.sh
Created May 25, 2022 08:45
Show Gist options
  • Save frankperrakis/cdb6e6fa07b261c3f593b21f8538ced8 to your computer and use it in GitHub Desktop.
Save frankperrakis/cdb6e6fa07b261c3f593b21f8538ced8 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