andresriancho / w3af

w3af: web application attack and audit framework, the open source web vulnerability scanner.
http://w3af.org/
4.59k stars 1.22k forks source link

my kali installation issues #16029

Open guopeng0823 opened 7 years ago

guopeng0823 commented 7 years ago

i follow the Installation guide,and when i run the shellscript ". /tmp/w3af_dependency_install.sh", then something wrong happen, just like:

Failed building wheel for pybloomfiltermmap Failed building wheel for lxml Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-Uq2b28/pybloomfiltermmap/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-kVLG96-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-Uq2b28/pybloomfiltermmap/

1、linux distribution

root@kali2017-1:~# cat /etc/lsb-release DISTRIB_ID=Kali DISTRIB_RELEASE=kali-rolling DISTRIB_CODENAME=kali-rolling DISTRIB_DESCRIPTION="Kali GNU/Linux Rolling"

root@kali2017-1:~# uname -a Linux kali2017-1 4.12.0-kali1-686-pae #1 SMP Debian 4.12.6-1kali6 (2017-08-30) i686 GNU/Linux

2、contents of the /tmp/w3af_dependency_install.sh file

root@kali2017-1:/tmp# cat w3af_dependency_install.sh

!/bin/bash

sudo pip install pybloomfiltermmap==0.3.14 esmre==0.3.1 phply==0.9.1 nltk==3.0.1 chardet==2.1.1 tblib==0.2.0 pdfminer==20140328 futures==2.1.5 pyOpenSSL==0.15.1 ndg-httpsclient==0.3.3 lxml==3.4.4 scapy-real==2.2.0-dev guess-language==0.2 cluster==1.1.1b3 msgpack-python==0.4.4 python-ntlm==1.0.1 halberd==0.2.4 darts.util.lru==0.5 Jinja2==2.7.3 vulndb==0.0.19 markdown==2.6.1 psutil==2.2.1 mitmproxy==0.13 ruamel.ordereddict==0.4.8 Flask==0.10.1 tldextract==1.7.2

3、 output of pip freeze

root@kali2017-1:/tmp# pip freeze Warning: cannot find svn location for chirp===daily-20170714 adns-python==1.2.1 anyjson==0.3.3 argcomplete==1.8.1 argh==0.26.2 asn1crypto==0.22.0 attrs==17.2.0 Automat==0.6.0 backdoor-factory==0.0.0 backports-abc==0.5 backports.shutil-get-terminal-size==1.0.0 backports.ssl-match-hostname==3.5.0.1 BBQSQL==1.0 BeautifulSoup==3.2.1 beautifulsoup4==4.6.0 BlindElephant==1.0 blinker==1.3 brotlipy==0.6.0 capstone==3.0.4 certifi==2017.4.17 chardet==3.0.4 FIXME: could not find svn URL in dependency_links for this package: chirp===daily-20170714 click==6.7 colorama==0.3.7 ConfigArgParse==0.11.0 configobj==5.0.6 configparser==3.5.0 constantly==15.1.0 construct==2.5.2 couchdbkit==0.6.5 cryptography==1.9 cssutils==1.0 cycler==0.10.0 decorator==4.1.1 dicttoxml==1.7.4 dissy==9 distorm3==3.3.4 dnslib==0.9.7 dnspython==1.15.0 docutils==0.13.1 easygui==0.96 Elixir==0.7.1 enum34==1.1.6 feedparser==5.1.3 Flask==0.12.2 functools32==3.2.3.post2 fuse-python==0.2.1 future==0.15.2 futures==3.1.1 GDAL==2.2.1 GeoIP==1.3.2 gevent==1.1.2 gitdb2==2.0.2 GitPython==2.1.3 greenlet==0.4.12 h2==2.5.2 hpack==3.0.0 html2text==2016.9.19 html5lib==0.999999999 http-parser==0.8.3 httplib2==0.9.2 httpretty==0.8.14 hyperframe==4.0.1 hyperlink==17.3.1 idna==2.5 impacket==0.9.15 incremental==16.10.1 ipaddress==1.0.17 IPy==0.83 ipython==5.1.0 ipython-genutils==0.2.0 itsdangerous==0.24 jdcal==1.0 Jinja2==2.9.6 jsbeautifier==1.6.4 jsonpickle==0.9.5 jsonrpclib==0.1.3 keepnote==0.7.8 keyring==10.4.0 keyrings.alt==2.2 killerbee==1.0 lxml==3.8.0 M2Crypto==0.24.0 Mako==1.0.7 MarkupSafe==1.0 matplotlib==2.0.0 mechanize==0.2.5 mercurial==4.0 metaconfig==0.1.4a1 mitmproxy==0.18.2 mockito==0.5.2 msgpack-python==0.4.8 mysqlclient==1.3.10 nassl==0.12 netaddr==0.7.18 NfSpy==1.0 numpy==1.13.1 olefile==0.44 openpyxl==2.3.0 PAM==0.4.2 paramiko==2.0.0 passlib==1.7.1 pathlib2==2.3.0 pathtools==0.1.2 pcapy==0.10.8 pefile==2017.9.3 pexpect==4.2.1 pickleshare==0.7.4 Pillow==4.2.1 prettytable==0.7.2 prompt-toolkit==1.0.14 psycopg2==2.7.3 py==1.4.34 pyasn1==0.1.9 pyasn1-modules==0.0.7 pyClamd==0.3.15 pycrypto==2.6.1 pycurl==7.43.0 pydns==2.3.6 pyenchant==1.6.7 PyGithub==1.21.0 Pygments==2.2.0 pygobject==3.24.1 pygtkspellcheck==4.0.5 pyinotify==0.9.6 pylibemu==0.3.3 pymongo==3.5.1 pymssql==2.1.3 pyOpenSSL==16.2.0 pyparsing==2.1.10 PyPDF2==1.26.0 pyperclip==1.5.27 pyrit==0.5.1 pyscard==1.9.6 pyserial==3.4 pysnmp==4.3.2 pysnmp-apps==0.3.2 pysnmp-mibs==0.1.3 PySocks==1.6.5 pyspatialite==3.0.1 pysqlite==2.7.0 pytest==3.2.1 python-dateutil==2.6.1 python-Levenshtein==0.12.0 pytz==2017.2 pyusb==1.0.0b2 PyX==0.12.1 pyxdg==0.25 PyYAML==3.12 qrcode==5.3 requests==2.18.1 restkit==4.2.2 rfidiot==1.0 roman==2.0.0 scandir==1.5 scapy===unknown.version SecretStorage==2.3.1 service-identity==16.0.0 Shapely==1.6.1 simplegeneric==0.8.1 simplejson==3.11.1 singledispatch==3.4.0.3 six==1.10.0 slowaes==0.1a1 smmap2==2.0.3 socketpool==0.5.3 SQLAlchemy==1.1.11 subprocess32==3.2.7 tcpwatch==1.3.1 termcolor==1.1.0 tornado==4.5.1 traitlets==4.3.2 Twisted==17.5.0 typing==3.6.1 unicodecsv==0.14.1 urllib3==1.21.1 urwid==1.3.1 uTidylib==0.3 vinetto==0.7b0 volatility==2.6 wafw00f==0.9.3 wapiti==2.3.0 watchdog==0.8.3 wcwidth==0.1.7 webencodings==0.5 webunit==1.3.10 Werkzeug==0.12.2.dev0 wfuzz==0.0.0 Whoosh==2.7.4 wxPython==3.0.2.0 wxPython-common==3.0.2.0 XlsxWriter==0.9.6 xmlbuilder==1.0 yara-python==3.6.1 zenmap==7.60 zim==0.67 zope.interface==4.3.2

4、output of python --version

root@kali2017-1:~# python --version Python 2.7.13

nd3w commented 7 years ago

I have the same problem:

`Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-g14Vzi/pybloomfiltermmap/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-oBB_xh-record/install-record.txt --single-version-externally-managed --compile:
info: Building from C
running install
running build
running build_ext
building 'pybloomfilter' extension
creating build
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/mmapbitarray.c -o build/temp.linux-x86_64-2.7/src/mmapbitarray.o
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/bloomfilter.c -o build/temp.linux-x86_64-2.7/src/bloomfilter.o
src/bloomfilter.c:11:14: warning: always_inline function might not be inlinable [-Wattributes]
 BloomFilter *bloomfilter_Create_Malloc(size_t max_num_elem, double error_rate,
              ^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/md5.c -o build/temp.linux-x86_64-2.7/src/md5.o
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/primetester.c -o build/temp.linux-x86_64-2.7/src/primetester.o
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/MurmurHash3.cpp -o build/temp.linux-x86_64-2.7/src/MurmurHash3.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/pybloomfilter.c -o build/temp.linux-x86_64-2.7/src/pybloomfilter.o
src/pybloomfilter.c:8:22: fatal error: pyconfig.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1`

Linux distribution

Linux Mint 18.2 Sonya Linux dweb-lin-home 4.10.0-35-generic #39~16.04.1-Ubuntu SMP Wed Sep 13 09:02:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Content of /tmp/w3af_dependency_install.sh

!/bin/bash

sudo pip install pyClamd==0.3.15 PyGithub==1.21.0 GitPython==2.1.3 pybloomfiltermmap==0.3.14 esmre==0.3.1 phply==0.9.1 nltk==3.0.1 chardet==2.1.1 tblib==0.2.0 pdfminer==20140328 futures==2.1.5 ndg-httpsclient==0.3.3 lxml==3.4.4 scapy-real==2.2.0-dev guess-language==0.2 cluster==1.1.1b3 msgpack-python==0.4.4 python-ntlm==1.0.1 halberd==0.2.4 darts.util.lru==0.5 Jinja2==2.7.3 vulndb==0.0.19 markdown==2.6.1 psutil==2.2.1 termcolor==1.1.0 mitmproxy==0.13 ruamel.ordereddict==0.4.8 Flask==0.10.1 PyYAML==3.12 tldextract==1.7.2 xdot==0.6

Output of pip freeze's

attrs==15.2.0 BeautifulSoup==3.2.1 blinker==1.3 chardet==2.3.0 configglue==1.1.2 configobj==5.0.6 cryptography==1.2.3 debtags==2.0 defer==1.0.6 dirspec==13.10 duplicity==0.7.6 ecdsa==0.13 enum34==1.1.2 f.lux-indicator-applet==1.1.11rc0 feedparser==5.1.3 gitdb2==2.0.3 GitPython==2.1.3 httplib2==0.9.1 idna==2.0 ipaddress==1.0.16 lockfile==0.12.2 lxml==3.5.0 Mako==1.0.3 MarkupSafe==0.23 meld==3.14.2 nemo-emblems==3.4.1 netifaces==0.10.4 oauthlib==1.0.3 oneconf==0.3.9 PAM==0.4.2 paramiko==1.16.0 pexpect==4.0.1 Pillow==3.1.2 piston-mini-client==0.7.5 protobuf==2.6.1 ptyprocess==0.5 pyasn1==0.1.9 pyasn1-modules==0.0.7 pyClamd==0.3.15 pycrypto==2.6.1 pycups==1.9.73 pycurl==7.43.0 PyGithub==1.21.0 pygobject==3.20.0 pygpgme==0.3 pyinotify==0.9.6 PyJWT==1.3.0 pyOpenSSL==0.15.1 pyparted==3.10.7 pyserial==3.0.1 pysmbc==1.0.15.5 python-apt==1.1.0b1 python-debian==0.1.27 python-xlib==0.14 pyxdg==0.25 reportlab==3.3.0 service-identity==16.0.0 setproctitle==1.1.8 six==1.10.0 smmap2==2.0.3 Twisted==16.0.0 uTidylib==0.2 vboxapi==1.0 zope.interface==4.1.3

Python version

Python 2.7.12

miqueet commented 7 years ago

I have tried on a few different OSs and none can build pybloomfiltermmap==0.3.14 . I was able to build with 0.3.15. If possible maybe upgrade the dependency.

looks like according to this PR it requires gcc-c++

https://github.com/andresriancho/w3af/pull/14592/files