Better null session handle
parent
d53343369b
commit
b2a53dc896
|
@ -79,7 +79,8 @@ class connection(object):
|
|||
self.enum_host_info()
|
||||
self.proto_logger()
|
||||
self.print_host_info()
|
||||
self.login()
|
||||
# because of null session
|
||||
if self.login() or (self.username == '' and self.password == ''):
|
||||
if hasattr(self.args, 'module') and self.args.module:
|
||||
self.call_modules()
|
||||
else:
|
||||
|
|
|
@ -533,7 +533,7 @@ class smb(connection):
|
|||
self.username
|
||||
)[0][0]
|
||||
except:
|
||||
return
|
||||
pass
|
||||
permissions = []
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue