fail_with is not allowed in check method. Use vprint_error and return a CheckCode instead.

GSoC/Meterpreter_Web_Console
Quentin Kaiser 2018-12-18 15:09:04 +01:00
parent 4682cf5796
commit e51530688b
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ class MetasploitModule < Msf::Exploit::Remote
return Exploit::CheckCode::Safe
end
rescue JSON::ParserError
fail_with(Failure::Unknown, 'Failed to parse JSON output.')
vprint_error("Failed to parse JSON output.")
return Exploit::CheckCode::Unknown
end
end
Exploit::CheckCode::Unknown