From c3713d75a3aa8d7764a70b3dbb98431d13956060 Mon Sep 17 00:00:00 2001 From: Sachin Kamath Date: Fri, 13 Mar 2020 02:28:12 +0530 Subject: [PATCH] Fix handling of a data field in NTLMSSP Signed-off-by: Sachin Kamath --- src/ntlmrecon/ntlmutil.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ntlmrecon/ntlmutil.py b/src/ntlmrecon/ntlmutil.py index f16fcf5..4263c5d 100644 --- a/src/ntlmrecon/ntlmutil.py +++ b/src/ntlmrecon/ntlmutil.py @@ -235,7 +235,10 @@ def gather_ntlm_info(url): response_data[url]['meta']['status'] = 'ok' response_data[url]['data'] = server_details # Let's save some bytes - del (response_data[url]['data']['UNKNOWN']) + try: + del (response_data[url]['data']['UNKNOWN']) + except KeyError: + pass """ if 'ews' in url: response_data[url]['data']['Server Type'] = 'Exchange Web Application'