如何從Exploit-DB中添加模塊至Metasploit
前言
系統:Linux kali 5.2.0-kali2-amd64 #1 SMP Debian 5.2.9-2kali1 (2019-08-22) x86_64 GNU/Linux
msf版本:metasploit v5.0.41-dev
1、搜索漏洞信息
已知CVE編號,打開https://www.exploit-db.com/,搜索相關信息(eg.2014-3936)
2、使用searchsploit進行本地搜索
複製標題在kali本地的exploits庫進行搜索
searchsploit D-Link HNAP - Request Remote Buffer Overflow
覈對相關編號和標題是否和網站中搜索一致
3、複製rb文件
複製對應rb文件至msf的模塊內
root@kali:~/.msf4/modules/exploits/hardware/remote# cp /usr/share/exploitdb/exploits/hardware/remote/34064.rb
4、use載入模塊
照理說應該是可以search到,但是沒有結果,不過可以直接tab補全找到,無傷大雅
複製完相應rb文件之後如果找不到,就重啓一下msf