infobyte / faraday

Open Source Vulnerability Management Platform
https://www.faradaysec.com
GNU General Public License v3.0
4.87k stars 893 forks source link

Fully reset faraday #367

Closed peprolinbot closed 4 years ago

peprolinbot commented 5 years ago

I made some misstakes when running faraday for the first time in parrotsecOS , so i tried to solve and made the problem bigger,repeating this a lot of times, getting a fully unusable faraday.

So i want to uninstall faraday i downloaded from github, python-faraday package, and all necessary to make it work again lake when it comes with the OS.

Also i would like to know differences between the packages python-faraday and faraday.

Thanks in advance for any help

llazzaro commented 5 years ago

Hi,

You con uninstall with apt remove faraday-server. The github package is more updated than the one called python-faraday (shipped by kali or parrotsec).

Feel free to send us any other issue!

peprolinbot commented 5 years ago

But part of the problem is that i cant manage this package with the package manager.

It's posible that I had installed It vía GitHub and thats why It donts work?

llazzaro commented 5 years ago

How did you install via github, did you use the rpm ? or you just did a pip install faradaysec ?

If you used the rpm package, we check against python-faraday and we will not allow to install this version unless you uninstall the python-faraday.

If you install it with setup.py install, it will be installed in your python environment (did you use virtualenv?).

Can you provide some error logs ?

peprolinbot commented 5 years ago

I used setup.py with no venv. faraday-server.log:

2019-06-29 11:29:08,225 - faraday-server.faraday.start_server - WARNING {MainThread} [start_server.py:145 - check_alembic_version() ] You are using an unknown schema version. If you are a developer, this probably happened because you used branch with a schema migration not merged yet. If you are a normal user, consider reporting this bug back to us 2019-06-29 11:29:08,232 - faraday-server.faraday.start_server - ERROR {MainThread} [start_server.py:115 - check_postgresql() ]

Could not connect to PostgreSQL. Please check:  * if database is running

For first time installations execute:

 faraday-manage initdb

2019-07-06 21:32:11,669 - faraday-server.faraday.start_server - WARNING {MainThread} [start_server.py:145 - check_alembic_version() ] You are using an unknown schema version. If you are a developer, this probably happened because you used branch with a schema migration not merged yet. If you are a normal user, consider reporting this bug back to us 2019-07-06 21:32:11,676 - faraday-server.faraday.start_server - ERROR {MainThread} [start_server.py:115 - check_postgresql() ]

Could not connect to PostgreSQL. Please check:  * if database is running

For first time installations execute:

 faraday-manage initdb

Executing faraday-manage initdb:

/usr/local/lib/python2.7/dist-packages/Flask_SQLAlchemy-2.4.0-py2.7.egg/flask_sqlalchemy/init.py:814: UserWarning: Neither SQLALCHEMY_DATABASE_URI nor SQLALCHEMY_BINDS is set. Defaulting SQLALCHEMY_DATABASE_URI to "sqlite:///:memory:". 'Neither SQLALCHEMY_DATABASE_URI nor SQLALCHEMY_BINDS is set. ' This script will create a new postgres user and save faraday-server settings (server.ini). [sudo] password for pedro: WARNING: Role faraday_postgresql already exists, skipping creation Could not find connection string. Please configure [database] section with correct postgresql string. Ex. postgresql+psycopg2://faraday_postgresql:PASSWORD@localhost/faraday

faraday.log:

