there's a fix around here somewhere in fasttrack thread
but that comes from postgres
so use sqlite3 instead... installl sqlite 3.4.0 min and modify your line for load db
When i'am starting metasploit autopwn on Back|Track i get the following Error:
I hope someone know how to solve the problemCode:load db_postgres[*] Successfully loaded plugin: db_postgres msf > db_create pentest createdb: could not connect to database postgres: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? [-] Error while running command db_create: Broken pipe Call stack: /pentest/exploits/framework3/plugins/db_postgres.rb:120:in `write' /pentest/exploits/framework3/plugins/db_postgres.rb:120:in `cmd_db_create' /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `send' /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `run_command' /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single' /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `each' /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single' /pentest/exploits/framework3/lib/rex/ui/text/shell.rb:125:in `run' /pentest/exploits/framework3/msfconsole:77 msf > db_nmap 127.0.0.1 [-] Unknown command: db_nmap. msf > db_autopwn -p -t -e [-] Unknown command: db_autopwn. msf >
Best regards Kaskra
there's a fix around here somewhere in fasttrack thread
but that comes from postgres
so use sqlite3 instead... installl sqlite 3.4.0 min and modify your line for load db
Watch your back, your packetz will belong to me soon... xD
BackTrack : Giving Machine Guns to Monkeys since 2006
cd /pentest/exploits/framework3
svn update; sudo -s
createuser -U postgres -P
When creating the postgres user make the group root, assign a password, and make it a superuser.
After creating the user:
su postgres
./msfconsole
db_create
db_connect
you should be able to db_nmap your target (or import files) and then run db_autopwn after this.
You need to run these commands before it will work. I wish I could find the thread on here but someone else found that the postgres user is not working on the final version of Backtrack 2.
Whoever it was please step up and take credit, I found it ahwile back.
What those commands do is create the postgres user and update metasploit before you run it. Obviously to run the update you need to be connected to a network already.
-Spyder
Just found the thread, thanks to delusr and others for writing the guide.
-Spyder
Can you please pop the link in for the tutorial spyder
Cheers
Edit: Nevermind mate all working![]()
Unfortunately I can't since I have less then 15 posts
Quick question for you folks though, the only machine I have to test against is a machine with Windows XP SP2 Pro. I've rerun the install, the machine has 0 updates beyond whats on the SP2 CD and no other programs installed.
Running autopwn -p -t does not detect any vulnerabilties. When I run autopwn -p -t -e, I cannot seem to get any exploits working.
Whats the deal people, am I doing something wrong or are the exploits only for pre XPSP2 machines?
I have run the update (svn update; sudo -s) and am using Metasploit 3 on the BT2 CD.
-Spyder