Skip to content

Commit e506a39

Browse files
committed
Minor patch (prevent message spamming of multiple union column possibilities)
1 parent c5b4af8 commit e506a39

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

lib/core/settings.py

Lines changed: 1 addition & 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.1.3.8"
22+
VERSION = "1.1.3.9"
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)

lib/techniques/union/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
See the file 'doc/COPYING' for copying permission
66
"""
77

8+
import logging
89
import random
910
import re
1011

@@ -154,7 +155,7 @@ def _orderByTest(cols):
154155

155156
if retVal:
156157
infoMsg = "target URL appears to be UNION injectable with %d columns" % retVal
157-
singleTimeLogMessage(infoMsg)
158+
singleTimeLogMessage(infoMsg, logging.INFO, re.sub(r"\d+", "N", infoMsg))
158159

159160
return retVal
160161

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ a8143dab9d3a27490f7d49b6b29ea530 lib/core/data.py
4545
d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4646
785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
4747
40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
48-
6d8623d9c8110f16376d9e7191b65b80 lib/core/settings.py
48+
47e05b1154e984d7aabedc5231a9ef1c lib/core/settings.py
4949
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
5050
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
5151
afd0636d2e93c23f4f0a5c9b6023ea17 lib/core/target.py
@@ -97,7 +97,7 @@ d3da4c7ceaf57c4687a052d58722f6bb lib/techniques/dns/use.py
9797
2fb0eb698fc9d6e19960d2136bce787d lib/techniques/error/use.py
9898
310efc965c862cfbd7b0da5150a5ad36 lib/techniques/__init__.py
9999
310efc965c862cfbd7b0da5150a5ad36 lib/techniques/union/__init__.py
100-
4bed3ed51faad9b910899cacf56e8eac lib/techniques/union/test.py
100+
19fd73af7a278fd72b46a5a60f5bdd09 lib/techniques/union/test.py
101101
8cd5655c60a638caa30ca1220896aeda lib/techniques/union/use.py
102102
b8c9bbf1a50f1b2fdd0d3644922e252a lib/utils/api.py
103103
29e32d59fcdd63c5a13498af1f367c8c lib/utils/crawler.py

0 commit comments

Comments
 (0)