Hackosis is an Open Blog. You Can Participate.

  • 10
  • Jul

Have you ever changed or forgotten your Windows password? Fear not because I have the solution for you - and its completely free.

Access Denied

The following method works on Windows XP and Vista.

All you need is a Linux live CD (that auto mounts Windows partitions - ex. Ubuntu, Backtrack, Fedora, openSUSE).

Save the .iso and burn it to a disc.

Boot from the CD and follow these simple instructions - these instructions are assuming your are using backtrack, but should be similar for other Linux distributions:

  1. Open a Linux terminal and enter the following commands:
  2. cd /mnt
  3. ls (Take note of the folders listed here. You might need them in the next step.)
  4. cd sda1/Windows/System32/ (If this didn’t work you might have the wrong hard drive, try replacing ’sda1′ with sda2, hda1, or hda2)
  5. mv utilman.exe utilman.old && cp cmd.exe utilman.exe
  6. reboot (and remove the CD)
  7. Once rebooted, at Vista or XP log in screen, Press Windows key + U to run CMD with system privileges. Replace username below with the one of your choice - it must not already exist!
  8. c:\>net user username mypassword /add
  9. c:\>net localgroup administrators username /add
  10. Log in with the new admin account!

After completing don’t forget to copy the utilman.old back to utilman.exe or you will leave your system vulnerable - this is very important!!

I hope this helped in regaining access into your XP or Vista PC and if you know of any other tips like this please let us know in the comments.

UPDATE: Here is a backtrack video tutorial that covers the instructions.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Related Posts


Tags: , , , , , , ,

Like this post? Subscibe to the RSS feed.


14 Comments

  1. zuss Says:

    Yellow,

    This is a great tip, if i may dare to complement your post.

    i believe that this hack will only work if the HDD is not write protected witch is normal in enterprise environment (i have already come face to face to this problem).

    In this case, is not easy (not to say impossible) to mount an NTFS partition on Linux. After “googling” a while a came across with this links usefull links,

    [1] http://www.petri.co.il/forgot_administrator_password.htm#20
    [2] http://www.petri.co.il/reset_domain_admin_password_in_windows_server_2003_ad.htm
    [3] http://www.password-changer.com/screens.htm (this is not a freeware)
    [4] home.eunet.no/pnordahl/ntpasswd/ (this is a freeware)

    if you read some blogs and some posts on the subject, you will realize that windows stores passwords in a file (i can not remember the location of the file and i do not want to search it at this time) as a known hash so, with a little work and the use of “jonh the ripper” you can crack the admin password, and/or change it.

    note: this should be only use to:
    1st - prove how stupidly fast and easy is to hack into a windows machine, and you do not have to know nothing more than open you browser
    2nd - prove why windows should not be used in enterprise/productions environments and other places where you store sensitive information
    3rd - prove why *nix is better (until this day i never managed to hack into a *nix workstation)
    4th - it is WRONG to hack in to workstations with out permission to do so.

  2. Shane Says:

    Zuss, thanks for the great feedback. I wish more people left as valuable comments as this.

    Thanks again for stopping by.

  3. daniel Says:

    Hi!

    Great post. Will come handy next time I can’t find my OphCrack CD’s :)

    /daniel

  4. zuss Says:

    i shane,

    i’m glad to share my experience.

  5. Teufel Says:

    I would recommend PCLogin (http://www.pcloginnow.com/). Its a freeware and also easy to use. No need to remember commands at all.

  6. Mayur Says:

    Thanks for the Tip :D
    PC Login is simply easy in comparison to this …

  7. Shane Says:

    [changefrom]I hope this helped in regaining access into your XP or Vista PC and if you know of any other tips like this please let us know in the comments.[/changefrom]

    [changeto]I hope this helped in regaining access into your XP or Vista PC and if you know of any other tips like this please let us know in the comments.

    UPDATE: Here is a backtrack video tutorial that covers the instructions.[/changto]

    **CHANGED**

  8. Ryan Says:

    Everyone keeps saying how Windows is less secure because of this. The fact of the matter remains that if any system is not physically secured, an attack like this is possible. Any Linux box can be compromised in a similar way if you have access to the keyboard and the monitor.

  9. Shane Says:

    True. You can do much the same on some Linux distros by booting to single user mode. ;)

  10. thenetguruz Says:

    I simply don’t use any password for windows admin account, I lock my pc in my room :D
    Anyways nice trick, even though its little long., trick is trick.

  11. Ryan Says:

    You don’t have a password set for your admin account on an internet connected Windows PC? Asking for trouble, I’d say…

  12. Shane Says:

    Ryan,

    Actually it is better to have no password than a weak password, so I have heard.

  13. Ryan Says:

    Well actually, if you think about it, Windows won’t allow access over the network for accounts that don’t have a password, so this might work…

    Confirmed from Microsoft… Interesting…
    http://www.microsoft.com/protect/yourself/password/create.mspx

  14. Vista Password Recovery - Club3G Forums Says:

    [...] Alright, try this one. Lost Windows Password? Regain Access with Linux | Hackosis [...]

Leave a Comment