Slashdot Mirror


Ophcrack Says Your Password Is Insecure

javipas writes "An insightful article at Jeff Atwood's Coding Horror reveals the power inside Ophcrack, an Open Source program that is capable of discovering virtually any password in Windows operating systems. The article explains how passwords get stored on Windows using hash functions, and how Ophcrack can generate immense tables of words and letter combinations that are compared to the password we want to obtain. The program is available in Windows, Mac OS and Linux, but be careful: the generated tables that Ophcrack uses are really big, and you should allow up to 15 Gbytes to store these tables."

32 of 249 comments (clear)

  1. There's no way they're getting my password! by eln · · Score: 4, Funny

    Ha, I've got these fools beat! I don't even USE a password on my Windows box. I'd like to see you try and crack MY password!

    1. Re:There's no way they're getting my password! by Anonymous Coward · · Score: 3, Informative

      echo -n "" | md5
      d41d8cd98f00b204e9800998ecf8427e

      His password is nothing, not a newline.

    2. Re:There's no way they're getting my password! by eln · · Score: 4, Funny

      norad:~# You may be able to crack it, but you're cheating. Clearly, working at NORAD you have access to ultra top-secret military-grade cryptographic techniques not available to your average cracker.
    3. Re:There's no way they're getting my password! by ceeam · · Score: 5, Interesting

      You laugh but Windows indeed blocks some operations when no password is assigned. So - no password sometimes may be better than crackable password.

    4. Re:There's no way they're getting my password! by pegr · · Score: 5, Informative

      Got it.

      norad:~# echo "" | md5sum
      68b329da9893e34099c7d8ad5cb9c940 -


      Actually, it's:
      Password:
      LM Hash: AAD3B435B51404EEAAD3B435B51404EE
      NT Hash: 31D6CFE0D16AE931B73C59D7E0C089C0

      Windows password hashes are not MD5...

      Brought to you by the "genhash" utility of the PassTheHash toolkit for Windows. (Google it, it's awesome.)

    5. Re:There's no way they're getting my password! by AuMatar · · Score: 3, Funny

      Given the government's computer security, I'm fairly sure NORAD *IS* available to the average hacker.

      --
      I still have more fans than freaks. WTF is wrong with you people?
    6. Re:There's no way they're getting my password! by vux984 · · Score: 4, Insightful

      IMO There is absolutely no point in having a login password for stand-alone machines as it is TRIVIAL to bypass with something as easy as a boot CD/floppy that just resets the passwords, as long as you have physical access to the box, (or just yank out the hard drive and remount somewhere else).

      IMO There is absolutely no point in having a lock on a bathroom door, as it is TRIVIAL to bypass with something as simple as a small screwdriver.

      Oh wait, yet, despite that, it is remarkably effective at keeping people out while your in there.

      Many locks and passwords are more symbolic than anything else. Most people respect the implied privacy requested by a lock or password. Even if they know they could circumvent it trivially, they don't do it.

    7. Re:There's no way they're getting my password! by StikyPad · · Score: 3, Funny

      More importantly, just like the bathroom, you generally need physical access to the machine (short of some remote exploit, trojan, rootkit, etc., in which case your password is irrelevant anyway). It's a well known axiom that if an attacker has physical access to a machine, all bets are off.

  2. This is news? by Lord_Frederick · · Score: 3, Insightful

    How long have rainbow tables been around? And hasn't just about everyone stopped storing LM hashes?

    1. Re:This is news? by CastrTroy · · Score: 3, Interesting

      I remember once I tried a Linux bootable floppy that was supposed to be able to reset windows passwords, from what I recall, by just changing the value of the hash. Anyway, the drive was NTFS, and something got screwed up, and the file was unreadable. What I ended up doing was copying the same file from a computer with a similar set up (both were college issued laptops), and use the other person's username as password to log in. Anybody with enough access to the machine can get past a simple password. And unless you keep all your important data on an encrypted partition, and use encrypted swap (can you do this in windows??), then you really don't have much protection, and shouldn't assume that the data on your computer is locked down.

      --

      Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
  3. So... by InvisblePinkUnicorn · · Score: 4, Funny

    So basically, if I want to find out the passwords on someone else's computer, I have to bring along a high capacity DVD's-worth of data as well? I might as well just pretend I'm their tech support and ask for the password.

    Back in the day, getting Windows passwords was as easy as opening a program from a floppy. That's how I got an A in Spanish class when the teacher challenged us to guess what his screensaver password was (the prize was an A for the year - dumb teacher).

    1. Re:So... by jayhawk88 · · Score: 5, Insightful

      The point is that it can get the password in under 5 minutes. You could bring along something like L0pht, and then wait 2 weeks while it brute forces it.

    2. Re:So... by Anonymous Coward · · Score: 5, Funny

      Back in the day, getting Windows passwords was as easy as opening a program from a floppy. That's how I got an A in Spanish class when the teacher challenged us to guess what his screensaver password was But then, you didn't really guess his screensaver password. So no prize should have been given to you.

      (the prize was an A for the year - dumb teacher). Pretty dumb to give away grades, I agree. But, then, no one expects the Spanish algorithm!
  4. Windows is insecure by design by Anonymous Coward · · Score: 4, Insightful


    if i have physical access to the machine and have a bootable CD i have no need to crack any passwords
    i can just reset the password and carry on, i have a customer whos 9yo girl showed me how she "cracks" her brothers password by booting in safe mode and simply removing his password
    luckliy in some ways iam glad windows is insecure, i can only imagine the hell a user (and MS) would go through when you tell them that their entire photo/music collection is toast because they forgot their 21 random character hard to remember password

    dont blame the user blame the whole crappy password concept

    1. Re:Windows is insecure by design by eln · · Score: 4, Informative

      if i have physical access to the machine and have a bootable CD i have no need to crack any passwords
      i can just reset the password and carry on, You can do this with a Linux box as well, as well as practically any other system, so I'm not sure what your point is here.

      Physical access to a box pretty much means you have root access to that box. This is why physical security is such an important part of overall system security.
    2. Re:Windows is insecure by design by Oktober+Sunset · · Score: 3, Funny

      either that or get grandpa to watch over your box with his 12 gauge day and night.

  5. Couple things by BadAnalogyGuy · · Score: 5, Funny

    "Passwords should never be saved as plaintext"

    Tell that to /etc/passwd, bitch!

    Second, if you've computed all possible hash values for all possible character combinations, then it really doesn't matter what your password is, since you only have to have the input hash to the correct hash value. Since an infinite number of character strings map to a finite number of hash values, it is only a matter of building the tables before you can hack any system.

    Third, if your only defense against this type of attack is a single password, you're screwed.

    Fourth, if you are worried about this sort of attack and you still live with your parents, it's probably not really too critical that you implement heavy-duty, multiple-hardened points on your Gentoo system right now. You'll have plenty of time to implement that sort of security after you finish your current bag of Cheetos.

  6. Test ophcrack live. by realdodgeman · · Score: 3, Informative

    Ophcrack live (CD) does not crack all windows passwords, only about 99%. Still it uses only 20 minutes and can crack passwords up to 14 characters, while running from a bootable CD. And it is horrifying how few windows sysadmins who know about this...

    1. Re:Test ophcrack live. by gad_zuki! · · Score: 3, Insightful

      First off, it certainly does not crack 99% of passwords. A reasonable password policy means it wont crack anything. Its a 700 meg CD. Its very limited. I've seen it fail on some pretty basic stuff. Esentially toss in a !@#$%^&*()_-{};',.? and its screwed.

      >And it is horrifying how few windows sysadmins who know about this...

      Well, they should be asking "Why are my PCs set up to let the end user boot a CD?" Or "Why do malicious users have physical access to our machines." With physical access youre pretty much sunk. Someone could moutn ntfs, write to the registry where its stores your admin password, and set it to null. I dont care what OS you use, physical access usually means trouble. Heck, if my portable tools cant crack it, I'll just take the hard drive home and work on it at my leisure.

    2. Re:Test ophcrack live. by realdodgeman · · Score: 4, Insightful

      It does crack 99% of used passwords, not 99% of theoretical passwords.

    3. Re:Test ophcrack live. by tkw954 · · Score: 3, Funny

      Ophcrack live (CD) does not crack all windows passwords, only about 99%

      Can you please post a list of the remaining 1% and their hashes?

    4. Re:Test ophcrack live. by krbvroc1 · · Score: 3, Funny

      No, it just makes you very flexible, perhaps double jointed.

  7. First three entries in the table by HangingChad · · Score: 5, Funny

    (blank)

    password

    password1 That formula will crack 90% of Windows passwords out there. The remaining 10% are what the other 14.999999 GB in the table are for.

    --
    That's our life, the big wheel of shit. - The Fat Man, Blue Tango Salvage
    1. Re:First three entries in the table by Rob+T+Firefly · · Score: 4, Funny

      Amazing! That's the same password I have on my luggage!

  8. Windows security.... by Mc1brew · · Score: 5, Funny

    Windows has a security feature it uses when a user attempts to create a 15Gb table called "crashing". This makes it extremely difficult to break in using the tool defined.....

  9. This is why two factor authentication is necessary by colinmcnamara · · Score: 3, Informative

    This is a prime example of the need for a multi layered security model for authentication and authorization of your systems. There are many vendors that supply two factor authentication methods (RSA being the most well known) that provide for one time passwords. Techniques like this effectively mitigate the risk of a user account compromised by use of a hash table like this. BTW, this is nothing new. Rainbow tables have been out for ages. --Colin

    --
    Colin McNamara - CCIE #18233 "The difficult we do immediately, the impossible just takes a little longer"
  10. Windows passwords Secure? by nick13245 · · Score: 5, Informative

    First of all, ophcrack only comes with alpha-numeric tables for LM hashes. If you have special characters in your password, you'll have to generate your own table, which takes a very long time, and a lot of hard drive space. Ophcrack does not have the ability to generate Rainbow tables as the article suggest... Second of all, Ophcrack only works well against LM hashes, because with LM hashes, passwords are split into 7 byte halves, then hashed. So you only have to have tables that go up to 7 characters with LM hashes. If you disable LM hashes on your Windows box, and use NTLM hashes, the entire password is hashed, and is not split up. So if you pick a good password, with special characters, that's fairly long, it will be pretty much impossible to crack if your using NTLM only. Even with rainbow tables... The problem is Windows XP (by default) stores passwords as LM and NTLM hashes. So if an attacker can get the LM hashes, they can crack your password easily. You can hack the registry and keep Windows from storing LM hashes. See http://support.microsoft.com/kb/299656

  11. Re:This is why two factor authentication is necess by RingDev · · Score: 4, Interesting

    Or simply require your users to have passwords at least 15 characters long. There was an article out of MS a year or so ago about how the "password" is dead and that "pass phrases" will take over. Not a very well written article, but it did go over the weaknesses of short passwords, hashes, and rainbow files. They are essentially the same thing, only pass phrases are longer... much longer. Instead of having to remember "HYjK))w!x%" (which, if LM Hashed, can be cracked by a rainbow file in short order) you can remember "This is the passworrd for my new computerr". No one is going to carry a 5 terrabyte rainbow file around to try to crack a password that long. And brute force would take years. Given a few spelling mistakes and a dictionary attack will fail.

    -Rick

    --
    "Most people in the U.S. wouldn't know they live in a tyrannical state if it walked up and grabbed their junk." - MyFirs
  12. There's no need to crack the password by hernano · · Score: 4, Interesting

    Hi, There's no need to crack the LM&NT hashes of a password, you can use the hash directly on windows using this tool: http://oss.coresecurity.com/projects/pshtoolkit.htm basically you can impersonate on your own windows machine any user if you have the hash, and then use your Windows machine to authenticate to services using that user's credentials. There's no need to know the cleartext password, unless you explicitly want to know the cleartext password to test it on other services that do not use NTLM authentication.

  13. Re:secure password? by zlogic · · Score: 3, Informative

    LM hashes split passwords in 8-letter chunks, and for each of them:
    1) the last symbol is removed, so the chunk becomes a 7-character password
    2) the password is uppercased (yeah, that's dumb)
    and then hashes are calculated for these chunks.
    BOTH the LM and NTLM (a much more secure hash) hashes are stored in the registry.
    So to get a typical 8-character password, you only need to guess the first 7 characters in uppercase.
    After that the more secure NTLM hash is used to guess the case of each character and the eighth character which is missing from LM.
    This means that guessing a 16-character password takes at most twice the time than for a 8-char, and not something like 40^8 times as much.

    More info here: http://en.wikipedia.org/wiki/LM_hash

  14. Re:Windows is SECURE by design. by Gazzonyx · · Score: 3, Funny
    If it's sitting on the desk, I open the box and short the CMOS for 3 seconds with its jumper, and then boot up and enter BIOS, which no longer has a password. I turn on USB and plug in my portable 80 gig drive which has all my tools. ;)


    Also, If it's windows 98, I can blue screen the thing with a con/con from the command line and hopefully you have the thing set to reboot on BSOD.

    --

    If I mod you up, it doesn't necessarily mean I agree with what you've said, sorry.

  15. Re:This is why two factor authentication is necess by SQLGuru · · Score: 4, Funny
    http://support.microsoft.com/kb/276304

    Or just force authentication against the MIT Kerberos domain.....

    Your password must be at least 18770 characters and cannot repeat any of your previous 30689 passwords. Please type a different password. Type a password that meets these requirements in both text boxes. Layne