parse options before creating so -h is faster

git-svn-id: file:///home/svn/framework3/trunk@6060 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2009-01-02 21:25:25 +00:00
parent 114067e7bb
commit 99b4f008c9
1 changed files with 5 additions and 5 deletions

View File

@ -75,11 +75,6 @@ def usage
exit
end
# Initialize the simplified framework instance.
$framework = Msf::Simple::Framework.create(
:module_types => [ Msf::MODULE_ENCODER ]
)
# Defaults
cmd = "encode"
arch = nil
@ -134,6 +129,11 @@ $args.parse(ARGV) { |opt, idx, val|
end
}
# Initialize the simplified framework instance.
$framework = Msf::Simple::Framework.create(
:module_types => [ Msf::MODULE_ENCODER ]
)
# Get the list of encoders to try
encoders = get_encoders(arch, encoder)