diff --git a/lib/core/common.py b/lib/core/common.py index 7842501ce..52adc8c29 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -678,6 +678,7 @@ def setPaths(): paths.COMMON_OUTPUTS = os.path.join(paths.SQLMAP_TXT_PATH, 'common-outputs.txt') paths.SQL_KEYWORDS = os.path.join(paths.SQLMAP_TXT_PATH, "keywords.txt") paths.ORACLE_DEFAULT_PASSWD = os.path.join(paths.SQLMAP_TXT_PATH, "oracle-default-passwords.txt") + paths.USER_AGENTS = os.path.join(paths.SQLMAP_TXT_PATH, "user-agents.txt") paths.WORDLIST = os.path.join(paths.SQLMAP_TXT_PATH, "wordlist.txt") paths.PHPIDS_RULES_XML = os.path.join(paths.SQLMAP_XML_PATH, "phpids_rules.xml") paths.ERRORS_XML = os.path.join(paths.SQLMAP_XML_PATH, "errors.xml") diff --git a/lib/core/option.py b/lib/core/option.py index c7b843104..258e251d0 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1073,6 +1073,9 @@ def __cleanupOptions(): conf.nullConnection = not (conf.textOnly or conf.longestCommon) conf.threads = 4 if conf.threads < 2 else conf.threads + if conf.realTest: + conf.userAgentsFile = paths.USER_AGENTS + def __setConfAttributes(): """ This function set some needed attributes into the configuration