Hi,

I am unable to get User Name And Password from SAM file.Can Any One have Experience that how to get the password from SAM file.

Thanks ALOT!

kvprajapati commented: N/A -2

Recommended Answers

All 6 Replies

The SAM file contains the user name and a hash of the password; not the actual password.
This is a protected system file and not even an Administrator user has access while the computer is running.
That said, there is stuff about this on the internet; just Google "SAM file".

SIR,
can u tell me another way from which i get the original password

The purpose of a password is security.
If you could find out what it was easily then it would not be very secure.
I know of no honourable reason why you would want to read someone else’s password.
Perhaps you should re-think what you want to do.

commented: Words!!!! +10

I am making security descriptive for windows for which it take admin password from user .I have to match it that this password is original or not for this purpose i need original password.
thanks on your post

If that is the case then you are approaching this the wrong way.
Your question should have been "How can I check a user's Windows password?".
Look at the System.Security and System.Security.Principal namespaces.
Also, the System.Threading.Thread.CurrentPrincipal.IsInRole method may also be useful.

This link may also help:http://msdn.microsoft.com/en-us/library/system.security.principal.windowsimpersonationcontext.aspx

thanks sir on giving me right path

God bless on u (nick.crane)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.