
Untitled
By: a guest on
May 14th, 2012 | syntax:
Ruby | size: 0.77 KB | hits: 22 | expires: Never
if not res
print_error("#{rhost}:#{rport} [ACS] Unable to connect")
return
elsif res.code == 200
body = res.body
case body
when /success/i
print_good("#{rhost} - Success! Password has been changed.")
when /Password has already been used/
print_error("#{rhost} - Failed! The supplied password has already been used.")
print_error("Please change the password and try again.")
when /Invalid credntials for user/
print_error("#{rhost} - Failed! Either the username does not exist or target is not vulnerable.")
print_error("Please change the username and try again.")
else
print_error("Fail")
end
else
print_error("#{rhost} - Failed! The webserver issued a #{res.code} response.")
return
end