先说一下PostgreSQL的设置
用kali以后,看BT5那时候的书上面的设置都变化了许多。
*************2015.11.22**********************************************
配置平板上的PostgreSQL没有成功,最后在IRC上问别人,也许是Linux deploy用的是android 的内核
反正两个uname -a的结果都是一样的,android的内核缺少shm这个功能吧。。
************************************************************************
1.1、首先开启PostgreSQL数据库
~#/etc/init.d/postgresql start
[ ok ] Starting PostgreSQL 9.1 database server: main.
1.2、修改postgres登录密码(否则用的是随机密码使mp不能连接数据库)
1.3、此时mp还不能连接到数据库,因为UTF-8编码问题
[-] Error while running command db_connect: Failed to connect to the database: PG::InvalidParameterValue: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
HINT: Use the same encoding as in the template database, or use template0 as template.
: CREATE DATABASE "testbook" ENCODING = 'utf8'
解决方案:
NMAP信息导入到数据库
2.1 NMAP扫描信息生成test1.xml文件
~# nmap -sS -Pn -A -oX test1 wjjsm.com
2.2 将nmap查询到的信息导入到metasploit
2.3 查看目标运行的服务