術語
測驗者利用系統程式或服務的漏洞進行攻擊的一個程序——滲透攻擊(exploit),攻擊載荷(payload)
攻擊者在目標系統上執行的一段代碼,該代碼具有反彈鏈接,創建用戶、執行其他系統命令的功能,
shellcode
在目標機器上運行的一段機器指令,成功執行后會回傳一個shell
模塊(module)
指metasploit框架中所使用的一段軟體代碼組件
運行
msfconsole
service postgresql start
service metasploit start
msfconsole
輸入db_status 查看資料庫連接狀態
workspace –a test 創建一個作業臺
洗掉 –d 選項
進入test作業臺
Wordspace test
使用nmap
db_nmap –sS 192.168.1.1 掃描主機
db_export 1.xml 匯出掃描結果
db_inport 1.xml 匯入掃描結果
hosts 查看掃描結果
~#/etc/init.d/postgresql start
~#su –postgres
createuser msf –p
created –owher=msf msf3
exit
資訊搜集
whois查詢
msf>whois example.com
msf>whois 192.168.1.1
msf>use auxiliary/scanner/ip/ipidsed #IPID序列掃描器
showoptions
set RHOSTS 192.168.1.1
set RPORT 8080
set THREADS 50
run
Metasploit常用漏洞利用命令
search <name> 用于指定關鍵字搜索可利用漏洞
use <exploit name> 使用漏洞
show options 顯示選型
set <OPTION NAME><option> 顯示選項
show payloads 顯示設定
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/55238.html
標籤:其他
上一篇:滲透測驗學習 三十、綜合掃描
下一篇:SQL注入:顯錯注入
