Land #2374, more complete 32/64 migrate fix

[FixRM #8395]
bug/bundler_fix
Tod Beardsley 2013-09-17 14:52:04 -05:00
commit dae8847c4d
No known key found for this signature in database
GPG Key ID: 1EFFB682ADB9F193
2 changed files with 15 additions and 0 deletions

View File

@ -12,9 +12,21 @@ require 'msf/core'
module Msf::Payload::Windows module Msf::Payload::Windows
require 'msf/core/payload/windows/prepend_migrate' require 'msf/core/payload/windows/prepend_migrate'
# Provides the #prepends method # Provides the #prepends method
# XXX: For some unfathomable reason, the order of requires here is
# important. If this include happens after require'ing the files
# below, it causes the windows/exec payload (and probably others) to
# somehow not have PrependMigrate despite having Payload::Windows,
# which leads to a NoMethodError on #prepends
include Msf::Payload::Windows::PrependMigrate include Msf::Payload::Windows::PrependMigrate
require 'msf/core/payload/windows/dllinject'
require 'msf/core/payload/windows/exec'
require 'msf/core/payload/windows/loadlibrary'
require 'msf/core/payload/windows/reflectivedllinject'
require 'msf/core/payload/windows/x64/reflectivedllinject'
# #
# ROR hash associations for some of the exit technique routines. # ROR hash associations for some of the exit technique routines.
# #

View File

@ -4,6 +4,9 @@
require 'rex/post/meterpreter/packet' require 'rex/post/meterpreter/packet'
require 'rex/post/meterpreter/extension' require 'rex/post/meterpreter/extension'
require 'rex/post/meterpreter/client' require 'rex/post/meterpreter/client'
# Used to generate a reflective DLL when migrating. This is yet another
# argument for moving the meterpreter client into the Msf namespace.
require 'msf/core/payload/windows' require 'msf/core/payload/windows'
module Rex module Rex