Skip to content

Instantly share code, notes, and snippets.

View 83leej's full-sized avatar

Lee J 83leej

View GitHub Profile
@83leej
83leej / torm
Created October 13, 2017 13:23
#!/bin/bash
while read URL NAME; do
echo "checking $NAME"
DATE=$(date)
echo "$DATE, $NAME, $URL" >> tmp
torsocks wget $URL -S --spider -nv -T 10 -t 1 -a tmp
done<urls.txt
@83leej
83leej / check
Created November 27, 2016 14:18
just a simple script that grabs two file if they are currently not there, allows checking for IP ranges by providing a simple name such as 'godaddy' or 'digitalocean', it then returns the results and provides a file name rangelist with the found ranges.
#!/bin/bash
NAMETOCHECK=$1
if [ ! -d asninfo ]; then
mkdir asninfo;
echo "Created: asninfo/";
fi
if [ ! -f asninfo/data-used-autnums.txt ]; then