How to Hack a Mac in 10 Minutes – I Was Surprised How Easy It Is

For anyone who knows me, I hate Mac’s, and anything made by Apple. In fact, I’ve never purchased any product from Apple, ever! I also hate using them, but sometimes you are forced to.

Today, I was given an iMac where the Administrator account was somehow deleted. Therefore, without the Administrator account, you can’t install applications for users and do a whole bunch of other things.

I was tasked two perform a factory reset and get the iMac working again. However, in the process, I learnt how easy it is to access files on the computer without having access to any passwords – even if the computer is password protected. This is also a great tutorial if you need to reset your Mac’s password.

Hacking an iMac – Creating an Administrator Account

Step one in the process is to create a new Administrator account. This is fairly easy to do. Just shutdown the computer, and when turning it on, hold the command key and hold “s”.

This opens your iMac in an environment called “Single User Mode”. Once you have booted into it, type: /sbin/mount -uw /

This will mount your startup drive, so you can access system files and folders.

Now type: rm /var/db/.AppleSetupDone

Then type the following to restart your computer: reboot

This command removes a file which tells the Mac on startup that it needs to run the “First Setup”. Once your Mac has booted, you will be promoted to create the new Administrator account – just as your Mac’s brand new!

Hacking an iMac – Accessing Files

Now, you can log into your iMac newly created Administrator account. However, if you browse to the “User’s” folder, you may notice you can’t access any files.

Another simple fix…

  • Right Click on the User’s folder, and select “Get Info”
  • Expand Sharing & Permissions
  • Add your user account and give it the permission of “Read / Write”
  • Click on the settings cog dropdown and click “Apply to enclosed items…”

This will give you Read / Write permission to all files in the user’s directory.

Doing this, probably took me no more than 10 minutes and I got access so everything on the Mac. I would then also be able to reset the user’s password to log into there account, in which I could access Google Chrome’s password manager, and even the Keychain to access other passwords for emails and Facebook etc.

I have a huge list of the reasons why I don’t like Mac’s, and this is just one of the two reasons I added to my list today. The second one was how you charge a Mac’s mice – You can’t use it while you charge it… WTF? And here I thought Apple focuses on usability…

Sorry boss, I can’t do any work as my mouse is flat and I can’t charge it and use it at the same time, nor replace the batteries…

Performing the factory reset

For those also wanting to know how to factory reset your Mac, it’s as simple as holding the Command and “R” key this time during startup. You can then enter the Disk Utility in which you can “Erase” your hard drive, and then click the “Reinstall macOS”.

More information can be found here: https://support.apple.com/en-au/HT201314

 

Comments

  1. By Samantha

    Reply

Leave a Reply