Metasploit mailing list archives

Dynamically Generated Final Stages


From: Ty Miller <tyronmiller () gmail com>
Date: Fri, 27 Aug 2010 08:13:26 +1000

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: