Fixed thanks!

 

Chris Hebert

 

From: Spencer McIntyre [mailto:notifications@github.com] 
Sent: Friday, May 09, 2014 3:21 PM
To: rapid7/metasploit-framework
Cc: Chris Hebert
Subject: Re: [metasploit-framework] Add module - alienvault_newpolicyform_sqli (#3345)

 

In modules/auxiliary/gather/alienvault_newpolicyform_sqli.rb:

> +      return
> +    end
> +
> +    unless res.headers['Location'] && res.headers['Location'] == normalize_uri(target_uri.path, 'ossim/')
> +      print_error("#{peer} - Authentication failed")
> +      return
> +    end
> +
> +    cookie = res.get_cookies
> +
> +    if cookie.blank?
> +      print_error("#{peer} - Could not retrieve the authenticated cookie")
> +      return
> +    end
> +
> +    i = 0

i is redefined before it's used

—
Reply to this email directly or view it on GitHub <https://github.com/rapid7/metasploit-framework/pull/3345/files#r12491816> .  <https://github.com/notifications/beacon/2874448__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxNTI4MjQ4MiwiZGF0YSI6eyJpZCI6MzE4NzgzNDl9fQ==--e5f3f39d4d7d6a360e0e26ada512d61c32e00cee.gif>