Issues on Ubuntu #334

Closed
7a opened this Issue Oct 7, 2014 · 5 comments

Comments

Projects
None yet
5 participants
@7a
Member

7a commented Oct 7, 2014

Posting this on behalf of a kind user bug report, we do not officially support Ubuntu yet but perhaps there is something that can be improved for a better experience?:

It bombs when I try to install it on Ubuntu:

(1) Kali Linux
(2) Samurai-WTF
(0) My distro is not listed :(
Select a number based on your distribution : 0
Skipping distro related installation :(
[] Installing pip
[
] Switching to /tmp/owtf-install/pip/12851
[] Running following command
command -v pip2 >/dev/null || { wget https://bootstrap.pypa.io/get-pip.py; sudo python get-pip.py;}
[
] Installing Httprint
[!] Directory /tmp/owtf/tools/restricted/httprint already exists, so skipping installation for this
[] Installing Websecurify
[!] Directory /tmp/owtf/tools/restricted/websecurify already exists, so skipping installation for this
[
] Installing BIG-IP Decoder
[!] Directory /tmp/owtf/tools/restricted/decoding/cookies already exists, so skipping installation for this
[] Installing Hoppy
[!] Directory /tmp/owtf/tools/restricted/hoppy-1.8.1 already exists, so skipping installation for this
[
] Installing SSL cipher Check
[!] Directory /tmp/owtf/tools/restricted/ssl/ssl-cipher-check already exists, so skipping installation for this
[] Installing lbd
[!] Directory /tmp/owtf/tools/restricted/lbd already exists, so skipping installation for this
[
] Installing panoptic
[!] Directory /tmp/owtf/tools/restricted/Panoptic already exists, so skipping installation for this
[] Installing DNSpider
[!] Directory /tmp/owtf/tools/restricted/dnspider already exists, so skipping installation for this
[
] Installing Local CA for Inbound Proxy
[] Switching to /tmp/owtf-install/ca/12851
[
] Running following command
sh /tmp/owtf/install/proxy_CA.sh /tmp/owtf
[] Installing Database Config
[
] Switching to /tmp/owtf-install/db-config/12851
[] Running following command
sh /tmp/owtf/install/db_config_setup.sh /tmp/owtf
[
] Installing Zest Jars
[] Switching to /tmp/owtf-install/zest/12851
[
] Running following command
sh /tmp/owtf/install/zest_jars.sh /tmp/owtf
[] Installing CMS Explorer
[!] Directory /tmp/owtf/tools/restricted/cms-explorer already exists, so skipping installation for this
[
] Installing SVN Digger Dictionaries
[!] Directory /tmp/owtf/dictionaries/restricted/svndigger already exists, so skipping installation for this
[] Installing Raft Dictionaries
[!] Directory /tmp/owtf/dictionaries/restricted/raft already exists, so skipping installation for this
[
] Installing Combined Dictionaries
[!] Directory /tmp/owtf/dictionaries/restricted/combined already exists, so skipping installation for this
[] Installing Vulnerability Database
[!] Directory /home/ballison/.owtf/db/ already exists, so skipping installation for this
[
] Running following command
sudo -E pip install --upgrade -r /tmp/owtf/install/owtf.pip
Downloading/unpacking beautifulsoup4==4.3.2 (from -r /tmp/owtf/install/owtf.pip (line 7))
Downloading beautifulsoup4-4.3.2.tar.gz (143kB): 143kB downloaded
Running setup.py (path:/tmp/pip_build_root/beautifulsoup4/setup.py) egg_info for package beautifulsoup4

Downloading/unpacking lxml==3.4.0 (from -r /tmp/owtf/install/owtf.pip (line 8))
Downloading lxml-3.4.0.tar.gz (3.5MB): 3.5MB downloaded
Running setup.py (path:/tmp/pip_build_root/lxml/setup.py) egg_info for package lxml
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
Building lxml version 3.4.0.
Building without Cython.
ERROR: /bin/sh: 1: xslt-config: not found

** make sure the development packages of libxml2 and libxslt are installed **

Using build configuration of libxslt

warning: no previously-included files found matching '*.py'

Downloading/unpacking Markdown==2.5.1 (from -r /tmp/owtf/install/owtf.pip (line 9))
Downloading Markdown-2.5.1.tar.gz (288kB): 288kB downloaded
Running setup.py (path:/tmp/pip_build_root/Markdown/setup.py) egg_info for package Markdown

Downloading/unpacking pexpect==3.3 (from -r /tmp/owtf/install/owtf.pip (line 10))
Downloading pexpect-3.3.tar.gz (132kB): 132kB downloaded
Running setup.py (path:/tmp/pip_build_root/pexpect/setup.py) egg_info for package pexpect

Downloading/unpacking psycopg2==2.5.4 (from -r /tmp/owtf/install/owtf.pip (line 11))
Downloading psycopg2-2.5.4.tar.gz (682kB): 682kB downloaded
Running setup.py (path:/tmp/pip_build_root/psycopg2/setup.py) egg_info for package psycopg2

Error: pg_config executable not found.

Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:

    python setup.py build_ext --pg-config /path/to/pg_config build ...

or with the pg_config option in 'setup.cfg'.
Complete output from command python setup.py egg_info:
running egg_info

creating pip-egg-info/psycopg2.egg-info

writing pip-egg-info/psycopg2.egg-info/PKG-INFO

writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt

writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt

writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'

warning: manifest_maker: standard file '-c' not found

Error: pg_config executable not found.

Please add the directory containing pg_config to the PATH

or specify the full executable path with the option:

python setup.py build_ext --pg-config /path/to/pg_config build ...

or with the pg_config option in 'setup.cfg'.


Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/psycopg2
Storing debug log for failure in /home/ballison/.pip/pip.log
[*] Finished

@7a 7a added the Enhancement label Oct 7, 2014

@anantshri

This comment has been minimized.

Show comment
Hide comment
@anantshri

anantshri Oct 7, 2014

Member

I suppose the error is due to the absense of pgsql on the system.

Member

anantshri commented Oct 7, 2014

I suppose the error is due to the absense of pgsql on the system.

@tunnelshade

This comment has been minimized.

Show comment
Hide comment
@tunnelshade

tunnelshade Oct 7, 2014

Member

The errors can somehow be expected:

  • First error is lack of libxslt and libxml2
  • Second is certainly due to lack of pgsql
Member

tunnelshade commented Oct 7, 2014

The errors can somehow be expected:

  • First error is lack of libxslt and libxml2
  • Second is certainly due to lack of pgsql
@jackal242

This comment has been minimized.

Show comment
Hide comment
@jackal242

jackal242 Oct 7, 2014

I got it to install. Here's what all I had to install (this is Ubuntu 12.04.3 LTS):

sudo apt-get update
sudo apt-get install libxml2-dev libxslt1-dev python-dev
sudo apt-get install libpq-dev
sudo apt-get install libffi-dev
sudo apt-get install postgresql libpq-dev

Which in turn installed the following:
upgrade libxml2
install libxml2-dev
upgrade libssl1.0.0
upgrade libpython2.7
upgrade python2.7
upgrade python2.7-minimal
install libexpat1-dev
install zlib1g-dev
install libssl-dev
install libssl-doc
install libxslt1-dev
install python2.7-dev
install python-dev
upgrade libgssrpc4
upgrade libkadm5clnt-mit8
upgrade libkadm5srv-mit8
upgrade krb5-user
upgrade libk5crypto3
upgrade libgssapi-krb5-2
upgrade libkrb5-3
upgrade libkrb5support0
install comerr-dev
install krb5-multidev
install libpq5
install libkrb5-dev
install libpq-dev
upgrade libgcrypt11
upgrade libtasn1-3
upgrade libgnutls26
upgrade libldap-2.4-2
upgrade libcurl3
install libgnutls-openssl27
install libgnutlsxx27
install libidn11-dev
install libldap2-dev
install libgpg-error-dev
install libgcrypt11-dev
install libtasn1-3-dev
install libp11-kit-dev
install libgnutls-dev
install librtmp-dev
install libcurl4-openssl-dev
install libffi-dev
install postgresql-client-common
install postgresql-client-9.1
install postgresql-common
install postgresql-9.1
install postgresql

I got it to install. Here's what all I had to install (this is Ubuntu 12.04.3 LTS):

sudo apt-get update
sudo apt-get install libxml2-dev libxslt1-dev python-dev
sudo apt-get install libpq-dev
sudo apt-get install libffi-dev
sudo apt-get install postgresql libpq-dev

Which in turn installed the following:
upgrade libxml2
install libxml2-dev
upgrade libssl1.0.0
upgrade libpython2.7
upgrade python2.7
upgrade python2.7-minimal
install libexpat1-dev
install zlib1g-dev
install libssl-dev
install libssl-doc
install libxslt1-dev
install python2.7-dev
install python-dev
upgrade libgssrpc4
upgrade libkadm5clnt-mit8
upgrade libkadm5srv-mit8
upgrade krb5-user
upgrade libk5crypto3
upgrade libgssapi-krb5-2
upgrade libkrb5-3
upgrade libkrb5support0
install comerr-dev
install krb5-multidev
install libpq5
install libkrb5-dev
install libpq-dev
upgrade libgcrypt11
upgrade libtasn1-3
upgrade libgnutls26
upgrade libldap-2.4-2
upgrade libcurl3
install libgnutls-openssl27
install libgnutlsxx27
install libidn11-dev
install libldap2-dev
install libgpg-error-dev
install libgcrypt11-dev
install libtasn1-3-dev
install libp11-kit-dev
install libgnutls-dev
install librtmp-dev
install libcurl4-openssl-dev
install libffi-dev
install postgresql-client-common
install postgresql-client-9.1
install postgresql-common
install postgresql-9.1
install postgresql

@jackal242

This comment has been minimized.

Show comment
Hide comment
@jackal242

jackal242 Oct 7, 2014

So I have it installed but it's missing a lot of tools.... :(

./owtf.py


| | | | |_ | |
| | | | | | | | | **|
|
**|___| |_| ||

    @owtfp
http://owtf.org

[-] Loading Resources from: /tmp/owtf/profiles/resources/default.cfg ..
[-] Loading Configuration from: /tmp/owtf/profiles/general/default.cfg ..
[-] Loading Mapping from: /tmp/owtf/profiles/mappings/default.cfg
[!] WARNING: Tool path not found for: /usr/share/set
[!] WARNING: Tool path not found for: /usr/bin/theharvester
[!] WARNING: Tool path not found for: /usr/share/theharvester
[!] WARNING: Tool path not found for: /usr/share/metagoofil
[!] WARNING: Tool path not found for: /usr/bin/wafw00f
[!] WARNING: Tool path not found for: /usr/bin/whatweb
[!] WARNING: Tool path not found for: /usr/bin/dnsrecon
[!] WARNING: Tool path not found for: /usr/bin/ua-tester
[!] WARNING: Tool path not found for: /usr/bin/skipfish
[!] WARNING: Tool path not found for: /usr/share/skipfish/
[!] WARNING: Tool path not found for: /usr/share/arachni/bin
[!] WARNING: Tool path not found for: /usr/bin/nikto
[!] WARNING: Tool path not found for: /usr/share/nikto
[!] WARNING: Tool path not found for: /usr/share/w3af/w3af_console
[!] WARNING: Tool path not found for: /usr/bin/wapiti
[!] WARNING: Tool path not found for: /usr/share/dirbuster/DirBuster-1.0-RC1.jar
[!] WARNING: Tool path not found for: /opt/metasploit/apps/pro/msf3
[!] WARNING: Tool path not found for: /usr/bin/wpscan
[!] WARNING: Tool path not found for: /usr/bin/hydra
[!] WARNING: Tool path not found for: /usr/bin/tlssled
[!] WARNING: Tool path not found for: /usr/bin/proxychains
[-] WARNING!!!: 21 tools could not be found. Some suggestions:
[-] - You can define your tool paths from the interface as well
Continue anyway? [Y/n]

So I have it installed but it's missing a lot of tools.... :(

./owtf.py


| | | | |_ | |
| | | | | | | | | **|
|
**|___| |_| ||

    @owtfp
http://owtf.org

[-] Loading Resources from: /tmp/owtf/profiles/resources/default.cfg ..
[-] Loading Configuration from: /tmp/owtf/profiles/general/default.cfg ..
[-] Loading Mapping from: /tmp/owtf/profiles/mappings/default.cfg
[!] WARNING: Tool path not found for: /usr/share/set
[!] WARNING: Tool path not found for: /usr/bin/theharvester
[!] WARNING: Tool path not found for: /usr/share/theharvester
[!] WARNING: Tool path not found for: /usr/share/metagoofil
[!] WARNING: Tool path not found for: /usr/bin/wafw00f
[!] WARNING: Tool path not found for: /usr/bin/whatweb
[!] WARNING: Tool path not found for: /usr/bin/dnsrecon
[!] WARNING: Tool path not found for: /usr/bin/ua-tester
[!] WARNING: Tool path not found for: /usr/bin/skipfish
[!] WARNING: Tool path not found for: /usr/share/skipfish/
[!] WARNING: Tool path not found for: /usr/share/arachni/bin
[!] WARNING: Tool path not found for: /usr/bin/nikto
[!] WARNING: Tool path not found for: /usr/share/nikto
[!] WARNING: Tool path not found for: /usr/share/w3af/w3af_console
[!] WARNING: Tool path not found for: /usr/bin/wapiti
[!] WARNING: Tool path not found for: /usr/share/dirbuster/DirBuster-1.0-RC1.jar
[!] WARNING: Tool path not found for: /opt/metasploit/apps/pro/msf3
[!] WARNING: Tool path not found for: /usr/bin/wpscan
[!] WARNING: Tool path not found for: /usr/bin/hydra
[!] WARNING: Tool path not found for: /usr/bin/tlssled
[!] WARNING: Tool path not found for: /usr/bin/proxychains
[-] WARNING!!!: 21 tools could not be found. Some suggestions:
[-] - You can define your tool paths from the interface as well
Continue anyway? [Y/n]

@tunnelshade

This comment has been minimized.

Show comment
Hide comment
@tunnelshade

tunnelshade Oct 7, 2014

Member

If tools are missing, owtf can still run. But these tools can be installed on Ubuntu. but it is preferred to use a pen testing distro like Kali

Member

tunnelshade commented Oct 7, 2014

If tools are missing, owtf can still run. But these tools can be installed on Ubuntu. but it is preferred to use a pen testing distro like Kali

@DePierre DePierre closed this Jan 26, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment