andresriancho / w3af

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

installation issue - There was an error while importing w3af.plugins.attack.sqlmap: "'module' object has no attribute 'TLSv1_2_METHOD'" #13244

Closed chriskucharski closed 8 years ago

chriskucharski commented 8 years ago

mac-dev:w3af ckuch$ ./w3af_console Usage of w3af for sending any traffic to a target without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program.

Do you accept the terms and conditions? [N|y] y Traceback (most recent call last): File "./w3af_console", line 167, in _main() File "./w3af_console", line 163, in _main sys.exit(main()) File "./w3af_console", line 158, in main return console.sh() File "/Users/ckucharski/Documents/apps/w3af/w3af/core/ui/console/console_ui.py", line 145, in sh self._context = rootMenu(name, self, self._w3af) File "/Users/ckucharski/Documents/apps/w3af/w3af/core/ui/console/rootMenu.py", line 70, in init 'kb': kbMenu File "/Users/ckucharski/Documents/apps/w3af/w3af/core/ui/console/util.py", line 26, in mapDict fun(p, dct[p]) File "/Users/ckucharski/Documents/apps/w3af/w3af/core/ui/console/menu.py", line 110, in addChild name, self._console, self._w3af, self, *params) File "/Users/ckucharski/Documents/apps/w3af/w3af/core/ui/console/exploit.py", line 47, in init plugin = self._w3af.plugins.get_plugin_inst('attack', plugin_name) File "/Users/ckucharski/Documents/apps/w3af/w3af/core/controllers/core_helpers/plugins.py", line 247, in get_plugin_inst plugin_inst = factory('w3af.plugins.%s.%s' % (plugin_type, plugin_name)) File "/Users/ckucharski/Documents/apps/w3af/w3af/core/controllers/misc/factory.py", line 81, in factory raise BaseFrameworkException(msg % (module_name, e)) w3af.core.controllers.exceptions.BaseFrameworkException: There was an error while importing w3af.plugins.attack.sqlmap: "'module' object has no attribute 'TLSv1_2_METHOD'".

mac-dev:w3af ckuch$ pip freeze altgraph==0.10.2 backports-abc==0.4 backports.ssl-match-hostname==3.4.0.2 bdist-mpkg==0.5.0 blinker==1.4 bonjour-py==0.3 certifi==2015.11.20.1 cffi==1.4.1 chardet==2.1.1 cluster==1.1.1b3 ConfigArgParse==0.10.0 cryptography==1.1.2 darts.util.lru==0.5 enum34==1.1.1 esmre==0.3.1 Flask==0.10.1 futures==2.1.5 gitdb==0.6.4 GitPython==0.3.2rc1 guess-language==0.2 halberd==0.2.4 hpack==2.0.1 html2text==2015.11.4 idna==2.0 ipaddress==1.0.15 itsdangerous==0.24 Jinja2==2.7.3 lxml==3.4.4 macholib==1.5.1 Markdown==2.6.1 MarkupSafe==0.23 matplotlib==1.3.1 mitmproxy==0.13 modulegraph==0.10.4 msgpack-python==0.4.4 ndg-httpsclient==0.3.3 netlib==0.13.1 nltk==3.0.1 numpy==1.8.0rc1 passlib==1.6.5 pdfminer==20140328 phply==0.9.1 Pillow==3.0.0 ply==3.8 psutil==2.2.1 py2app==0.7.3 pyasn1==0.1.8 pybloomfiltermmap==0.3.14 pyClamd==0.3.15 pycparser==2.14 PyGithub==1.21.0 pyobjc-core==2.5.1 pyobjc-framework-Accounts==2.5.1 pyobjc-framework-AddressBook==2.5.1 pyobjc-framework-AppleScriptKit==2.5.1 pyobjc-framework-AppleScriptObjC==2.5.1 pyobjc-framework-Automator==2.5.1 pyobjc-framework-CFNetwork==2.5.1 pyobjc-framework-Cocoa==2.5.1 pyobjc-framework-Collaboration==2.5.1 pyobjc-framework-CoreData==2.5.1 pyobjc-framework-CoreLocation==2.5.1 pyobjc-framework-CoreText==2.5.1 pyobjc-framework-DictionaryServices==2.5.1 pyobjc-framework-EventKit==2.5.1 pyobjc-framework-ExceptionHandling==2.5.1 pyobjc-framework-FSEvents==2.5.1 pyobjc-framework-InputMethodKit==2.5.1 pyobjc-framework-InstallerPlugins==2.5.1 pyobjc-framework-InstantMessage==2.5.1 pyobjc-framework-LatentSemanticMapping==2.5.1 pyobjc-framework-LaunchServices==2.5.1 pyobjc-framework-Message==2.5.1 pyobjc-framework-OpenDirectory==2.5.1 pyobjc-framework-PreferencePanes==2.5.1 pyobjc-framework-PubSub==2.5.1 pyobjc-framework-QTKit==2.5.1 pyobjc-framework-Quartz==2.5.1 pyobjc-framework-ScreenSaver==2.5.1 pyobjc-framework-ScriptingBridge==2.5.1 pyobjc-framework-SearchKit==2.5.1 pyobjc-framework-ServiceManagement==2.5.1 pyobjc-framework-Social==2.5.1 pyobjc-framework-SyncServices==2.5.1 pyobjc-framework-SystemConfiguration==2.5.1 pyobjc-framework-WebKit==2.5.1 pyOpenSSL==0.15.1 pyparsing==2.0.1 pyperclip==1.5.25 python-dateutil==1.5 python-ntlm==1.0.1 pytz==2013.7 PyYAML==3.11 ruamel.ordereddict==0.4.8 scapy-real==2.2.0.dev0 scipy==0.13.0b1 selenium==2.47.1 singledispatch==3.4.0.3 six==1.10.0 smmap==0.9.0 tblib==0.2.0 tornado==4.3 Twisted==13.2.0 urwid==1.3.1 vulndb==0.0.19 Werkzeug==0.11.2 xattr==0.6.4 zope.interface==4.1.1

mac-dev:w3af ckuch$ python --version Python 2.7.10

chriskucharski commented 8 years ago

contents of dependency install script

!/bin/bash

sudo pip install pyClamd==0.3.15 PyGithub==1.21.0 GitPython==0.3.2.RC1 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 p yOpenSSL==0.15.1 ndg-httpsclient==0.3.3 pyasn1==0.1.8 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 PyYAML==3.11

chriskucharski commented 8 years ago

appears I didn't do the installs within port. I ended up using this link to get the install working, made sure versions were updated accordingly, and everything works fine,

https://www.nightlionsecurity.com/blog/guides/2014/04/guide-install-w3af-web-app-scanner-mac-osx-10-9-macports/