owtf: Failed to launch on Kali Linux

After cloning the repo, starting the server manually, and python setup.py develop, owtf command is reporting error.

Expected Behavior

Running properly

Current Behavior

Not running and error is reported

Possible Solution

run python setup.py develop again and see two lines of error:

Collecting black==18.4a3
  Could not find a version that satisfies the requirement black==18.4a3 (from versions: )
No matching distribution found for black==18.4a3
error /root/owtf/owtf/webapp/node_modules/pngquant-bin: Command failed.
Exit code: 1

Not sure if this is the problem. Also, could be a database related problem since the error reported is a SQL instruction.

[SQL: 'SELECT DISTINCT plugins."group" AS plugins_group \nFROM plugins']

Steps to Reproduce (for bugs)

  1. Clone the repo
  2. Start pgsql with sudo systemctl enable postgresql
  3. Create user with sudo su postgres -c "psql -c \"CREATE USER $db_user WITH PASSWORD '$db_pass'\"", user name is export db_user="owtf_db_user", pass is export db_pass="jgZKW33Q+HZk8rqylZxaPg1lbuNGHJhgzsq3gBKV32g="
  4. Create database with sudo su postgres -c "psql -c \"CREATE DATABASE $db_name WITH OWNER $db_user ENCODING 'utf-8' TEMPLATE template0;\"", database name is export db_name="owtf_db"
  5. owtf, which reports error

Logs

owtf_review:

[DEBUG] [2019-03-11 12:37:57,457] [File 'worker.py', line 100, in spawn_worker] - Adding a new worker
[DEBUG] [2019-03-11 12:37:57,466] [File 'worker.py', line 100, in spawn_worker] - Adding a new worker

The error reported is here

Context

It would be great if it can launch:)

Your Environment

  • Linux kali 4.19.0-kali3-amd64 #1 SMP Debian 4.19.20-1kali1 (2019-02-14) x86_64 GNU/Linux
  • Up-to-date branch
  • pip 18.1 from /usr/lib/python2.7/dist-packages/pip (python 2.7)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 16 (11 by maintainers)

Most upvoted comments

This should be fixed in https://github.com/owtf/owtf/commit/79d955694859036e194f90b6e0f594a84ae0114e. git pull origin develop && python setup.py develop should fix existing installations. There was a regression in a previous commit which introduced some refactoring in the database session handling.

I don’t think you need Kali to test it out. I’m trying to make OWTF to be available on all platforms through Docker.

On Wed, Mar 27, 2019 at 03:15 Sachin S. Kamath notifications@github.com wrote:

@viyatb https://github.com/viyatb I don’t have access to Kali right now. Let me try a VM.

But I don’t see why the operating system is a dependency here. It looks like the table schema is not being populated somehow.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/owtf/owtf/issues/1014#issuecomment-477078920, or mute the thread https://github.com/notifications/unsubscribe-auth/AEWMSazYFj2UOMstR0WXm0vl_dvkdag0ks5va0TPgaJpZM4bpELE .