system password
is it possible to get my system password through c# code at runtim? if yes how can i do that. i know it is possible yo get user name but what abt password.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jun 4, 2013, 6:47 AM
You'll first need to add a reference to your project to System.DirectoryServices.AccountManagement.dll and then use the following.code:
// ...
if (!isValid)
{
// password is not correct for logged on user
}
nishant ranjanPosted Jun 4, 2013, 2:36 AM
VulpesPosted Jun 3, 2013, 8:47 AM
There are (respectable) tools which can recover passwords but I think they work by trying a large number of combinations until they find one with the same hash as you typed in originally. This may not necessarily be the same as your original password because hashes are unlikely to be unique.
Kiresh GangariyaPosted Jun 3, 2013, 8:20 AM
http://msdn.microsoft.com/en-us/library/chf6fbt4.aspx
Neha SharmaPosted Jun 3, 2013, 8:14 AM
try this :
http://stackoverflow.com/questions/4516637/using-windows-username-password-in-c-sharp