Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: pwdump 2 & 3 |
|---|---|
| Date: | Wed, 05 Jan 2005 19:15:52 +0100 |
Hello everybody !
The logon credentials of the last 10 users that login into a particular machine (that's true, you can see that the last 10 users that login into a machine are able to login even when disconnected from the network, thanks to the cached credentials) are cached somewhere in the local machine (someone mentioned to me the LSA Secrets, but I'm not sure about this location, can also be somewhere else in the protected section of the registry. LSA itself is one of these protected sections. Please read on).
Take into account that the caching can be (and should be? ;-) disabled with the following registry key:
HKLM\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENTVERSION\WINLOGON\CACHEDLOGONSCOUNT (change it to 1 to disable the caching)
My guess is that this information is SYSKEYed or encrypted in some other way.
> ... > So far so good. Now to the bad news (extract from a post of Nicolas > Ruff in the full-disclosure list, > http://seclists.org/lists/fulldisclosure/2003/Dec/0794.html): > "Cached logon are stored in some kind of "double hash" way ( > LM(LM(password)) or NTLM(NTLM(password)) > ) - very difficult to break in a reasonable time, but still vulnerable > to dictionnary attacks. > However I do not know any publicly released tool able to retrieve and > crack cached logon (even if I > am working on it :-). " > ... > OK, who has time to test all the above? ;-)
Cached values are generated as follow :
- Cached LM hash = MD4('LM hash' + Unicode lowercase username)
- Cached NTLM hash = MD4('NTLM hash' + Unicode lowercase username)Well it is possible, that logon-information is not cached locally (I mean, only in memory) for security reasons. Seems like you have to get the SAM (with all domain-users inside) from a domain-controller ;-)... Did you check for other SAM-files in the local filesystem (%windir%\repair)?
There are 3 very different things here :
Hint : use PasswordReminder. http://www.smidgeonsoft.prohosting.com/#PasswordReminder
- Last 10 domain logins cached in registry.
- Local user accounts, stored in SAM database.
Hint : use PWDUMP as a local admin.
Does anyone knows if it is posible with pwdump to get the information About a logged on user.
For instance, If I log on my computer, I use a domain logon, and when I execute pwdump I only see local user....
Happy new year ! - Nicolas RUFF ----------------------------------- Security Consultant EdelWeb (http://www.edelweb.fr/) Mail : nicolas.ruff (at) edelweb.fr -----------------------------------
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Rules of the road for 2005, Alfred Huger |
|---|---|
| Next by Date: | Penetration Testing a CheckPoint NG FW on Nokia, Jason binger |
| Previous by Thread: | Re: pwdump 2 & 3, okrehel |
| Next by Thread: | Re: pwdump 2 & 3, miguel . dilaj |
| Indexes: | [Date] [Thread] [Top] [All Lists] |