Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1e31063

Browse files
committed
Minor stability patch
1 parent 47ee1a9 commit 1e31063

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

lib/core/common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3188,6 +3188,9 @@ def checkIntegrity():
31883188
Checks integrity of code files during the unhandled exceptions
31893189
"""
31903190

3191+
if not paths:
3192+
return
3193+
31913194
logger.debug("running code integrity check")
31923195

31933196
retVal = True

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.4.15"
22+
VERSION = "1.1.4.16"
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)

sqlmap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ def main():
115115

116116
try:
117117
checkEnvironment()
118-
119118
setPaths(modulePath())
120119
banner()
121120

@@ -203,9 +202,10 @@ def main():
203202
print
204203
errMsg = unhandledExceptionMessage()
205204
excMsg = traceback.format_exc()
205+
valid = checkIntegrity()
206206

207207
try:
208-
if not checkIntegrity():
208+
if valid is False:
209209
errMsg = "code integrity check failed (turning off automatic issue creation). "
210210
errMsg += "You should retrieve the latest development version from official GitHub "
211211
errMsg += "repository at '%s'" % GIT_PAGE
@@ -285,7 +285,7 @@ def main():
285285
errMsg = maskSensitiveData(errMsg)
286286
excMsg = maskSensitiveData(excMsg)
287287

288-
if conf.get("api"):
288+
if conf.get("api") or not valid:
289289
logger.critical("%s\n%s" % (errMsg, excMsg))
290290
else:
291291
logger.critical(errMsg)

txt/checksum.md5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ d79481ab99acd739615e747d4a79d9d0 lib/controller/handler.py
2626
310efc965c862cfbd7b0da5150a5ad36 lib/controller/__init__.py
2727
19905ecb4437b94512cf21d5f1720091 lib/core/agent.py
2828
6cc95a117fbd34ef31b9aa25520f0e31 lib/core/bigarray.py
29-
95e165749bdb830e51be2159bc2c021e lib/core/common.py
29+
f667d34b2869016ac2b97f82c4463599 lib/core/common.py
3030
5065a4242a8cccf72f91e22e1007ae63 lib/core/convert.py
3131
a8143dab9d3a27490f7d49b6b29ea530 lib/core/data.py
3232
7936d78b1a7f1f008ff92bf2f88574ba lib/core/datatype.py
@@ -45,7 +45,7 @@ dd19b4d930d418f8aef498941346ab2d lib/core/option.py
4545
d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4646
785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
4747
40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
48-
8d6ab6209fa5fc2bb2a414992320a1ce lib/core/settings.py
48+
f2cace15ba198ea85d8d67981ee739ea lib/core/settings.py
4949
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
5050
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
5151
afd0636d2e93c23f4f0a5c9b6023ea17 lib/core/target.py
@@ -224,7 +224,7 @@ c3cc8b7727161e64ab59f312c33b541a shell/stager.aspx_
224224
1f7f125f30e0e800beb21e2ebbab18e1 shell/stager.jsp_
225225
01e3505e796edf19aad6a996101c81c9 shell/stager.php_
226226
0751a45ac4c130131f2cdb74d866b664 sqlmapapi.py
227-
e6e6fbed25e09f29ce62a2d55932e331 sqlmap.py
227+
d715e78922d1b6bee7c9c03fdfa7ccfd sqlmap.py
228228
08c711a470d7e0bf705320ba3c48b886 tamper/apostrophemask.py
229229
e8509df10d3f1c28014d7825562d32dd tamper/apostrophenullencode.py
230230
bb27f7dc980ea07fcfedbd7da5e5e029 tamper/appendnullbyte.py

0 commit comments

Comments
 (0)