Update modules/exploits/multi/http/horde_csv_rce.rb

Co-Authored-By: Shelby Pace <40177151+space-r7@users.noreply.github.com>
This commit is contained in:
Andrea Cardaci
2020-03-17 19:02:34 +01:00
committed by GitHub
parent eccee07e8b
commit bbb152a6d8
+4 -4
View File
@@ -98,12 +98,12 @@ class MetasploitModule < Msf::Exploit::Remote
if check
# deliver the payload and return the body
res = send_request_cgi(options)
if not res or res.code != 200
unless res && res.code == 200
fail_with(Failure::UnexpectedReply, 'Cannot execute the payload')
else
vprint_good('Payload executed successfully')
return res.body
end
vprint_good('Payload executed successfully')
return res.body
else
# deliver the payload in a a new thread since the meterpreter payload does
# not terminate when successful this allows to poll for session creation