Patrowl / PatrowlDocs

PatrOwl - Open Source, Free and Scalable Security Operations Orchestration Platform
https://www.patrowl.io
GNU Affero General Public License v3.0
147 stars 51 forks source link

Problems adding nmap engine #16

Open emilva opened 5 years ago

emilva commented 5 years ago

Hi, cool project you have made, it looks really useful!

I am trying to follow the docs on how to add a new scan-engine, but it always fails. Any pointers on what might be wrong?

Details:

This is one of the many configurations I have tried: Screenshot 2019-05-10 15 54 24

The result is always Error: Screenshot 2019-05-10 15 54 33

When I visit http://localhost:5101/engines/nmap/ I get a simple json object {page: "index"}. So the URL in the config must be correct?

MaKyOtOx commented 5 years ago

Hi ! How do you start the PatrowlManager ? if you've started with the docker-compose, the python application won't be able to reach the 'localhost'. You'd rather have to set the host address (host.docker.internal, ip address of docker0 iface, ...)

guiguiabloc commented 5 years ago

Hi,

Same problem for me. launch PatrowlManager with start-server :

./start-server.sh postgres db started. Nothing to do supervisord started. Nothing to do No changes detected Operations to perform: Apply all migrations: admin, assets, auth, authtoken, contenttypes, django_celery_beat, django_celery_results, engines, events, findings, rules, scans, sessions, settings, users Running migrations: No migrations to apply.

0 static files copied to '/data/PatrowlManager/staticfiles', 209 unmodified. [2019-06-12 09:14:54 +0000] [125644] [INFO] Starting gunicorn 19.9.0 [2019-06-12 09:14:54 +0000] [125644] [INFO] Listening at: http://0.0.0.0:8000 (125644) [2019-06-12 09:14:54 +0000] [125644] [INFO] Using worker: sync [2019-06-12 09:14:54 +0000] [125649] [INFO] Booting worker with pid: 125649

Launch engine-nmap :+1:

env/bin/python engine-nmap.py

But in console, stay in error :/

nmapengine

guiguiabloc commented 5 years ago

ok find the error. the correct url for engine is : http://127.0.0.1:5001/engines/nmap/

But in remote not working :/

nmapengine

The "info" work

info

MinhNamNguyen commented 5 years ago

Hi, i have the same problem, I can launch Patrowl and nmap, the servers are running, can display the results, but when i create an engine, it's in error state. I tried both ip 0.0.0.0 and 127.0.0.1, also i can't display the engine info.

Fireless2013 commented 5 years ago

Hello,

It is the same for me, have you a solution for this problem ?

Thank you.

LukeDInfosec commented 4 years ago

Same problem

mharisss commented 4 years ago

Same problem for me too. I've tried both ip 0.0.0.0 and 127.0.0.1 as well :-/

roelstorms commented 4 years ago

I notice that you run your scanners in docker using:

usr/bin/python3 /usr/bin/gunicorn engine-nmap:app -b 0.0.0.0:5001 --access-logfile -

which makes it hard to debug the issue. Maybe gunicorn is writing an error log. Maybe it's better to write to a file? Also for the error log.

gunicorn docs