mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Patch for an Issue #1032
This commit is contained in:
@@ -24,6 +24,7 @@ from lib.core.data import logger
|
|||||||
from lib.core.defaults import defaults
|
from lib.core.defaults import defaults
|
||||||
from lib.core.enums import AUTOCOMPLETE_TYPE
|
from lib.core.enums import AUTOCOMPLETE_TYPE
|
||||||
from lib.core.exception import SqlmapShellQuitException
|
from lib.core.exception import SqlmapShellQuitException
|
||||||
|
from lib.core.exception import SqlmapSyntaxException
|
||||||
from lib.core.settings import BASIC_HELP_ITEMS
|
from lib.core.settings import BASIC_HELP_ITEMS
|
||||||
from lib.core.settings import DUMMY_URL
|
from lib.core.settings import DUMMY_URL
|
||||||
from lib.core.settings import IS_WIN
|
from lib.core.settings import IS_WIN
|
||||||
@@ -839,8 +840,11 @@ def cmdLineParser():
|
|||||||
loadHistory(AUTOCOMPLETE_TYPE.SQLMAP)
|
loadHistory(AUTOCOMPLETE_TYPE.SQLMAP)
|
||||||
break
|
break
|
||||||
|
|
||||||
for arg in shlex.split(command):
|
try:
|
||||||
argv.append(getUnicode(arg, encoding=sys.stdin.encoding))
|
for arg in shlex.split(command):
|
||||||
|
argv.append(getUnicode(arg, encoding=sys.stdin.encoding))
|
||||||
|
except ValueError, ex:
|
||||||
|
raise SqlmapSyntaxException, "something went wrong during command line parsing ('%s')" % ex
|
||||||
|
|
||||||
# Hide non-basic options in basic help case
|
# Hide non-basic options in basic help case
|
||||||
for i in xrange(len(argv)):
|
for i in xrange(len(argv)):
|
||||||
|
|||||||
Reference in New Issue
Block a user