Monday, May 21, 2012

Becoming an administrator on a Mac (hacking method)

Sup readers! I hope this is not going to be like my other blogs, which I created and then deleted because I never posted anything on them. So, to avoid that unfortunate condition, I have decided to start posting today with an all-time favorite hack that I use countless times at school. (Don't tell anyone!)

Today, you are going to learn how to become an administrator on a Mac of any kind - without knowing any passwords. So, you could just see a Mac laying somewhere and, within two or three minutes (if you are good at it), you can be an administrator on that computer. The first thing that I want to mention (so that no one is disappointed) is that this method requires physical access to the Mac that is to be hacked. (Otherwise, I will have people saying fuck you and stuff in the comments because they can't hack their brother's Mac from their bedroom.) The next thing that I want to say is that you should get a pen and a piece of paper, because there are some long things to type.

Btw, I may be adding screenshots or pictures later, but I can only hack a Mac so often, so...

Step One

The first step is to enter what we geeks call single-user mode. First, shut down the Mac (if it is on). Then, press and hold CMD+S while turning the Mac on. You can let go of CMD-S once you see a black screen with text scrolling down it. Congratulations! You have completed the second easiest step of the process.

Step Two

Now for the hard part (the part where you need the pen and paper). When the text has finished scrolling down the screen and you see a short line of text at the bottom, followed by a blinking cursor, type:
mount -a
and press enter. Then, type:
launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
and press enter. Now, simply type:
passwd
and press enter. It should say:
Changing password for user root.
New password:
Type a password that you can remember. No text will show up; that is normal. When you finish typing the password, press enter. It will ask you for the password again; type it exactly as you did the first time. When you are done, hopefully it will say:
passwd: all authentication tokens updated successfully
unless something went wrong, usually because you typed the password incorrectly one of the times. If you did, hit the up arrow key and press enter to start passwd again.

Step Three

Now for the easiest part. Type:
exit
and press enter. Text will scroll down the screen, and the computer will reboot. Wait until you get to the login screen. If you did everything correctly, there should be an option at the bottom of the login screen that says "other." Click it. It should say "name" and "password." In the "name" box, type "root" (without the quotes). In the "password" box, type your password. It should log you in.

Step Four

This really isn't a step, but I wanted to put it here anyway: use your new-found administrative power irresponsibly and change the passwords to other users, delete their files, and make the system unusable. After all, without that, it isn't real hacking, is it?

Have fun!

1 comment: