abdulfatirs

run

Jun 17th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. def run(self, data ,options="-Pn  -p 80,443,22,8980,5601,3306,9200,8080,3128"):
  2.     #start a new nmap scan on localhost with some specific options
  3.     targets=','.join(list(itertools.chain(*[[j[0] for j in i] for i in data])))
  4.     tags = list(itertools.chain(*[[j[1] for j in i] for i in data]))
  5.     regions = list(itertools.chain(*[[j[2] for j in i] for i in data]))
  6.  
  7.     syslog.syslog("Scan started")
  8.     parsed = None
  9.     nmproc = NmapProcess(targets,options)
Add Comment
Please, Sign In to add comment