New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OWTF develop branch install error in Kali Linux 2.0 #516
Comments
Same, when I tried to install OWTF 1.0.1 Lionheart: Downloading/unpacking pycparser from https://pypi.python.org/packages/source/p/pycparser/pycparser-2.14.tar.gz#md5=a2bc8d28c923b4fe2b2c3b4b51a4f935 (f
rom cffi>=1.1.0->cryptography>=0.2.1->pyOpenSSL==0.14->-r /root/tools/owtf/install/owtf.pip (line 16))
Downloading pycparser-2.14.tar.gz (223kB): 223kB downloaded
Running setup.py (path:/tmp/pip-build-FYnPy6/pycparser/setup.py) egg_info for package pycparser
warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
warning: no previously-included files matching 'lextab.*' found under directory 'tests'
warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
warning: no previously-included files matching 'lextab.*' found under directory 'examples'
Installing collected packages: cryptography, EasyProcess, isodate, SPARQLWrapper, html5lib, backports.ssl-match-hostname, pyasn1, setuptools, enum34,
cffi, pycparser
Found existing installation: cryptography 0.9.3
Not uninstalling cryptography at /usr/lib/python2.7/dist-packages, owned by OS
Running setup.py install for cryptography
Installed /tmp/pip-build-FYnPy6/cryptography/cffi-1.2.1-py2.7-linux-x86_64.egg
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-FYnPy6/cryptography/setup.py", line 307, in <module>
**keywords_with_side_effects(sys.argv)
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 266, in __init__
_Distribution.__init__(self,attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 301, in finalize_options
ep.load()(self, ep.name, value)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
['__name__'])
ImportError: No module named setuptools_ext
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-FYnPy6/cryptography/setup.py';exec(compile(g
etattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-VwF3qT-record/install-record.txt
--single-version-externally-managed --compile:
Installed /tmp/pip-build-FYnPy6/cryptography/cffi-1.2.1-py2.7-linux-x86_64.egg
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-FYnPy6/cryptography/setup.py", line 307, in <module>
**keywords_with_side_effects(sys.argv)
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 266, in __init__
_Distribution.__init__(self,attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 301, in finalize_options
ep.load()(self, ep.name, value)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
['__name__'])
ImportError: No module named setuptools_ext
----------------------------------------
----------------------------------------
Can't roll back cryptography; was not uninstalled
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-FYnPy6/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-VwF3qT-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-FYnPy6/cryptography
Storing debug log for failure in /root/.pip/pip.log
[*] Finished
#? |
When trying to start: # ./owtf.py
The following python libraries seem missing :
beautifulsoup4,lxml,Markdown,psycopg2,pycurl,six
Haven't you run the install script?
python2 install/install.py
If you are sure you ran the install script, install the missing libraries seperately
pip install --upgrade -r install/owtf.pip |
Hi @dkorzhevin, we are aware of installation issues in some Kali 2.0 images. The Kali people probably changed the permissions on BTW which image did you used? I personally used the Kali 2.0 Virtualbox image x86_64 and faced no problems. |
Hi delta24 This is Kali Linux x86_64 installed on my notebook, not a virtualbox or vmware image. If you need any info regarding installed packages, etc - please let me know - I will add more info. |
More info about system: uname -a cat /etc/issue List of installed packages: |
I got this error and found out that it's because the command in install.py |
@dkorzhevin: Could you please try what Ankush is suggesting and let us know
|
# grep -i -R "pip2 install" owtf/
owtf/install/install.py: self.run_command("sudo -E pip2 install --upgrade -r %s"%(requirements_file)) I changed line: sudo -E pip2 install --upgrade -r %s"%(requirements_file)) to: sudo -E pip2 install --upgrade --force -r %s"%(requirements_file)) but this doesn't help me: ----------------------------------------
Can't roll back cryptography; was not uninstalled
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-istbYR/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ZxOfrq-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-istbYR/cryptography
Traceback (most recent call last):
File "/usr/bin/pip2", line 9, in <module>
load_entry_point('pip==1.5.6', 'console_scripts', 'pip2')()
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 248, in main
return command.main(cmd_args)
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 62: ordinal not in range(128)
[*] Finished Maby I should reinstall from scratch? |
I did: # sudo pip2 install --upgrade --force pip
Downloading/unpacking pip
Downloading pip-7.1.2-py2.py3-none-any.whl (1.1MB): 1.1MB downloaded
Installing collected packages: pip
Found existing installation: pip 1.5.6
Not uninstalling pip at /usr/lib/python2.7/dist-packages, owned by OS
Successfully installed pip
Cleaning up... Full output of install after this command: |
root@kali:~/tools/owtf# ./owtf.py http://demo.testfire.net
Traceback (most recent call last):
File "./owtf.py", line 41, in <module>
verify_dependencies(os.path.dirname(os.path.abspath(sys.argv[0])) or '.')
File "/root/tools/owtf/framework/dependency_check.py", line 57, in verify_dependencies
owtf_libraries = [req.req.project_name for req in owtf_reqs]
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_file.py", line 72, in parse_requirements
"parse_requirements() missing 1 required keyword argument: "
TypeError: parse_requirements() missing 1 required keyword argument: 'session'
root@kali:~/tools/owtf# |
Guys, can you please tell - are you have any update about this problem? |
Hey @dkorzhevin Are you trying develop branch? |
@dkorzhevin have you tried |
Now I'm trying to install version 1.0.1 Upgraded pip:
|
After upgrading pip I ended with:
|
After this steps OWTF still doesn't works:
|
@dkorzhevin have you done |
@dkorzhevin Until the complete install script is ready with the virtualenv stuff, you can follow these steps to install OWTF successfully.
You will see something like this: But whenever you want to run OWTF, just This should do as a temporary solution. :) |
Thank you I will try and let you know how it works |
To fix issue use: easy_install --upgrade cryptography And after that install other missing python libraries, with the same command (easy_install --upgrade) |
Hey @dkorzhevin, recent commits resolve all the installation errors (at least on lastest updated Kali 2.x) Can you try the installing again by I'll reopen the issue if the installation still fails from your side. :) |
Thank you, delta24 - I will try |
Hi I can confirm, it works for me now:
|
@darelswag @h121h so I investigated and I found:
So the fix is: Some more info: http://matthew-brett.github.io/pydagogue/installing_on_debian.html, https://pip.readthedocs.io/en/latest/user_guide/#user-installs Let me know if it helps. :-) |
@delta24, thanks for investigating this. I followed your suggestions, but I am still getting the same output as before (posted below.) It looks to me adding --user still doesn't use Output:
And this is very irrelevant but just FYI, in the last line of the output above, seperately should be spelled separately. |
same issue here as well. the --user doesn't fix it. |
tried with the --user , did not fix it ... |
@FreedomShepherd @darelswag @h121h Until the complete install script is ready with the virtualenv stuff (so that I can fix this on Kali Linux), you can follow these steps to install and run OWTF successfully.
You will see something like this: But whenever you want to run OWTF, just This should do as a temporary solution. :) |
approved the comment above, it works. :) |
Here is a full log - https://pastee.org/vm2db. |
added the photo for you to check |
@darelswag can you check again please? |
@delta24 If the virtualenv in active, even after running install script it didn't install python packages. I had to explicitly run |
./owtf.pyTraceback (most recent call last): |
Thanks @delta24 run so is ok |
@hktalent You do not need to do this manually. The installation script takes care of it. You just have to run |
(owtf) root@kali:/usr/local/share/owtf# git pull (owtf) root@kali:/usr/local/share/owtf# ./owtf.py Examples: Run all web plugins: owtf.py http://my.website.com Run all plugins except 'OWASP-CM-001: Testing_for_SSL-TLS': owtf.py -e 'OWASP-CM-001' http://my.website.com Run only 'OWASP-CM-001: Testing_for_SSL-TLS': owtf.py -o 'OWASP-CM-001' http://my.website.com Run only OWASP-IG-005 and OWASP-WU-VULN: owtf.py -o 'OWASP-IG-005,OWASP-WU-VULN' http://my.website.com Run using TOR network: owtf.py -o OWTF-WVS-001 http://my.website.com --tor 127.0.0.1:9050:9051:password:1 Run Botnet-mode using miner: owtf.py -o OWTF-WVS-001 http://my.website.com -b miner Run Botnet-mode using custom proxy list: owtf.py -o OWTF-WVS-001 http://my.website.com -b list:proxy_list_path.txt ERROR: Start owtf in a different directory. 'cd path/to/pentest/directory; ./path/to/owtf.py' |
@delta24 |
@hktalent which version are you using? OWTF stable is at 2.0a not 1.0.1 |
same problem |
i have fixed this issue |
Hi oot@kali: Haven't you run the install script? If you are sure you ran the install script, install the missing libraries seperately (owtf) root@kali:~/Desktop/pentest# |
which version of OWTF are you using? |
Hi,
I'm using Kali Linux 2.0 x86_64
I tried to install OWTF develop branch using official install script:
and meet next errors:
The text was updated successfully, but these errors were encountered: