We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d772e7e commit 8d1e1eaCopy full SHA for 8d1e1ea
1 file changed
sqlmap.py
@@ -147,6 +147,13 @@ def main():
147
logger.error(errMsg)
148
raise SystemExit
149
150
+ elif "bad marshal data (unknown type code)" in excMsg:
151
+ match = re.search(r"\s*(.+)\s+ValueError", excMsg)
152
+ errMsg = "one of your .pyc files are corrupted%s" % (" ('%s')" % match.group(1) if match else "")
153
+ errMsg += ". Please delete .pyc files on your system to fix the problem"
154
+ logger.error(errMsg)
155
+ raise SystemExit
156
+
157
for match in re.finditer(r'File "(.+?)", line', excMsg):
158
file_ = match.group(1)
159
file_ = os.path.relpath(file_, os.path.dirname(__file__))
0 commit comments