Skip to content

Instantly share code, notes, and snippets.

View limhoff-r7's full-sized avatar

Luke Imhoff limhoff-r7

  • Rapid7, Inc.
  • Austin, TX
View GitHub Profile
# 1. Run `msfconsole`
# 2. Select an module `use payload/windows/patchupdllinject/bind_tcp_rc4`
# 2. Enter `irb` mode
# active_module is the module selected with `use`
module_ancestors = active_module.class.ancestors.select { |ancestor|
ancestor.name.try(:start_with?, 'Msf::Modules::')
}
hex_unpacked_module_ancestor_full_names = module_ancestors.map(&:name).map { |name|
name.sub(/^Msf::Modules::Mod/, '')