Skip to content

Instantly share code, notes, and snippets.

View Blake-'s full-sized avatar
🏚️
Working from home

Blake Carver Blake-

🏚️
Working from home
View GitHub Profile
@Blake-
Blake- / gist:5ecc81a2e4fee5f65702ea7670982e3b
Created March 30, 2016 21:41
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`