Force option validation in exploit_simple for e & p
parent
1cf25e58d5
commit
be6a64b3f7
|
@ -72,6 +72,9 @@ module Exploit
|
||||||
"You must specify a payload.", caller
|
"You must specify a payload.", caller
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Verify the options
|
||||||
|
exploit.options.validate(exploit.datastore)
|
||||||
|
|
||||||
# Start it up
|
# Start it up
|
||||||
driver = ExploitDriver.new(exploit.framework)
|
driver = ExploitDriver.new(exploit.framework)
|
||||||
|
|
||||||
|
@ -98,6 +101,9 @@ module Exploit
|
||||||
# Force the payload to share the exploit's datastore
|
# Force the payload to share the exploit's datastore
|
||||||
driver.payload.share_datastore(driver.exploit.datastore)
|
driver.payload.share_datastore(driver.exploit.datastore)
|
||||||
|
|
||||||
|
# Verify the payload options
|
||||||
|
driver.payload.options.validate(driver.payload.datastore)
|
||||||
|
|
||||||
# If we still have no target index, try to use the datastore's index
|
# If we still have no target index, try to use the datastore's index
|
||||||
target_idx = opts['Target'] || exploit.default_target
|
target_idx = opts['Target'] || exploit.default_target
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue