Skip to content

Instantly share code, notes, and snippets.

@Blake-
Created March 30, 2016 21:41
Show Gist options
  • Save Blake-/5ecc81a2e4fee5f65702ea7670982e3b to your computer and use it in GitHub Desktop.
Save Blake-/5ecc81a2e4fee5f65702ea7670982e3b to your computer and use it in GitHub Desktop.
Find hits to Apache access log from Tor Exit Nodes
wget -q https://www.dan.me.uk/torlist/ -O - |sort -u > tor-ips.txt
cat /var/log/apache2/other_vhosts_access.log | awk '{print $2}' |sort -u > all-ips
comm -12 tor-ips.txt all-ips > tor-hits
grep -f tor-hits /var/log/apache2/other_vhosts_access.log
`note www.dan.me.uk limits 1 pull every 30 minutes`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment