Minor update

This commit is contained in:
Miroslav Štampar
2026-08-11 23:37:53 +02:00
parent e11ea65230
commit b154f084e0
6 changed files with 22 additions and 13 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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}
+2 -2
View File
@@ -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
+2 -4
View File
@@ -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
+1 -1
View File
@@ -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,