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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jun 4, 2013, 2:47 AM EDT
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
}
Neha SharmaRank #569 · 4.3K reputationPosted Jun 3, 2013, 4:14 AM EDT
try this :
http://stackoverflow.com/questions/4516637/using-windows-username-password-in-c-sharp
Kiresh Gangariya52 reputationPosted Jun 3, 2013, 4:20 AM EDT
http://msdn.microsoft.com/en-us/library/chf6fbt4.aspx
VulpesRank #55 · 29.2K reputationPosted Jun 3, 2013, 4:47 AM EDT
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.
nishant ranjanRank #4,961 · 317 reputationPosted Jun 3, 2013, 10:36 PM EDT