diff --git a/lib/core/enums.py b/lib/core/enums.py index 91290b19f..d817cef04 100644 --- a/lib/core/enums.py +++ b/lib/core/enums.py @@ -140,6 +140,7 @@ class HASHDB_KEYS: KB_BRUTE_TABLES = "KB_BRUTE_TABLES" KB_BRUTE_COLUMNS = "KB_BRUTE_COLUMNS" CONF_TMP_PATH = "CONF_TMP_PATH" + KB_XP_CMDSHELL_AVAILABLE = "KB_XP_CMDSHELL_AVAILABLE" class REDIRECTION: FOLLOW = "1" diff --git a/lib/core/target.py b/lib/core/target.py index b9f97e61f..1f4238246 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -213,7 +213,7 @@ def __resumeHashDBValues(): kb.chars = hashDBRetrieve(HASHDB_KEYS.KB_CHARS, True) or kb.chars kb.brute.tables = hashDBRetrieve(HASHDB_KEYS.KB_BRUTE_TABLES, True) or kb.brute.tables kb.brute.columns = hashDBRetrieve(HASHDB_KEYS.KB_BRUTE_COLUMNS, True) or kb.brute.columns - kb.xpCmdshellAvailable = hashDBRetrieve(HASHDB_KEYS.XP_CMDSHELL_AVAILABLE) or kb.xpCmdshellAvailable + kb.xpCmdshellAvailable = hashDBRetrieve(HASHDB_KEYS.KB_XP_CMDSHELL_AVAILABLE) or kb.xpCmdshellAvailable conf.tmpPath = conf.tmpPath or hashDBRetrieve(HASHDB_KEYS.CONF_TMP_PATH) diff --git a/lib/takeover/xp_cmdshell.py b/lib/takeover/xp_cmdshell.py index 3d8d6d89b..23dd179a2 100644 --- a/lib/takeover/xp_cmdshell.py +++ b/lib/takeover/xp_cmdshell.py @@ -186,7 +186,7 @@ class xp_cmdshell: warnMsg += "because sp_OACreate is disabled" logger.warn(warnMsg) - hashDBWrite(HASHDB_KEYS.XP_CMDSHELL_AVAILABLE, kb.xpCmdshellAvailable) + hashDBWrite(HASHDB_KEYS.KB_XP_CMDSHELL_AVAILABLE, kb.xpCmdshellAvailable) if not kb.xpCmdshellAvailable: errMsg = "unable to proceed without xp_cmdshell"