Metasploit mailing list archives

Re: Dynamically Generated Final Stages


From: Ty Miller <tyronmiller () gmail com>
Date: Tue, 31 Aug 2010 17:25:16 +1000

hey guys,

any help with this would be great.

Thx,
ty


On Friday, August 27, 2010, Ty Miller <tyronmiller () gmail com> wrote:
Hey guys,

When writing staged shellcode for metasploit, how do you get the final stage that was selected by the user (eg, 
meterpreter or shell or bind, etc) to be dynamically included within the module or handler?

For example, say that a user selects the payload "windows/meterpreter/awesome_payload" then the meterpreter stage 
needs to be dynamically generated and used by the handler to tunnel it through to the compromised host (or soon to be 
compromised host). But if the user selects the payload "windows/shell/awesome_payload" then the shell stage needs to 
be dynamically generated and passed to the compromised host via the handler.

Do I need to use msfpayload within the handler or something?

Thanks,
Ty



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


Current thread: