Skip to content

Commit 7b26332

Browse files
committed
Update for sqlmapproject#2410
1 parent cd31bf4 commit 7b26332

File tree

3 files changed

+22
-16
lines changed

3 files changed

+22
-16
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.2.14"
22+
VERSION = "1.1.2.15"
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/utils/api.py

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,12 @@ def client(host=RESTAPI_DEFAULT_ADDRESS, port=RESTAPI_DEFAULT_PORT):
767767
logger.error("Program arguments are missing")
768768
continue
769769

770-
argv = ["sqlmap.py"] + shlex.split(command)[1:]
770+
try:
771+
argv = ["sqlmap.py"] + shlex.split(command)[1:]
772+
except Exception, ex:
773+
logger.error("Error occurred while parsing arguments ('%s')" % ex)
774+
taskid = None
775+
continue
771776

772777
try:
773778
cmdLineOptions = cmdLineParser(argv).__dict__
@@ -819,18 +824,19 @@ def client(host=RESTAPI_DEFAULT_ADDRESS, port=RESTAPI_DEFAULT_PORT):
819824
return
820825

821826
elif command in ("help", "?"):
822-
msg = "help Show this help message\n"
823-
msg += "new ARGS Start a new scan task with provided arguments (e.g. 'new -u \"http://testphp.vulnweb.com/artists.php?artist=1\"')\n"
824-
msg += "use TASKID Switch current context to different task (e.g. 'use c04d8c5c7582efb4')\n"
825-
msg += "data Retrieve and show data for current task\n"
826-
msg += "log Retrieve and show log for current task\n"
827-
msg += "status Retrieve and show status for current task\n"
828-
msg += "option Retrieve and show options for current task\n"
829-
msg += "stop Stop current task\n"
830-
msg += "kill Kill current task\n"
831-
msg += "list Display all tasks\n"
832-
msg += "flush Flush tasks (delete all tasks)\n"
833-
msg += "exit Exit this client\n"
827+
msg = "help Show this help message\n"
828+
msg += "new ARGS Start a new scan task with provided arguments (e.g. 'new -u \"http://testphp.vulnweb.com/artists.php?artist=1\"')\n"
829+
msg += "use TASKID Switch current context to different task (e.g. 'use c04d8c5c7582efb4')\n"
830+
msg += "data Retrieve and show data for current task\n"
831+
msg += "log Retrieve and show log for current task\n"
832+
msg += "status Retrieve and show status for current task\n"
833+
msg += "option OPTION Retrieve and show option for current task\n"
834+
msg += "options Retrieve and show all options for current task\n"
835+
msg += "stop Stop current task\n"
836+
msg += "kill Kill current task\n"
837+
msg += "list Display all tasks\n"
838+
msg += "flush Flush tasks (delete all tasks)\n"
839+
msg += "exit Exit this client\n"
834840

835841
dataToStdout(msg)
836842

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-
d459e275f77cb0e75d025e90638c0334 lib/core/settings.py
48+
c3f9110aa13353de71cfdb38373cae2c lib/core/settings.py
4949
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
5050
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
5151
afd0636d2e93c23f4f0a5c9b6023ea17 lib/core/target.py
@@ -99,7 +99,7 @@ d3da4c7ceaf57c4687a052d58722f6bb lib/techniques/dns/use.py
9999
310efc965c862cfbd7b0da5150a5ad36 lib/techniques/union/__init__.py
100100
4bed3ed51faad9b910899cacf56e8eac lib/techniques/union/test.py
101101
8cd5655c60a638caa30ca1220896aeda lib/techniques/union/use.py
102-
2503710e4b6316e40ddde872d5bbd04a lib/utils/api.py
102+
11e6e46fac5afc8a6ce5862fd910d164 lib/utils/api.py
103103
29e32d59fcdd63c5a13498af1f367c8c lib/utils/crawler.py
104104
ba12c69a90061aa14d848b8396e79191 lib/utils/deps.py
105105
3b9fd519164e0bf275d5fd361c3f11ff lib/utils/getch.py

0 commit comments

Comments
 (0)