For those who are still not familiar but interested in learning metasploit. These links might be helpful 🙂
hxxp://www.grmn00bs.com/ – great videos 🙂
After doing all the hardwork of rooting and dumping all users and passwords from the victim’s box. Another post exploitation stuff that you can do is to capture an image from a victim’s webcam. This is one my favorite exploit to see what he/she is doing… lol.
Exploiting the victim
You might also want to set the target OS. It uses the autodetect os version and language which sometimes not accurate.
Meterpreter payload has tons of scripts that you can use for post exploitation such as adding backdoors, keylogging, desktop screen capture, token impersonating and many more.
If you encounter this problem. There are possibilities that either webcam is not configured or you have multiple webcam installed as indicated above the -i which uses default 1 webcam.
You can check the webcams available by issuing webcam_list:
Have fun! 🙂