forked from p15670423/monkey
Fix F841 warnings
This commit is contained in:
parent
d8e1be7d6f
commit
3e419478af
|
@ -113,7 +113,7 @@ class SmbTools(object):
|
|||
return None
|
||||
|
||||
try:
|
||||
tid = smb.connectTree(share_name)
|
||||
smb.connectTree(share_name)
|
||||
except Exception as exc:
|
||||
LOG.debug("Error connecting tree to share '%s' on victim %r: %s",
|
||||
share_name, host, exc)
|
||||
|
|
|
@ -227,7 +227,7 @@ class Ms08_067_Exploiter(HostExploiter):
|
|||
self._config.remote_user_pass,
|
||||
self._config.user_to_add).encode())
|
||||
time.sleep(2)
|
||||
reply = sock.recv(1000)
|
||||
sock.recv(1000)
|
||||
|
||||
LOG.debug("Exploited into %r using MS08-067", self.host)
|
||||
exploited = True
|
||||
|
|
|
@ -144,7 +144,6 @@ def get_interfaces_ranges():
|
|||
for net_interface in ifs:
|
||||
address_str = net_interface['addr']
|
||||
netmask_str = net_interface['netmask']
|
||||
ip_interface = ipaddress.ip_interface("%s/%s" % (address_str, netmask_str))
|
||||
# limit subnet scans to class C only
|
||||
res.append(CidrRange(cidr_range="%s/%s" % (address_str, netmask_str)))
|
||||
return res
|
||||
|
|
Loading…
Reference in New Issue