Пример #1
0
 def __init__(self,hosts,ports=None,neping=None,threads=None,timeout=None):
     self.hosts = gethosts(hosts)
     self.ports = getports(ports) if ports else getports(PORTS)
     self.neping = neping and True
     self.threads = threads or 100
     self.timeout = timeout or 10
     self.result = {}
Пример #2
0
 def __init__(
         self,
         target,
         options="-sT -Pn -sV -O --script=banner -T5 --min-hostgroup 100 --min-parallelism 100 --host-timeout 10m --script-timeout 5m --defeat-rst-ratelimit",
         ports=None,
         neping=None,
         threads=None,
         timeout=10000):
     self.target = target
     self.options = options
     self.timeout = timeout
     if ports:
         self.options + '-p ' + ','.join(getports(ports))