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

Skip to content

Commit d038d02

Browse files
committed
Minor updates
1 parent c6577b8 commit d038d02

6 files changed

Lines changed: 12 additions & 11 deletions

File tree

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.7.8"
22+
VERSION = "1.1.7.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/core/target.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from lib.core.common import getUnicode
2121
from lib.core.common import hashDBRetrieve
2222
from lib.core.common import intersect
23+
from lib.core.common import isNumPosStrValue
2324
from lib.core.common import normalizeUnicode
2425
from lib.core.common import openFile
2526
from lib.core.common import paramToDict
@@ -436,7 +437,7 @@ def _resumeHashDBValues():
436437
kb.xpCmdshellAvailable = hashDBRetrieve(HASHDB_KEYS.KB_XP_CMDSHELL_AVAILABLE) or kb.xpCmdshellAvailable
437438

438439
kb.errorChunkLength = hashDBRetrieve(HASHDB_KEYS.KB_ERROR_CHUNK_LENGTH)
439-
if kb.errorChunkLength and kb.errorChunkLength.isdigit():
440+
if isNumPosStrValue(kb.errorChunkLength):
440441
kb.errorChunkLength = int(kb.errorChunkLength)
441442
else:
442443
kb.errorChunkLength = None

lib/utils/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ def client(host=RESTAPI_DEFAULT_ADDRESS, port=RESTAPI_DEFAULT_PORT):
736736
if not res["success"]:
737737
logger.error("Failed to execute command %s" % command)
738738
dataToStdout("%s\n" % raw)
739-
739+
740740
elif command.startswith("option"):
741741
if not taskid:
742742
logger.error("No task ID in use")

lib/utils/crawler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ def crawlThread():
112112
threadData.shared.deeper.add(url)
113113
if re.search(r"(.*?)\?(.+)", url):
114114
threadData.shared.value.add(url)
115-
except ValueError: # for non-valid links
116-
pass
117115
except UnicodeEncodeError: # for non-HTML files
118116
pass
117+
except ValueError: # for non-valid links
118+
pass
119119
finally:
120120
if conf.forms:
121121
findPageForms(content, current, False, True)

tamper/space2mysqlblank.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def tamper(payload, **kwargs):
3333
3434
>>> random.seed(0)
3535
>>> tamper('SELECT id FROM users')
36-
'SELECT%0Bid%0DFROM%0Cusers'
36+
'SELECT%A0id%0BFROM%0Cusers'
3737
"""
3838

3939
# ASCII table:

txt/checksum.md5

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ b9ff4e622c416116bee6024c0f050349 lib/core/enums.py
4646
d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4747
785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
4848
40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
49-
e65c91771c87c114238f281e198f802c lib/core/settings.py
49+
3f23a17e519b6334d343e57e0018efd1 lib/core/settings.py
5050
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
5151
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
52-
baa3f47efa6701076d026e43a6874a51 lib/core/target.py
52+
4416fdcab26b286a5a3a88e75aa60044 lib/core/target.py
5353
8970b88627902239d695280b1160e16c lib/core/testing.py
5454
b8306192d980abdc8d669c024511e9a1 lib/core/threads.py
5555
ad74fc58fc7214802fd27067bce18dd2 lib/core/unescaper.py
@@ -98,9 +98,9 @@ d3da4c7ceaf57c4687a052d58722f6bb lib/techniques/dns/use.py
9898
310efc965c862cfbd7b0da5150a5ad36 lib/techniques/union/__init__.py
9999
d71e48e6fd08f75cc612bf8b260994ce lib/techniques/union/test.py
100100
db3090ff9a740ba096ba676fcf44ebfc lib/techniques/union/use.py
101-
a73c3ddd0de359507a8ad59b363aa963 lib/utils/api.py
101+
9e903297f6d6bb11660af5c7b109ccab lib/utils/api.py
102102
7d10ba0851da8ee9cd3c140dcd18798e lib/utils/brute.py
103-
ed70f1ca9113664043ec9e6778e48078 lib/utils/crawler.py
103+
c08d2487a53a1db8170178ebcf87c864 lib/utils/crawler.py
104104
ba12c69a90061aa14d848b8396e79191 lib/utils/deps.py
105105
3b9fd519164e0bf275d5fd361c3f11ff lib/utils/getch.py
106106
1cd7599b5e6addb29cbab85d292ccf6c lib/utils/har.py
@@ -265,7 +265,7 @@ b2331640743170f82be9a8c27f65b206 tamper/space2morecomment.py
265265
507a174c64345df8df003ddba93c8cd1 tamper/space2morehash.py
266266
0ce89b0d602abbd64344ab038be8acbc tamper/space2mssqlblank.py
267267
fa66af20648b5538289748abe7a08fe6 tamper/space2mssqlhash.py
268-
9dde72d94ce42bf71e3615108fe0214f tamper/space2mysqlblank.py
268+
b5abc11a45e9646cd0e296548c42e787 tamper/space2mysqlblank.py
269269
038b8ea90f9a3a45b9bc67fcdff38511 tamper/space2mysqldash.py
270270
5665c217ef8998bfd18f9ef1d8c617bd tamper/space2plus.py
271271
a30fa43203d960c7a9d8709bf24ca401 tamper/space2randomblank.py

0 commit comments

Comments
 (0)