Copy check for data_header to avoid crash
Variable was used but out of scope.GSoC/Meterpreter_Web_Console
parent
e4256f4595
commit
2989507b85
|
@ -351,6 +351,11 @@ class MetasploitModule < Msf::Exploit::Remote
|
||||||
end
|
end
|
||||||
|
|
||||||
def send_payload_oneshot(payload)
|
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']
|
random_filename = datastore['TEMPFILE']
|
||||||
|
|
||||||
# d = payload data
|
# d = payload data
|
||||||
|
|
Loading…
Reference in New Issue