Don't hide hidden networks with 0 length ESSIDs

Whoops
This commit is contained in:
derv82
2017-06-11 21:55:37 -04:00
parent ebdde675e9
commit 41402c6481

View File

@@ -66,9 +66,7 @@ class Target(object):
def validate(self): def validate(self):
''' Checks that the target is valid. ''' ''' Checks that the target is valid. '''
if self.essid_len == 0: if self.channel == "-1":
raise Exception("Ignoring target with empty/blank ESSID (length: 0)")
elif self.channel == "-1":
raise Exception("Ignoring target with Negative-One (-1) channel") raise Exception("Ignoring target with Negative-One (-1) channel")
# Filter broadcast/multicast BSSIDs, see https://github.com/derv82/wifite2/issues/32 # Filter broadcast/multicast BSSIDs, see https://github.com/derv82/wifite2/issues/32