Fixes #279, thanks jduck!

git-svn-id: file:///home/svn/framework3/trunk@6458 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-04-03 12:54:58 +00:00
parent 6dac26b0ff
commit 43ad9f7a7c
1 changed files with 6 additions and 0 deletions

6
msfcli
View File

@ -147,17 +147,23 @@ nop = nil
if (exploit.datastore['PAYLOAD'])
payload = $framework.payloads.create(exploit.datastore['PAYLOAD'])
if (payload != nil)
payload.datastore.import_options_from_s(ARGV.join('_|_'), '_|_')
end
end
if (exploit.datastore['ENCODER'])
encoder = $framework.encoders.create(exploit.datastore['ENCODER'])
if (encoder != nil)
encoder.datastore.import_options_from_s(ARGV.join('_|_'), '_|_')
end
end
if (exploit.datastore['NOP'])
nop = $framework.nops.create(exploit.datastore['NOP'])
if (nop != nil)
nop.datastore.import_options_from_s(ARGV.join('_|_'), '_|_')
end
end
case mode.downcase