python sqlmap.py missing one or more core extensions ('gzip', 'ssl', 'sqlite3', 'zlib')
# python
Python 2.7.14 (default, Apr 10 2018, 23:47:09)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import zlib
>>> import ssl
>>> import sqlite3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
from dbapi2 import *
File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
from _sqlite3 import *
ImportError: No module named _sqlite3
>>> import pyexpat
>>> import gzip
>>> import bz2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named bz2
>>>
安装bz2
yum install bzip2-devel -y
重新安装sqlite3和python