Pass NOP generator to exploit_simple
This also makes exploit_simple consistent with its documentation.GSoC/Meterpreter_Web_Console
parent
4aafa7b321
commit
06de967b02
|
@ -98,6 +98,11 @@ module Exploit
|
|||
# best encoder.
|
||||
exploit.datastore['ENCODER'] = opts['Encoder'] if opts['Encoder']
|
||||
|
||||
# Use the supplied NOP generator, if any. If one was not specified, then
|
||||
# nil will be assigned causing the exploit to default to picking a
|
||||
# compatible NOP generator.
|
||||
exploit.datastore['NOP'] = opts['Nop'] if opts['Nop']
|
||||
|
||||
# Force the payload to share the exploit's datastore
|
||||
driver.payload.share_datastore(driver.exploit.datastore)
|
||||
|
||||
|
|
Loading…
Reference in New Issue