- #! /usr/bin/env python
- import sys, os
- from scapy.all import *
- scanlist=[]
- for ipdir in os.listdir('/home/pronto/scripts/flask/static/IPs/'):
- if not os.path.isfile('/home/pronto/scripts/flask/static/IPs/'+ipdir+'/trace.svg'):
- scanlist.append(ipdir)
- res,unans=traceroute(ipdir,dport=[22,80,443],maxttl=20,retry=-2)
- res.graph(target="> /home/pronto/scripts/flask/static/IPs/%s/trace.svg" % (ipdir))
Untitled
Posted by Anonymous on Sat 8th Dec 2012 16:17
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.