[framework] Adding a new exploit

H D Moore hdm at metasploit.com
Sat Feb 16 13:08:42 CST 2008


Make sure the class names of the exploits match the directory where they 
are stored. You can look at the framework.log file for any error messages 
related to the module. For example, you might see "module loaded but no 
new classes found", which indicates a bad class name or location.

Keep in mind that in 3.0 and 3.1, you can store your own modules in 
the .msf3/modules/(type)/(path)/name.rb format.

If my exploit had the class name Exploit::Windows::Browser::EvilExploit
Then it could be stored in:

framework-root/modules/exploits/windows/browser/evilexploit.rb

or 

~/.msf3/modules/exploits/windows/browser/evilexploit.rb

Hope this helps,

-HD


On Saturday 16 February 2008, Trancer wrote:
> Recently I preformed some pen-tests and wrote new exploit modules for
> Metasploit.
> When I try to add these exploits to the framework it won't display them
> in the console.
> Note that the problem occurred after I upgrade to v3.1




More information about the Framework mailing list