File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 109109from lib .core .settings import DEFAULT_TOR_SOCKS_PORTS
110110from lib .core .settings import DEFAULT_USER_AGENT
111111from lib .core .settings import DUMMY_URL
112+ from lib .core .settings import IGNORE_CODE_WILDCARD
112113from lib .core .settings import IS_WIN
113114from lib .core .settings import KB_CHARS_BOUNDARY_CHAR
114115from lib .core .settings import KB_CHARS_LOW_FREQUENCY_ALPHABET
@@ -1569,11 +1570,14 @@ def _cleanupOptions():
15691570 conf .testParameter = []
15701571
15711572 if conf .ignoreCode :
1572- try :
1573- conf .ignoreCode = [int (_ ) for _ in re .split (PARAMETER_SPLITTING_REGEX , conf .ignoreCode )]
1574- except ValueError :
1575- errMsg = "options '--ignore-code' should contain a list of integer values"
1576- raise SqlmapSyntaxException (errMsg )
1573+ if conf .ignoreCode == IGNORE_CODE_WILDCARD :
1574+ conf .ignoreCode = xrange (0 , 1000 )
1575+ else :
1576+ try :
1577+ conf .ignoreCode = [int (_ ) for _ in re .split (PARAMETER_SPLITTING_REGEX , conf .ignoreCode )]
1578+ except ValueError :
1579+ errMsg = "options '--ignore-code' should contain a list of integer values or a wildcard value '%s'" % IGNORE_CODE_WILDCARD
1580+ raise SqlmapSyntaxException (errMsg )
15771581 else :
15781582 conf .ignoreCode = []
15791583
Original file line number Diff line number Diff line change 1818from thirdparty .six import unichr as _unichr
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.3.10.16 "
21+ VERSION = "1.3.10.17 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
413413# Character used for marking injectable position inside provided data
414414CUSTOM_INJECTION_MARK_CHAR = '*'
415415
416+ # Wildcard value that can be used in option --ignore-code
417+ IGNORE_CODE_WILDCARD = '*'
418+
416419# Other way to declare injection position
417420INJECT_HERE_REGEX = r"(?i)%INJECT[_ ]?HERE%"
418421
You can’t perform that action at this time.
0 commit comments