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

Skip to content

Commit ccbe424

Browse files
committed
Patch for an Issue #1115
1 parent 54e9a1f commit ccbe424

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

lib/parse/cmdline.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@ def _(self, *args):
817817

818818
try:
819819
command = raw_input("sqlmap-shell> ").strip()
820+
command = getUnicode(command, encoding=sys.stdin.encoding)
820821
except (KeyboardInterrupt, EOFError):
821822
print
822823
raise SqlmapShellQuitException

lib/takeover/abstraction.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@
55
See the file 'doc/COPYING' for copying permission
66
"""
77

8+
import sys
9+
810
from extra.safe2bin.safe2bin import safechardecode
911
from lib.core.common import dataToStdout
1012
from lib.core.common import Backend
1113
from lib.core.common import getSQLSnippet
14+
from lib.core.common import getUnicode
1215
from lib.core.common import isStackingAvailable
1316
from lib.core.common import readInput
1417
from lib.core.data import conf
@@ -125,6 +128,7 @@ def shell(self):
125128

126129
try:
127130
command = raw_input("os-shell> ")
131+
command = getUnicode(command, encoding=sys.stdin.encoding)
128132
except KeyboardInterrupt:
129133
print
130134
errMsg = "user aborted"

0 commit comments

Comments
 (0)