Password of current user
-
Tuesday, August 07, 2012 2:19 AMi have a user account on a desktop that is running windows xp i am currently to log on hacking the password is once you are logged on is there a way to write a program to tell you the password.
All Replies
-
Tuesday, August 07, 2012 2:38 AMNo. And do not ask for it because it violates the rules of at least this forum.
Armin
-
Tuesday, August 07, 2012 9:51 AMOr if you have a legimate goal describe this goal. You may just not need the password (for example to connect to a database).
Please always mark whatever response solved your issue so that the thread is properly marked as "Answered".
-
Tuesday, August 07, 2012 11:55 AM
i have a user account on a desktop that is running windows xp i am currently to log on hacking the password is once you are logged on is there a way to write a program to tell you the password.
LMAO Dude you choose msdn to ask such questions,the password is encrypted but I will give you a hint SAM, and remember Google is your friend too. please dont do this againGoogle Is My Friend...
-
Tuesday, August 07, 2012 8:55 PMmy question is if i can write a program to find and unencrypt the password.
-
Tuesday, August 07, 2012 11:13 PM
-
Wednesday, August 08, 2012 10:12 AM
Huh AFAIK Not ;-)
You can reset the password but you can`t get the current password , as AFAIK MSFT uses a one way hash actually Windows is pretty safe
-
Wednesday, August 08, 2012 1:59 PM
how do you reset the password
without the current one
-
Wednesday, August 08, 2012 5:58 PM
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = CStr(NetUserChangePassword(Environment.UserDomainName, Environment.UserName, "OldPass", "NewPass")) 'Computer Name, User Name,Old Pass, New pass End Sub <DllImport("netapi32.dll", CallingConvention:=CallingConvention.StdCall, CharSet:=CharSet.Unicode)> Public Shared Function NetUserChangePassword(<MarshalAs(UnmanagedType.LPWStr)> ByVal Domain As String, <MarshalAs(UnmanagedType.LPWStr)> ByVal User As String, <MarshalAs(UnmanagedType.LPWStr)> ByVal OldPass As String, <MarshalAs(UnmanagedType.LPWStr)> ByVal NewPass As String) As Integer End Function End ClassReturns 0 if Pass change was successful
Ok ok i know you want to change the pass without the old one, but chances are slim seeing(If using this method) this is the way windows works.
As this user said:
You can reset the password but you can`t get the current password , as AFAIK MSFT uses a one way hash actually Windows is pretty safe
Because of that, it means you can brute force(trying billions of passwords) the password which in some cases will take days but retrieving the password will be hard and also means you cant change the password without the old one because the one way hashes wont match, alternatively you could go on a wild goose chase and use the bruteforce method which could include booting up xp with a copy of the SAM file , to do this you could boot up an alternative OS
Using this method , windows requires old password
Resources: http://www.ehow.com/how_6668845_change-logon-xp-using-vb.html
Using this method , old password is not requiredPrivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Shell("net user " & Environment.UserName & " new pass") End Sub
Google Is My Friend...
- Edited by _Damien_ Wednesday, August 08, 2012 6:14 PM
- Edited by _Damien_ Wednesday, August 08, 2012 6:15 PM
- Edited by _Damien_ Wednesday, August 08, 2012 6:16 PM
- Edited by _Damien_ Wednesday, August 08, 2012 6:17 PM
- Edited by _Damien_ Wednesday, August 08, 2012 6:54 PM
- Edited by _Damien_ Wednesday, August 08, 2012 6:55 PM
- Edited by _Damien_ Wednesday, August 08, 2012 6:57 PM
- Edited by _Damien_ Wednesday, August 08, 2012 7:01 PM
- Edited by _Damien_ Wednesday, August 08, 2012 7:35 PM
- Edited by _Damien_ Wednesday, August 08, 2012 10:10 PM
- Edited by _Damien_ Wednesday, August 08, 2012 10:26 PM
- Edited by _Damien_ Wednesday, August 08, 2012 10:28 PM
- Edited by _Damien_ Wednesday, August 08, 2012 10:29 PM
-
Wednesday, August 08, 2012 6:17 PMthat is the problem I DON'T KNOW THE OLD PASSWORD.
-
Wednesday, August 08, 2012 6:34 PM
Is it possible to ask the Administrator to reset/change the password? I'm not quite sure why this is a programmatic task. This is usually a one-time action.Armin
- Proposed As Answer by Patrice ScribeMVP Wednesday, August 08, 2012 6:56 PM
-
Wednesday, August 08, 2012 7:04 PM
Is it a matter of you wanting to become admin or cant log on to the PC or do you just want to do something in vb.net
Google Is My Friend...
-
Wednesday, August 08, 2012 7:14 PMi am the admin i want to know what my password is so i can quit hacking my computer to log in every time the power goes out
-
Wednesday, August 08, 2012 7:28 PM
i am the admin i want to know what my password is so i can quit hacking my computer to log in every time the power goes out
First, you can not retrieve the password. That's fact. Second, I'm trying to understand your situation: The power goes out, you reboot and log in again. Have you forgotten your password because of the power outage? If you can not log in, you can't run your application. If you can log in, you already know the password. Could you please clarify this?Armin
-
Wednesday, August 08, 2012 7:30 PM
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Shell("net user " & Environment.UserName & " new pass") End Sub
Using this method , old password is not required
Sorry dude forgot about that, but you still wont know the old password and seeing that your situation has come to light the above method will work just fine because you are an Administrator (as you said) and need to change your password.
OT
Another thing is if you press F8 at start up and proceed to safe mode , in most cases, there will be another admin account with no password because people forget about this account, my Dad did......This usually happens with Windows XP Home Edition.
Thanks
Google Is My Friend...
- Edited by _Damien_ Wednesday, August 08, 2012 7:33 PM
- Edited by _Damien_ Wednesday, August 08, 2012 7:33 PM
- Edited by _Damien_ Wednesday, August 08, 2012 7:42 PM
- Edited by _Damien_ Wednesday, August 08, 2012 7:47 PM
- Edited by _Damien_ Wednesday, August 08, 2012 10:28 PM
- Edited by _Damien_ Wednesday, August 08, 2012 10:36 PM
- Edited by _Damien_ Thursday, August 09, 2012 1:22 PM
- Edited by _Damien_ Thursday, August 09, 2012 1:23 PM
- Edited by _Damien_ Thursday, August 09, 2012 1:27 PM
-
Wednesday, August 08, 2012 7:39 PMYes please clarify, have you modified a certain file so that when you press shift a certain amount of times at the logon screen, the CMD pops up? and if you have done something similar then i see no reason as to why you cant reset your password as well..
Google Is My Friend...And the truth is always more believable than a lie....
- Edited by _Damien_ Wednesday, August 08, 2012 8:20 PM
-
Wednesday, August 08, 2012 9:56 PMFor clarification, if you "Find" the password, then there is no reason to "Unencrypt". With sufficient power and time, you can accomplish anything, including trying billions of passwords. I never said it would be easy or useful to try this. I agree with everyone that the scenario makes absolutely no sense.
--
Mike -
Thursday, August 09, 2012 5:06 AM
AFAIK
There are 2 situations with a different aproach ..
1. You are on a domain network and a user has the problem that he forgot his password , no problem the sysadmin can solve this he can reset the password from his console for anny domain user or create a new account ( we can even write code in anny .net language to do that ) .
2. Your computer is a standalone computer and only has one Adminsitrator account you don`t know the password of that one account and you want to enter that computer you do not have a password recovery disk etc etc
Well in that case there are bootable cd-roms ( for free ) availlable on the web with a linux distro and apps that can clear the password and let you create a new one however the original user will always notice that cause he is locked out with his original password
-
Thursday, August 09, 2012 9:35 AM
My understanding is now that you want to be automatically logged on when your computer starts ? If yes see http://pcsupport.about.com/od/windows7/ht/auto-logon-windows-7.htm
If not I suggest to explain what you are trying to do rather than how you think it should be done. Under normal circumstances, the password can be changed by a user (knowing the old password) or an admin (doesn't have to know the old password, the idea is that the user will notice his password was changed so even if an admin used this to gain some access to private user data, the user will known and in most cases the admin is trusted anyway). Else this is done using brute force (but then it seems this is not YOUR password).
Please always mark whatever response solved your issue so that the thread is properly marked as "Answered".
-
Monday, August 13, 2012 7:05 PM
clarification windows xp is easy to hack i can hack it and got to my desktop as if i am logged in.
i can then do anything i could if i am logged in.
-
Monday, August 13, 2012 7:13 PM
clarification windows xp is easy to hack i can hack it and got to my desktop as if i am logged in.
i can then do anything i could if i am logged in.
Depends on what you believe is hacking ,,, i have a Windows 7 Mediacenter that logs on automaticly on booting up , but that doesn`t mean it is hacked ,,, Hacking is when you are able to logon at my computer when i am away AFAIK you can`t do this since Windows 2000 ...
The only way i know works is resetting the password , but if a user has implemented standard File encryption then these files will be permanently gone :-| so watch out using this technique also
I still don`t understand your "reall" problem .....actually .... so i guess we have a comunication disturbance here
My Code gallery contributions
My site
My Linkedin Profile
- Edited by Michel Posseth Monday, August 13, 2012 7:15 PM typo
-
Monday, August 13, 2012 7:37 PMon windows xp home edition 64 bit operating system there are ways to get the result of logging in with out ever entering a correct password. i am implementing one if these holes in the programing.

