x32x01
ADMINISTRATOR
As discussed previously, we had successfully exploited a windows machine with Metasploit Framework and created an administrator user in targeted machine. Now in this post, we’ll another exploit which steals the Windows Product Key remotely.
For this methods, run the “NETAPI Exploit” (specially for Windows XP) in background mode by typing “exploit -j” command.
To view all hacked sessions, type “sessions” in same console.

Now we’ll use another exploit which steals the Microsoft Windows Product Key and for this, type “use post/windows/gather/enum_ms_product_keys” in same terminal.

Set the ID value of session which we hacked by typing “set session <ID>”
