I had been trying for a while to set up a couple of virtual machines in such a way that I could demonstrate the working of Metasploit on my Mac. At last today, I have figured out how to do it.

What you’ll need:

1. A Mac (I have a MacBook Pro running OS 10.5.7)
2. VMWare Fusion (I run version 1.1.2, but this should not matter too much)
3. BackTrack 4 (DVD iso can be downloaded from here. NB not the VMWare image!!!)
4. Some old Windows installation cd (can be Windows 2000 or Windows XP)

Setting up BackTrack

1. Download the iso from the link given above

2. Set up BackTrack 4 as a virtual machine in VMWare Fusion:

vmware-1

vmware-2

vmware-3

vmware-5

3. Set BackTrack network to ‘Bridged’:

vmware-6

4. Start networking:

vmware-7

vmware-8

Remember this IP address (192.168.178.26). This will be the local (‘attacker’) IP address later on!

5. Start KDE:

vmware-9

6. Start Metasploit (the web version, msfweb):

vmware-91

7. Wait about 15 seconds, then open a browser and go to http://127.0.0.1:55555:

vmware-92

8. BackTrack 4 and Metasploit are all set!

Setting up Windows 2000

9. Install Windows 2000 (no screenshots provided, use the VMWare help if this should prove difficult)

10. Set network to bridged:

windows-to-bridged

11. Check the Windows IP:

windows-2

windows-3

windows-4

Lo and behold! The windows IP address is 192.168.178.21! This will be the ‘target’ address later on.

Demonstrate Metasploit

12. Start ‘Exploits’ on your BackTrack 4 virtual machine:

ms-1

13. Search for ‘rpc dcom’ and click:

ms-2

14. Click on the target link provided (if you’re into reading, you can also click the ‘external references’):

ms-3

ms-4

15. At ‘target address’, type in the IP address of the windows virtual machine (refer to step 11 above):

ms-6

16. At ‘local address’, type in the BackTrack 4 virtual machine IP address (refer to step 4 above), then ‘launch exploit’:

ms-7

16. Are you sure you want to send unencrypted data?  ;-)

ms-8

17. The VNC session will be started, and you will have gained control over the other virtual machine:

ms-9

Leave a Reply