Fix F841 warnings

This commit is contained in:
Shreya 2021-04-05 18:42:25 +05:30
parent d8e1be7d6f
commit 3e419478af
3 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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

View File

@ -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