parse options before creating so -h is faster
git-svn-id: file:///home/svn/framework3/trunk@6060 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
114067e7bb
commit
99b4f008c9
10
msfencode
10
msfencode
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue