Metasploit mailing list archives

Re: Adding new payloads


From: HD Moore <hdm () metasploit com>
Date: Tue, 25 May 2010 01:17:25 -0500

On 5/24/2010 7:28 PM, Ty Miller wrote:
./msf3/modules/payloads/stagers/windows/reverse_mypayload.rb
./msf3/lib/msf/core/handler/reverse_mypayload.rb

Do I need to do anything else to get it to appear in msfconsole when I
search for mypayload?

In the payload stager module, you need to set a unique alias for your
stager. Otherwise it will use its parent class's alias (reverse_tcp) and
conflicts with the existing stager.

This looks like:


        def self.handler_type_alias
                "reverse_awesome_tcp"
        end


-HD
_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework


Current thread: