-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Uberhandler
James Lee edited this page Jan 17, 2014
·
4 revisions
Metasploit payload modules are Ruby Modules and come in three types:
Payload::Type::SinglePayload::Type::StagePayload::Type::Stager
Payloads are created by creating an anonymous Class and including
mixins for a Handler and either a single-stage payload or both a stage
and stager, like so:
def build_payload(*modules)
klass = Class.new(Payload)
# Remove nil modules
modules.compact!
# Include the modules supplied to us with the mad skillz
# spoonfu style
klass.include(*modules.reverse)
return klass
endThe result is a Class for each combination of stage + stager +
handler. E.g., windows/meterpreter/reverse_tcp includes
Msf::Handler::ReverseTcp and the Modules defined in
modules/payloads/stagers/windows/reverse_tcp and
modules/payloads/stages/windows/meterpreter. As a corollary, this
means that stages and stagers are intricately linked with each other and
their handlers.
- Home Welcome to Metasploit!
- Using Metasploit A collection of useful links for penetration testers.
-
Setting Up a Metasploit Development Environment From
apt-get installtogit push. - CONTRIBUTING.md What should your contributions look like?
- Landing Pull Requests Working with other people's contributions.
- Using Git All about Git and GitHub.
- Contributing to Metasploit Be a part of our open source community.
- Meterpreter All about the Meterpreter payload.