carnal0wnage wrote a great piece on this in his blog a few years ago, it's a little bit more complicated than copy and paste if that's what you were hoping for.
Carnal0wnage Blog: Adding your own exploits and modules in Metasploit
help me! how to add exploit from milw0rm to metasploit
carnal0wnage wrote a great piece on this in his blog a few years ago, it's a little bit more complicated than copy and paste if that's what you were hoping for.
Carnal0wnage Blog: Adding your own exploits and modules in Metasploit
open source = open minds, human knowledge belongs to the world
Just a note milw0rm doesnt seem to have been updated recently so you are better off trying to add exploits from the offensive-security exploits db. There is a tool built into backtrack 4 for updating your exploits from the exploit db. (menu)-->(backtrack)-->(penetration)-->(exploitdb)-->(update exploitdb)
Try searching and making relevant posts. We are not here to do your research for you.