pastebin - collaborative debugging tool
kpaste.net RSS


Untitled
Posted by Anonymous on Sat 8th Dec 2012 16:17
raw | new post

  1. #! /usr/bin/env python
  2. import sys, os
  3. from scapy.all import *
  4. scanlist=[]
  5. for ipdir in os.listdir('/home/pronto/scripts/flask/static/IPs/'):
  6.     if not os.path.isfile('/home/pronto/scripts/flask/static/IPs/'+ipdir+'/trace.svg'):
  7.         scanlist.append(ipdir)
  8.         res,unans=traceroute(ipdir,dport=[22,80,443],maxttl=20,retry=-2)
  9.         res.graph(target="> /home/pronto/scripts/flask/static/IPs/%s/trace.svg" % (ipdir))

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.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at