randomization of user agents

This commit is contained in:
Miroslav Stampar 2010-12-24 10:04:27 +00:00
parent d5eebb1cbf
commit d9f08e4aa3
2 changed files with 4 additions and 0 deletions

View File

@ -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")

View File

@ -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