Guest User

Untitled

a guest
May 14th, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.77 KB | None | 0 0
  1.         if not res
  2.             print_error("#{rhost}:#{rport} [ACS] Unable to connect")
  3.             return
  4.         elsif res.code == 200
  5.             body = res.body
  6.                         case body
  7.             when /success/i
  8.                 print_good("#{rhost} - Success! Password has been changed.")
  9.             when /Password has already been used/
  10.                 print_error("#{rhost} - Failed! The supplied password has already been used.")
  11.                 print_error("Please change the password and try again.")
  12.             when /Invalid credntials for user/
  13.                 print_error("#{rhost} - Failed! Either the username does not exist or target is not vulnerable.")
  14.                 print_error("Please change the username and try again.")
  15.             else
  16.                 print_error("Fail")
  17.             end
  18.         else
  19.             print_error("#{rhost} - Failed! The webserver issued a #{res.code} response.")
  20.             return
  21.         end
Advertisement
Add Comment
Please, Sign In to add comment