Patch for an Issue #1115

This commit is contained in:
Miroslav Stampar 2015-01-15 12:42:32 +01:00
parent 54e9a1fb2d
commit ccbe424e23
2 changed files with 5 additions and 0 deletions

View File

@ -817,6 +817,7 @@ def cmdLineParser():
try:
command = raw_input("sqlmap-shell> ").strip()
command = getUnicode(command, encoding=sys.stdin.encoding)
except (KeyboardInterrupt, EOFError):
print
raise SqlmapShellQuitException

View File

@ -5,10 +5,13 @@ Copyright (c) 2006-2015 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import sys
from extra.safe2bin.safe2bin import safechardecode
from lib.core.common import dataToStdout
from lib.core.common import Backend
from lib.core.common import getSQLSnippet
from lib.core.common import getUnicode
from lib.core.common import isStackingAvailable
from lib.core.common import readInput
from lib.core.data import conf
@ -125,6 +128,7 @@ class Abstraction(Web, UDF, Xp_cmdshell):
try:
command = raw_input("os-shell> ")
command = getUnicode(command, encoding=sys.stdin.encoding)
except KeyboardInterrupt:
print
errMsg = "user aborted"