Skip to content

Commit a60c9b0

Browse files
committed
Minor patch
1 parent 2eb7a1d commit a60c9b0

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

lib/core/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@
141141
from lib.core.settings import REFLECTED_VALUE_MARKER
142142
from lib.core.settings import REFLECTIVE_MISS_THRESHOLD
143143
from lib.core.settings import SENSITIVE_DATA_REGEX
144+
from lib.core.settings import SENSITIVE_OPTIONS
144145
from lib.core.settings import SUPPORTED_DBMS
145146
from lib.core.settings import TEXT_TAG_REGEX
146147
from lib.core.settings import TIME_STDEV_COEFF
@@ -3242,7 +3243,7 @@ def maskSensitiveData(msg):
32423243

32433244
retVal = getUnicode(msg)
32443245

3245-
for item in filter(None, map(lambda x: conf.get(x), ("hostname", "data", "dnsDomain", "googleDork", "authCred", "proxyCred", "tbl", "db", "col", "user", "cookie", "proxy", "rFile", "wFile", "dFile"))):
3246+
for item in filter(None, map(lambda x: conf.get(x), SENSITIVE_OPTIONS)):
32463247
regex = SENSITIVE_DATA_REGEX % re.sub("(\W)", r"\\\1", getUnicode(item))
32473248
while extractRegexResult(regex, retVal):
32483249
value = extractRegexResult(regex, retVal)

lib/core/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.11.6"
22+
VERSION = "1.0.11.7"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
@@ -343,6 +343,9 @@
343343
# Regex used for masking sensitive data
344344
SENSITIVE_DATA_REGEX = "(\s|=)(?P<result>[^\s=]*%s[^\s]*)\s"
345345

346+
# Options to explicitly mask in anonymous (unhandled exception) reports (along with anything carrying the <hostname> inside)
347+
SENSITIVE_OPTIONS = ("hostname", "data", "dnsDomain", "googleDork", "authCred", "proxyCred", "tbl", "db", "col", "user", "cookie", "proxy", "rFile", "wFile", "dFile", "testParameter", "authCred")
348+
346349
# Maximum number of threads (avoiding connection issues and/or DoS)
347350
MAX_NUMBER_OF_THREADS = 10
348351

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ec007a1424da78cfdae90da6ae49ed9b lib/controller/handler.py
2626
cc9c82cfffd8ee9b25ba3af6284f057e lib/controller/__init__.py
2727
04f16204c899438dc7599a9a8426bfee lib/core/agent.py
2828
eb0bd28b0bd9fbf67dcc3119116df377 lib/core/bigarray.py
29-
136246c879e7a15309ed892ea4c1c3eb lib/core/common.py
29+
b660a7a68f1bd92b1be0bd5069943686 lib/core/common.py
3030
ab5ef8fe4e4beaef4016d458d0fdefe3 lib/core/convert.py
3131
e77cca1cb063016f71f6e6bdebf4ec73 lib/core/data.py
3232
1d042f0bc0557d3fd564ea5a46deb77e lib/core/datatype.py
@@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py
4545
5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py
4646
99a2b496b9d5b546b335653ca801153f lib/core/revision.py
4747
7c15dd2777af4dac2c89cab6df17462e lib/core/session.py
48-
f2af4d009e24068b5a6f41063d35ff25 lib/core/settings.py
48+
766f2beb17bc407c8b7a55527d9c089d lib/core/settings.py
4949
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
5050
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
5151
c3ace7874a536d801f308cf1fd03df99 lib/core/target.py

0 commit comments

Comments
 (0)