Code Snippet Repository *********************** Little place for putting some scripts. Nothing special, but usefull :) PGPemails.py ------------ script for harvesting emails of domain targets @pgp.mit.edu $ ./PGPemails.py '@openbsd.org' 10|grep 'Theo de Raadt' [u"[u'Theo de Raadt ']"] find_ntp.py ----------- find ntp servers, it is a threaded script, using ntplib as a result it prints out the ntpserver and the version running $ ./find_ntp.py -l IPs.txt -t 500 -o ntpservers.txt [*] Found 148 entries [*] Entries 148 in queue [*] Running with 50 threads ================================================== IP Version ================================================== 103.x.x.x 2 157.x.x.x 3 find_ntp_nolib.py ----------------- this one is not using ntplib, instead it is building up its own socket and sending a simple ntp request to see if ntp is answering. also threaded. $ ./find_ntp_nolib.py -l IPs.txt -t 500 -o ntpservers.txt [*] Found 148 entries [*] Entries 148 in queue [*] Running with 50 threads ================================================== IP ================================================== 103.x.x.x 157.x.x.x generateRandomIP.sh ------------------- generate random ips with nmap find_dns.py ----------- similar to find_ntp, but searching for dns servers. give it an ip list, generated for instance with 'generateRandomIP.sh'. $ ./find_dns.py -l rIP.txt -t 100 -o dnsservers.txt [*] Found 1001 entries [*] Entries 1001 in queue [*] Running with 100 threads ================================================== IP NAME ================================================== 91.x.x.x (x.info) 191.x.x.x (191.x.br) 67.x.x.x (name.info) ================================================== [*] Done Author ------ dash