Pass NOP generator to exploit_simple

This also makes exploit_simple consistent with its documentation.
GSoC/Meterpreter_Web_Console
William Vu 2018-04-20 18:21:58 -05:00
parent 4aafa7b321
commit 06de967b02
1 changed files with 5 additions and 0 deletions

View File

@ -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)