Fix undefined method error

[FixRM #8347]
bug/bundler_fix
sinn3r 2013-08-21 00:41:49 -05:00
parent 5993cbe3a8
commit 9ca7a727e1
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class Metasploit3 < Msf::Auxiliary
'method' => 'POST', 'method' => 'POST',
}, 5) }, 5)
if (res.headers['Set-Cookie'] and res.headers['Set-Cookie'].match(/PHPSESSID=(.*);(.*)/i)) if (res and res.headers['Set-Cookie'] and res.headers['Set-Cookie'].match(/PHPSESSID=(.*);(.*)/i))
sessionid = res.headers['Set-Cookie'].split(';')[0] sessionid = res.headers['Set-Cookie'].split(';')[0]