2019-06-29 11:34:49,172 - faraday.launcher - INFO [start_client.py:405 - printBanner() ] Starting Faraday IDE. 2019-06-29 11:34:49,172 - faraday.launcher - INFO [start_client.py:356 - checkConfiguration() ] Checking configuration. 2019-06-29 11:34:49,172 - faraday.launcher - INFO [start_client.py:357 - checkConfiguration() ] Setting up plugins. 2019-06-29 11:34:49,172 - faraday.launcher - INFO [start_client.py:295 - setupPlugins() ] Removing old plugins folder. 2019-06-29 11:34:49,213 - faraday.launcher - INFO [start_client.py:359 - checkConfiguration() ] Setting up ZSH integration. 2019-06-29 11:34:49,214 - faraday.launcher - INFO [start_client.py:361 - checkConfiguration() ] Setting up user configuration. 2019-06-29 11:34:49,214 - faraday.launcher - INFO [start_client.py:333 - setupXMLConfig() ] Copying default configuration from project. 2019-06-29 11:34:49,214 - faraday.launcher - INFO [start_client.py:363 - checkConfiguration() ] Setting up icons for GTK interface. 2019-06-29 11:34:49,219 - faraday.launcher - INFO [start_client.py:219 - setConf() ] Setting configuration. 2019-06-29 11:37:33,776 - faraday.launcher - INFO [start_client.py:405 - printBanner() ] Starting Faraday IDE. 2019-06-29 11:37:33,776 - faraday.launcher - INFO [start_client.py:356 - checkConfiguration() ] Checking configuration. 2019-06-29 11:37:33,777 - faraday.launcher - INFO [start_client.py:357 - checkConfiguration() ] Setting up plugins. 2019-06-29 11:37:33,777 - faraday.launcher - INFO [start_client.py:295 - setupPlugins() ] Removing old plugins folder. 2019-06-29 11:37:33,818 - faraday.launcher - INFO [start_client.py:359 - checkConfiguration() ] Setting up ZSH integration. 2019-06-29 11:37:33,819 - faraday.launcher - INFO [start_client.py:361 - checkConfiguration() ] Setting up user configuration. 2019-06-29 11:37:33,819 - faraday.launcher - INFO [start_client.py:336 - setupXMLConfig() ] Using custom user configuration. 2019-06-29 11:37:33,819 - faraday.launcher - INFO [start_client.py:363 - checkConfiguration() ] Setting up icons for GTK interface. 2019-06-29 11:37:33,825 - faraday.launcher - INFO [start_client.py:219 - setConf() ] Setting configuration. 2019-07-05 08:05:52,771 - faraday.launcher - INFO [start_client.py:405 - printBanner() ] Starting Faraday IDE. 2019-07-05 08:05:52,777 - faraday.launcher - INFO [start_client.py:356 - checkConfiguration() ] Checking configuration. 2019-07-05 08:05:52,777 - faraday.launcher - INFO [start_client.py:357 - checkConfiguration() ] Setting up plugins. 2019-07-05 08:05:52,777 - faraday.launcher - INFO [start_client.py:295 - setupPlugins() ] Removing old plugins folder. 2019-07-05 08:05:52,925 - faraday.launcher - INFO [start_client.py:359 - checkConfiguration() ] Setting up ZSH integration. 2019-07-05 08:05:52,926 - faraday.launcher - INFO [start_client.py:361 - checkConfiguration() ] Setting up user configuration. 2019-07-05 08:05:52,926 - faraday.launcher - INFO [start_client.py:336 - setupXMLConfig() ] Using custom user configuration. 2019-07-05 08:05:52,927 - faraday.launcher - INFO [start_client.py:363 - checkConfiguration() ] Setting up icons for GTK interface. 2019-07-05 08:05:52,958 - faraday.launcher - INFO [start_client.py:219 - setConf() ] Setting configuration. 2019-07-05 08:06:33,448 - faraday.launcher - INFO [start_client.py:405 - printBanner() ] Starting Faraday IDE. 2019-07-05 08:06:33,449 - faraday.launcher - INFO [start_client.py:356 - checkConfiguration() ] Checking configuration. 2019-07-05 08:06:33,449 - faraday.launcher - INFO [start_client.py:357 - checkConfiguration() ] Setting up plugins. 2019-07-05 08:06:33,449 - faraday.launcher - INFO [start_client.py:295 - setupPlugins() ] Removing old plugins folder. 2019-07-05 08:06:33,492 - faraday.launcher - INFO [start_client.py:359 - checkConfiguration() ] Setting up ZSH integration. 2019-07-05 08:06:33,492 - faraday.launcher - INFO [start_client.py:361 - checkConfiguration() ] Setting up user configuration. 2019-07-05 08:06:33,492 - faraday.launcher - INFO [start_client.py:336 - setupXMLConfig() ] Using custom user configuration. 2019-07-05 08:06:33,493 - faraday.launcher - INFO [start_client.py:363 - checkConfiguration() ] Setting up icons for GTK interface. 2019-07-05 08:06:33,499 - faraday.launcher - INFO [start_client.py:219 - setConf() ] Setting configuration. 2019-07-07 09:41:48,301 - faraday.launcher - INFO [start_client.py:405 - printBanner() ] Starting Faraday IDE. 2019-07-07 09:41:48,301 - faraday.launcher - INFO [start_client.py:356 - checkConfiguration() ] Checking configuration. 2019-07-07 09:41:48,302 - faraday.launcher - INFO [start_client.py:357 - checkConfiguration() ] Setting up plugins. 2019-07-07 09:41:48,302 - faraday.launcher - INFO [start_client.py:295 - setupPlugins() ] Removing old plugins folder. 2019-07-07 09:41:48,489 - faraday.launcher - INFO [start_client.py:359 - checkConfiguration() ] Setting up ZSH integration. 2019-07-07 09:41:48,490 - faraday.launcher - INFO [start_client.py:361 - checkConfiguration() ] Setting up user configuration. 2019-07-07 09:41:48,490 - faraday.launcher - INFO [start_client.py:336 - setupXMLConfig() ] Using custom user configuration. 2019-07-07 09:41:48,490 - faraday.launcher - INFO [start_client.py:363 - checkConfiguration() ] Setting up icons for GTK interface. 2019-07-07 09:41:48,512 - faraday.launcher - INFO [start_client.py:219 - setConf() ] Setting configuration.

psql_log.log and couchdb-importer.log are empty

And when I run faraday: Screenshot_20190707_100318

llazzaro commented 5 years ago

What is the output of the following command? it seems that you have the faraday_postgresql user created.

sudo -u postgres psql faraday -c "select name from faraday_user"

if you see the following error:

ERROR:  relation "faraday_user" does not exist

Try to execute the following commands:

faraday-manage create-tables
faraday-manage create-superuser

If you don't have the faraday-manage command, try to use the old manage.py (older version of faraday).

peprolinbot commented 5 years ago

I had to start postgresql service The command output is:

     name      
---------------
 Administrator
(1 fila)
llazzaro commented 4 years ago

Hi, When you log in to faraday you need to use the username Administrator. you can change the password using faraday-manage change-password.

In the screenshots, I can see that you are using the default username faraday as the username.

peprolinbot commented 4 years ago

I ended uninstalling Parrot due to stability issues with lots of things. So i probably messed up with something i shouldn't and that's why Faraday and other packages stopped working. In my fresh install all was working fine. So i'm closing this, because it's "solved".

llazzaro commented 4 years ago

You can always try to use our .deb/rpm packages on any Linux distro.

hwac121 commented 3 years ago

How did you install via github, did you use the rpm ? or you just did a pip install faradaysec ?

If you used the rpm package, we check against python-faraday and we will not allow to install this version unless you uninstall the python-faraday.

If you install it with setup.py install, it will be installed in your python environment (did you use virtualenv?).

Can you provide some error logs ?

RPM? Last time I checked both Kali and Parrot Security are Debian based...NO RPMs....