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):
4033
4033
4034
4034
>>> maskSensitiveData('python sqlmap.py -u "http://www.test.com/vuln.php?id=1" --banner') == 'python sqlmap.py -u *********************************** --banner'
4035
4035
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 '
4037
4037
True
4038
4038
"""
4039
4039
@@ -4049,7 +4049,7 @@ def maskSensitiveData(msg):
4049
4049
retVal = retVal .replace (value , '*' * len (value ))
4050
4050
4051
4051
# 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 ):
4053
4053
retVal = retVal .replace (match .group (3 ), '*' * len (match .group (3 )))
4054
4054
4055
4055
# Fail-safe substitutions
Original file line number Diff line number Diff line change 20
20
from thirdparty .six import unichr as _unichr
21
21
22
22
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23
- VERSION = "1.6.12.7 "
23
+ VERSION = "1.6.12.8 "
24
24
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
25
25
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
26
26
VERSION_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