metasploit中数据库PostgreSQL的使用

Metasploit支持MySQL、PostgreSQL和SQLite3数据库。默认数据库PostgreSQL。下面是PostgreSQL数据库的简单使用命令:sql

1.启动数据库子系统数据库

/etc/init.d/postgresql start

2.链接数据库(建立新的数据库也是这个命令)。post

db_connect postgres:toor@127.0.0.1/msf

上面几个参数的意思分别是:用户名,密码,运行数据库系统的主机名,将要使用的数据库名postgresql

kali中默认的用户名是postgres,密码是toor。code

3.确认数据库链接是否正确。xml

db_status

4.将扫描结果的xml文件导入数据库中it

db_import /home/output/subnet.xml

5.删除原有数据库import

db_destroy postgres:toor@127.0.0.1/msf3

6.断开数据库链接:密码

db_disconnect postgres:toor@127.0.0.1/msf
相关文章
相关标签/搜索