File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4033,7 +4033,7 @@ def maskSensitiveData(msg):
40334033
40344034 >>> maskSensitiveData('python sqlmap.py -u "http://www.test.com/vuln.php?id=1" --banner') == 'python sqlmap.py -u *********************************** --banner'
40354035 True
4036- >>> maskSensitiveData('sqlmap.py -u test.com/index.go?id=index') == 'sqlmap.py -u **************************'
4036+ >>> maskSensitiveData('sqlmap.py -u test.com/index.go?id=index --auth-type=basic --auth-creds=foo:bar \\ ndummy line ') == 'sqlmap.py -u ************************** --auth-type=***** --auth-creds=******* \\ ndummy line '
40374037 True
40384038 """
40394039
@@ -4049,7 +4049,7 @@ def maskSensitiveData(msg):
40494049 retVal = retVal .replace (value , '*' * len (value ))
40504050
40514051 # Just in case (for problematic parameters regarding user encoding)
4052- for match in re .finditer (r"(?i )[ -]-(u|url|data|cookie|auth-\w+|proxy|host|referer|headers?|H)( |=)(.*?)(?= -?-[a-z]|\Z )" , retVal ):
4052+ for match in re .finditer (r"(?im )[ -]-(u|url|data|cookie|auth-\w+|proxy|host|referer|headers?|H)( |=)(.*?)(?= -?-[a-z]|$ )" , retVal ):
40534053 retVal = retVal .replace (match .group (3 ), '*' * len (match .group (3 )))
40544054
40554055 # Fail-safe substitutions
Original file line number Diff line number Diff line change 2020from thirdparty .six import unichr as _unichr
2121
2222# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23- VERSION = "1.6.12.7 "
23+ VERSION = "1.6.12.8 "
2424TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2525TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2626VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments