mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-12 02:22:55 +00:00
Minor update
This commit is contained in:
@@ -98,7 +98,7 @@ def _vector():
|
||||
|
||||
class _BooleanJitterBase(unittest.TestCase):
|
||||
_CONF = ("threads", "api", "verbose", "direct", "string", "notString", "regexp", "code", "lengths",
|
||||
"titles", "textOnly", "predictOutput", "hexConvert", "charset", "firstChar", "lastChar",
|
||||
"titles", "textOnly", "hexConvert", "charset", "firstChar", "lastChar",
|
||||
"ignoreCode", "ignoreTimeouts")
|
||||
_KB = ("negativeLogic", "nullConnection", "errorIsNone", "pageTemplate", "matchRatio", "heavilyDynamic",
|
||||
"pageStructurallyStable", "skipSeqMatcher", "pageEncoding", "partRun", "safeCharEncode",
|
||||
@@ -126,7 +126,7 @@ class _BooleanJitterBase(unittest.TestCase):
|
||||
set_dbms("MySQL")
|
||||
conf.threads = 1; conf.api = False; conf.verbose = 0; conf.direct = False
|
||||
conf.string = _STRING; conf.notString = None; conf.regexp = None; conf.code = None
|
||||
conf.lengths = None; conf.titles = None; conf.textOnly = None; conf.predictOutput = False
|
||||
conf.lengths = None; conf.titles = None; conf.textOnly = None
|
||||
conf.hexConvert = False; conf.charset = None; conf.firstChar = None; conf.lastChar = None
|
||||
conf.ignoreCode = []; conf.ignoreTimeouts = False
|
||||
kb.negativeLogic = False; kb.nullConnection = False; kb.errorIsNone = True
|
||||
|
||||
@@ -39,7 +39,7 @@ TEMPLATE = "EXPR=%s IDX=%d CMP>%d"
|
||||
_PARSE = re.compile(r"IDX=(\d+) CMP(.)(\d+)")
|
||||
|
||||
# conf/kb knobs bisection reads on the simple single-threaded, no-prediction path
|
||||
_CONF = {"predictOutput": False, "threads": 1, "api": False, "verbose": 0, "hexConvert": False,
|
||||
_CONF = {"threads": 1, "api": False, "verbose": 0, "hexConvert": False,
|
||||
"charset": None, "firstChar": None, "lastChar": None, "timeSec": 5}
|
||||
_KB = {"partRun": None, "safeCharEncode": False, "bruteMode": False, "fileReadMode": False,
|
||||
"disableShiftTable": False, "originalTimeDelay": 5, "prependFlag": False}
|
||||
|
||||
@@ -61,7 +61,7 @@ def _timeVector():
|
||||
|
||||
|
||||
class _JitterBase(unittest.TestCase):
|
||||
_CONF = ("threads", "api", "verbose", "direct", "disableStats", "timeSec", "predictOutput",
|
||||
_CONF = ("threads", "api", "verbose", "direct", "disableStats", "timeSec",
|
||||
"hexConvert", "charset", "firstChar", "lastChar")
|
||||
_KB = ("responseTimeMode", "responseTimePayload", "adjustTimeDelay", "laggingChecked", "partRun",
|
||||
"safeCharEncode", "bruteMode", "fileReadMode", "disableShiftTable", "prependFlag",
|
||||
@@ -87,7 +87,7 @@ class _JitterBase(unittest.TestCase):
|
||||
def _configure(self, baselineJitter, rng, nBaseline=30):
|
||||
set_dbms("MySQL")
|
||||
conf.threads = 1; conf.api = False; conf.verbose = 0; conf.direct = False
|
||||
conf.disableStats = False; conf.timeSec = _TIMESEC; conf.predictOutput = False
|
||||
conf.disableStats = False; conf.timeSec = _TIMESEC
|
||||
conf.hexConvert = False; conf.charset = None; conf.firstChar = None; conf.lastChar = None
|
||||
kb.responseTimeMode = None
|
||||
kb.responseTimePayload = None
|
||||
|
||||
@@ -688,7 +688,7 @@ class TestBasicOptionValidation(_BackendGuard):
|
||||
"textOnly", "nullConnection", "uValues", "uChar", "base64Parameter",
|
||||
"tamper", "eta", "verbose", "direct", "url", "dbms", "tor", "proxy",
|
||||
"ignoreProxy", "regexp", "timeSec", "torPort", "torType", "dumpFormat",
|
||||
"technique", "threads", "predictOutput", "optimize", "csrfToken",
|
||||
"technique", "threads", "optimize", "csrfToken",
|
||||
"csrfUrl", "string", "notString", "noCast", "hexConvert",
|
||||
)
|
||||
|
||||
@@ -701,7 +701,6 @@ class TestBasicOptionValidation(_BackendGuard):
|
||||
conf.direct = False
|
||||
conf.tor = False
|
||||
conf.ignoreProxy = False
|
||||
conf.predictOutput = False
|
||||
conf.optimize = False
|
||||
conf.noCast = False
|
||||
conf.hexConvert = False
|
||||
@@ -1136,7 +1135,7 @@ class TestBasicOptionValidationExtra(unittest.TestCase):
|
||||
"textOnly", "nullConnection", "uValues", "uChar", "base64Parameter",
|
||||
"tamper", "eta", "verbose", "direct", "url", "dbms", "tor", "proxy",
|
||||
"ignoreProxy", "regexp", "timeSec", "torPort", "torType", "dumpFormat",
|
||||
"technique", "threads", "predictOutput", "optimize", "csrfToken",
|
||||
"technique", "threads", "optimize", "csrfToken",
|
||||
"csrfUrl", "csrfMethod", "csrfData", "string", "notString", "noCast",
|
||||
"hexConvert", "titles", "dumpTable", "search", "dumpAll", "data",
|
||||
"requestFile", "forms", "googleDork", "bulkFile", "chunked",
|
||||
@@ -1155,7 +1154,6 @@ class TestBasicOptionValidationExtra(unittest.TestCase):
|
||||
conf.direct = False
|
||||
conf.tor = False
|
||||
conf.ignoreProxy = False
|
||||
conf.predictOutput = False
|
||||
conf.optimize = False
|
||||
conf.noCast = False
|
||||
conf.hexConvert = False
|
||||
|
||||
@@ -1415,7 +1415,7 @@ TEMPLATE = "EXPR=%s IDX=%d CMP>%d"
|
||||
_PARSE = re.compile(r"IDX=(\d+) CMP(.)(\d+)")
|
||||
|
||||
# conf/kb knobs bisection reads on the simple single-threaded, no-prediction path
|
||||
_CONF = {"predictOutput": False, "threads": 1, "api": False, "verbose": 0, "hexConvert": False,
|
||||
_CONF = {"threads": 1, "api": False, "verbose": 0, "hexConvert": False,
|
||||
"charset": None, "firstChar": None, "lastChar": None, "timeSec": 5, "eta": False,
|
||||
"repair": False, "flushSession": None, "freshQueries": None, "hashDB": None}
|
||||
_KB = {"partRun": None, "safeCharEncode": False, "bruteMode": False, "fileReadMode": False,
|
||||
|
||||
Reference in New Issue
Block a user