因為之後需要確認目標 IP ,因此以下以圖解的方式,帶大家確認靶機的 IP,筆者使用 Windows 環境,可透過 cmd 或是 PowerShell 查詢 VirtualBox Host-Only 的IP。
開啟 PowerShell
尋找 virtualbox IP 需透過指令
ipconfig.exe
確認網路卡 VirtualBox Host-Only 的 IP。
ipconfig.exe
從上圖了解,本基於 virtualbox Host-Only 的 IP 為 172.28.128.1 且子網路遮罩為 255.255.255.0,因此計算 submask 為 /24 (8*3 = 24)。
此時開啟 Parrot OS 透過 ip addr 確認自身的 IP 。
我們自身的 IP 為 172.28.128.4 確認與目標相同網段後,可以透過 nmap 指令確認其他臺機器的 IP。
namp 172.28.128.0\24 \24 可以掃到 172.28.128.0 ~ 172.28.128.255 共 256 個 IP。
可猜測靶機的 IP 為172.28.128.3 和 172.28.128.5。
直接從靶機確認 IP
確認 metasploitable3-ub1404
開啟虛擬機,輸入一下帳號密碼
帳號:vagrant
密碼:vagrant
輸入 ip addr