add cookie.match and alway return

bug/bundler_fix
Thanat0s 2014-04-28 12:39:32 +02:00
parent d5fe8471ed
commit 6610977e86
1 changed files with 3 additions and 2 deletions

View File

@ -52,13 +52,14 @@ class Metasploit3 < Msf::Auxiliary
'uri' => @uri
})
id,value = nil
begin
# Get the SLB session ID, like "TestCookie=2263487148.3013.0000"
m = res.headers['Set-Cookie'].match(/([\-\w\d]+)=((?:\d+\.){2}\d+)(?:$|,|;|\s)/)
m = res.get_cookies.match(/([\-\w\d]+)=((?:\d+\.){2}\d+)(?:$|,|;|\s)/)
ensure
id = (m.nil?) ? nil : m[1]
value = (m.nil?) ? nil : m[2]
return id, value
return id, value
end
end