rapid7/metasploit-framework — pull request #790 by wchen-r7 (2012-09-15 17:28:07+00:00)
Title: Add more Exploit::Failure constatns

The Exploit::Failure module should cover these specific scenarios because they are really common:

- NoAuthorization: Used when the attacker is authenticated, but his credential does not grant him the access to certain resources, or actions.

- NoAuthentication: Used when the attacker fails to login.

I left NoAccess untouched because of these two reasons:
- The framework is already using that.
- In case for some reason you don't have access to the resource, but you shouldn't need to auth, either. Example: chmod improperly set on a web resource.