Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
OWTF should check if postgres is running #311
If the user doesn't have
depierre% python owtf.py __ ___ /\ \__ /'___\ ___ __ __ _\ \ ,_\/\ \__/ / __`\/\ \/\ \/\ \ \ \/\ \ ,__\ /\ \_\ \ \ \_/ \_/ \ \ \_\ \ \_/ \ \____/\ \___x___/'\ \__\\ \_\ \/___/ \/__//__/ \/__/ \/_/ [-] Aborted by Framework: [DB] (OperationalError) could not connect to server: Connection refused [-] Is the server running on host "127.0.0.1" and accepting [-] TCP/IP connections on port 5432? [-] None None [-] OWTF :P
OWTF should, at least, check if
The service command might be a good way to check if:
probably, owtf should be doing something like this on start:
if [ $(whereis postgresql|cut -f2 -d:|wc -c) -lt 3 ]; then # postgresql not installed echo "postgresql is not installed, please run the install script on path/to/install/script" exit fi if [ $(service postgresql status|cut -f2 -d:|wc -c) -lt 3 ]; then # DB down echo "DB was doing, starting it ..." service postgresql start # Start DB fi
//service postgresql probably being a config setting?
An approach similar to this would be more user-friendly
afaik, metasploit starts postgresql automatically, so why shouldn't we?
I want my grandmother to run owtf successfully when she is 100, ok? ;)