Improved string matching for patched firmwares

GSoC/Meterpreter_Web_Console
asoto-r7 2019-02-06 23:33:52 -06:00
parent 1250811e38
commit ab3729cc7b
No known key found for this signature in database
GPG Key ID: F531810B7FE55396
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class MetasploitModule < Msf::Auxiliary
body = res.body
if body.match(/####sysconfig####/)
parse_config(body)
else body.match(/refresh content='0; url=\/default.htm/)
else body.include?"meta http-equiv=refresh content='0; url=/default.htm'"
fail_with(Failure::NotVulnerable, "Response suggests device is patched")
end
end