Fix undefined method error

[FixRM #8349]
bug/bundler_fix
sinn3r 2013-08-21 00:38:35 -05:00
parent 35b15b6809
commit 9f98d4afe6
1 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,8 @@ class Metasploit3 < Msf::Auxiliary
'method' => 'GET',
}, 20)
if (res.headers['Location'] =~ %r(pwned=java.lang.UNIXProcess))
if (res and res.headers['Location'] =~ %r(pwned=java.lang.UNIXProcess))
print_status("Exploited successfully")
else
print_status("Exploit failed.")