-
-
Save frankperrakis/cdb6e6fa07b261c3f593b21f8538ced8 to your computer and use it in GitHub Desktop.
Display host names of Cytrox spyware-hosting sites visited with Firefox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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