Fixed issue #7650 where etherpad_duo_login module may crash

Add check for presence of Server header.
bug/bundler_fix
Jin Qian 2016-12-02 18:07:18 -06:00
parent 86ec5861f9
commit 35fdf1473b
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class MetasploitModule < Msf::Auxiliary
return false
end
if (res and res.code == 200 and res.headers['Server'].include?("EtherPAD") and res.body.include?("EtherPAD Duo"))
if (res and res.code == 200 and res.headers['Server'] and res.headers['Server'].include?("EtherPAD") and res.body.include?("EtherPAD Duo"))
vprint_good("Running EtherPAD Duo application ...")
return true
else