- 最流行的用户接口
- 几乎可以使用全部 msf 功能
- 控制台命令支持 TAB 自动补全
- 支持外部命令的执行(系统命令等)
- 启动:msfcosole
MSF控制台命令
```powershell
Banner̵ Color̵ connect -h
show auxiliary / exploits / payloads / encoders / nops
search usermap_script / help search
– search name:mysql / path:scada / platform:aix / type:aux /author:aaron /
cve:2011 / 可多条件同时搜索
use dos/windows/smb/ms09_001_write
– show options / payloads / targets / advanced / evasion
– info edit
Check ̵back
set / unset / setg / unsetg / save
模块内命令
Run / exploit
jobs / kill 0
load / unload /loadpath
Session
– session -l / -i(Shell, ̵meterpreter session̵,vnc)
route 通过指定sessio路由流量
irb (framework::Version)
Resource ҁmsfconsol -r a.rc
<a name="mb7bt"></a>
#### 数据库命令
```python
db_status / db_rebuild_cache
db_nmap
– Hosts / host 1.1.1.1 / hosts -u / hosts -c address,os_flavor -S Linux
– services -p 80 / services -c info,name -p 1-1000
– vulns / creds mysql_login / loot hashdump
db_disconnect / db_connect
– /usr/share/metasploit-framework/config/database.yml
db_import / db_export
– db_import /root/nmap.xml
– db_export -f xml /root/bak.xm
更多:https://fishpond.blog.csdn.net/article/details/105788305