Skip to content

Commit 034de96

Browse files
committed
Closes #1675
1 parent f54b25c commit 034de96

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sqlmap.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ def main():
163163
logger.error(errMsg)
164164
raise SystemExit
165165

166+
elif all(_ in excMsg for _ in ("pymysql", "configparser")):
167+
errMsg = "wrong initialization of pymsql detected (using Python3 dependencies)"
168+
logger.error(errMsg)
169+
raise SystemExit
170+
166171
elif "bad marshal data (unknown type code)" in excMsg:
167172
match = re.search(r"\s*(.+)\s+ValueError", excMsg)
168173
errMsg = "one of your .pyc files are corrupted%s" % (" ('%s')" % match.group(1) if match else "")

0 commit comments

Comments
 (0)