Load the encoders/nops modules in msfpayload for encoding, load nops in msfencode

git-svn-id: file:///home/svn/framework3/trunk@6694 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-06-21 15:59:09 +00:00
parent 93cd190a02
commit a13c01ed3e
3 changed files with 5 additions and 4 deletions

View File

@ -90,8 +90,8 @@ class EXE
return pe
end
def self.to_win32pe_service(framework, code, name="SERVICENAME")
def self.to_win32pe_service(framework, code, name='SERVICENAME')
pe = ''
fd = File.open(File.join(File.dirname(__FILE__), "..", "..", "..", "data", "templates", "service.exe"), "rb")
@ -305,6 +305,7 @@ class EXE
def self.encode_stub(framework, arch, code)
return code if not framework.encoders
framework.encoders.each_module_ranked('Arch' => arch) do |name, mod|
begin
enc = framework.encoders.create(name)

View File

@ -139,7 +139,7 @@ $args.parse(ARGV) { |opt, idx, val|
# Initialize the simplified framework instance.
$framework = Msf::Simple::Framework.create(
:module_types => [ Msf::MODULE_ENCODER ]
:module_types => [ Msf::MODULE_ENCODER, Msf::MODULE_NOP ]
)
# Get the list of encoders to try

View File

@ -34,7 +34,7 @@ end
# Initialize the simplified framework instance.
$framework = Msf::Simple::Framework.create(
:module_types => [ Msf::MODULE_PAYLOAD ]
:module_types => [ Msf::MODULE_PAYLOAD, Msf::MODULE_ENCODER, Msf::MODULE_NOP ]
)