Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 14th, 2012  |  syntax: Ruby  |  size: 0.77 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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