mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +03:00
Patch for an Issue #1115
This commit is contained in:
parent
54e9a1fb2d
commit
ccbe424e23
|
@ -817,6 +817,7 @@ def cmdLineParser():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
command = raw_input("sqlmap-shell> ").strip()
|
command = raw_input("sqlmap-shell> ").strip()
|
||||||
|
command = getUnicode(command, encoding=sys.stdin.encoding)
|
||||||
except (KeyboardInterrupt, EOFError):
|
except (KeyboardInterrupt, EOFError):
|
||||||
print
|
print
|
||||||
raise SqlmapShellQuitException
|
raise SqlmapShellQuitException
|
||||||
|
|
|
@ -5,10 +5,13 @@ Copyright (c) 2006-2015 sqlmap developers (http://sqlmap.org/)
|
||||||
See the file 'doc/COPYING' for copying permission
|
See the file 'doc/COPYING' for copying permission
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
from extra.safe2bin.safe2bin import safechardecode
|
from extra.safe2bin.safe2bin import safechardecode
|
||||||
from lib.core.common import dataToStdout
|
from lib.core.common import dataToStdout
|
||||||
from lib.core.common import Backend
|
from lib.core.common import Backend
|
||||||
from lib.core.common import getSQLSnippet
|
from lib.core.common import getSQLSnippet
|
||||||
|
from lib.core.common import getUnicode
|
||||||
from lib.core.common import isStackingAvailable
|
from lib.core.common import isStackingAvailable
|
||||||
from lib.core.common import readInput
|
from lib.core.common import readInput
|
||||||
from lib.core.data import conf
|
from lib.core.data import conf
|
||||||
|
@ -125,6 +128,7 @@ class Abstraction(Web, UDF, Xp_cmdshell):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
command = raw_input("os-shell> ")
|
command = raw_input("os-shell> ")
|
||||||
|
command = getUnicode(command, encoding=sys.stdin.encoding)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print
|
print
|
||||||
errMsg = "user aborted"
|
errMsg = "user aborted"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user