Covered in the metasploit unleashed guide from Offensive security and the metasploit video tutorial series on security tube .com website.