Copy check for data_header to avoid crash

Variable was used but out of scope.
GSoC/Meterpreter_Web_Console
William Vu 2018-10-12 11:06:26 -05:00
parent e4256f4595
commit 2989507b85
1 changed files with 5 additions and 0 deletions

View File

@ -351,6 +351,11 @@ class MetasploitModule < Msf::Exploit::Remote
end
def send_payload_oneshot(payload)
data_header = datastore['HEADER']
if data_header.empty?
fail_with(Failure::BadConfig, "HEADER parameter cannot be blank when sending a payload")
end
random_filename = datastore['TEMPFILE']
# d = payload data