Update smb.py with missing try catch

main
mpgn 2023-06-29 22:56:20 +02:00 committed by GitHub
parent 3b6d335b2e
commit fc9734fa0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -322,7 +322,11 @@ class smb(connection):
self.args.kerberos,
self.args.kdcHost,
339)
data = d.run()
try:
data = d.run()
except Exception as e:
self.logger.fail(str(e))
return
r = loads(data)
msMCSAdmPwd = r["p"]
username_laps = r["n"]