
因為之後需要確認目標 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 。

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。
確認 metasploitable3-ub1404
開啟虛擬機,輸入一下帳號密碼
帳號:vagrant
密碼:vagrant
輸入 ip addr
| 名詞 | 說明 |
|---|---|
ip addr |
查看目前網路介面卡與 IP |
eth1 |
介面卡第二張(eth0 是第一張) |
172.28.128.3 |
ub1404 的 IP |
確認 metasploitable3-workspace_win2k8
點選【輸入】>【鍵盤】>【插入 Ctrl-Alt-Del】
點選 vagrant
輸入密碼 vagrant
點選左下角的 Start 再點選 Network

點選【Network and Sharing Center】
點選第二個介面卡【Local Area Connection 2】
點選【Detail】
取得 IP 172.28.128.5