/msfconsole
[*] msf> load db_postgres
[**************************************************************]
Chapter 5: Using the BackTrack LiveCD Linux Distribution
115
PART II
If you follow the start-db_autopwn directions, you??™ll find yourself at a regular Metasploit
console prompt. However, the db_postgres module enabled additional commands.
msf > help
Postgres Database Commands
==========================
Command Description
------- -----------
db_connect Connect to an existing database ( user:pass@host:port/db )
db_create Create a brand new database ( user:pass@host:port/db )
db_destroy Drop an existing database ( user:pass@host:port/db )
db_disconnect Disconnect from the current database instance
The next step is to create or connect to a database, depending on whether you have
already created the database.
msf > db_create
ERROR: database "metasploit3" does not exist
LOG: transaction ID wrap limit is 2147484146, limited by database "postgres"
CREATE DATABASE
ERROR: table "hosts" does not exist
ERROR: table "hosts" does not exist
NOTICE: CREATE TABLE will create implicit sequence "hosts_id_seq" for serial
column "hosts.id"
NOTICE: CREATE TABLE will create implicit sequence "hosts_id_seq" for serial
column "hosts.
Pages:
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268