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

Skip to content

Commit bfe03ef

Browse files
committed
Fixes #5601
1 parent 27c4e8d commit bfe03ef

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.8.1.2"
23+
VERSION = "1.8.1.3"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

plugins/generic/custom.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ def sqlShell(self):
9898
query = _input("sql-shell> ")
9999
query = getUnicode(query, encoding=sys.stdin.encoding)
100100
query = query.strip("; ")
101+
except UnicodeDecodeError:
102+
print()
103+
errMsg = "invalid user input"
104+
logger.error(errMsg)
101105
except KeyboardInterrupt:
102106
print()
103107
errMsg = "user aborted"

0 commit comments

Comments
 (0)