You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running OWTF with a DB not properly configured, a ValueError is thrown.
root@kali32:~/owtf# python2 owtf.py
_____ _ _ _ _____ _____
| | | | |_ _| __|
| | | | | | | | | __|
|_____|_____| |_| |__|
@owtfp
http://owtf.org
Traceback (most recent call last):
File "owtf.py", line 300, in <module>
main(sys.argv)
File "owtf.py", line 263, in main
ComponentInitialiser.initialisation_phase_1(root_dir, owtf_pid)
File "/root/owtf/framework/dependency_management/component_initialiser.py", line 55, in initialisation_phase_1
DB()
File "/root/owtf/framework/db/db.py", line 68, in __init__self.create_session()
File "/root/owtf/framework/db/db.py", line 97, in create_sessionself.Session =self.CreateScopedSession()
File "/root/owtf/framework/db/db.py", line 146, in CreateScopedSessionself.engine =self.CreateEngine(models.Base)
File "/root/owtf/framework/db/db.py", line 133, in CreateEngine
poolclass=NullPool) #TODO: Fix for forking
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/__init__.py", line 346, in create_enginereturn strategy.create(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 49, in create
u = url.make_url(name_or_url)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/url.py", line 164, in make_urlreturn _parse_rfc1738_args(name_or_url)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/url.py", line 210, in _parse_rfc1738_argsreturn URL(name, **components)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/url.py", line 60, in __init__self.port =int(port)
ValueError: invalid literal for int() with base 10: ''
OWTF should instead indicate that the DB is not configured.
The text was updated successfully, but these errors were encountered:
Would output the following when misconfigured DATABASE_PORT in db.cfg:
ERROR:root:Aborted by Framework: Database configuration file is potentially corrupted. Please check ~/.owtf/db.cfg
[DB] invalid literal for int() with base 10: '5432b'
When running OWTF with a DB not properly configured, a
ValueError
is thrown.OWTF should instead indicate that the DB is not configured.
The text was updated successfully, but these errors were encountered: