一、db_nmap使用方法
1.打开数据库
1.1查看数据库postgresql连接状态
systemctl status postgresql
查看数据库postgresql连接状态、

1.2启动postgresql
systemctl start postgresql
启动postgresql

1.3初始化
msfdb init
初始化=

2.C段扫描(db_nmap的使用)
2.1 db_nmap -sP 192.168.251.0/24的用法
db_nmap -sP 192.168.251.0/24
将查询到的结果存入到数据库中

2.2 IP地址查询
hosts
地址查询

2.3 查询地址开放的端口号
db_nmap -sS 192.168.251.139(IP地址)
查询地址开放的端口号并将其写入到数据库中
