Ejemplo n.º 1
0
 def run(self):
     log(1, self.ip, 'started')
     #self.ip_cidr_list = list(netaddr.IPNetwork(self.cidr))   # too much memory wasted
     try:
         if check(self.ip):
             compromise(self.ip)
     except:
         log(1, 'run', '{}'.format(sys.exc_info()))
Ejemplo n.º 2
0
 def run(self):
     log(self.name, 'started')
     #self.ip_cidr_list = list(netaddr.IPNetwork(self.cidr))   # too much memory wasted
     self.ip_cidr_list = netaddr.IPNetwork(self.cidr).iter_hosts()
     for self.ip in self.ip_cidr_list:
         if self.ip.is_unicast() and not self.ip.is_private():
             try:
                 if check(self.ip):
                     compromise(self.ip)
             except:
                 log('run', '{}'.format(sys.exc_info()))
Ejemplo n.º 3
0
 def run(self):
     log(self.name, 'started')
     #self.ip_cidr_list = list(netaddr.IPNetwork(self.cidr))   # too much memory wasted
     self.ip_cidr_list = netaddr.IPNetwork(self.cidr).iter_hosts()
     for self.ip in self.ip_cidr_list:
         if self.ip.is_unicast() and not self.ip.is_private():
             try:
                 if check(self.ip):
                     compromise(self.ip)
             except:
                 log('run', '{}'.format(sys.exc_info()))