View Single Post
antivirus1

 
Member Since: Jun 24, 2008
Posts: 1
antivirus1 is on a distinguished road

antivirus1 is offline
Quote:
Originally Posted by savers View Post
would any of this work?/
--------------------------------------------------------------------------------

if it's running os x and there isn't a firmware password, you can change the password or get the hash in a couple of minutes. well not if the computer is running 10.3, the single user mode locks up if you try to get the hash or change the password. provided the computer is running any os x lower that 10.3 you just do the following:

1) boot up holding the apple + s keys
2) type /sbin/mount -uw / (you don't need to run the /sbin/fsck -y /)
3) type /sbin/systemstarter
4) either type passwd (account goes here) to change the password
or type nidump passwd . to get the hash to brute force if you want to
be a little more subtle with the whole hacking thing.

-------------------------------------------------------------------

you type nidump -r /users/<whatever adminname>/passwd /

to dump the password hash

PLUS, WHY BOTHER TO TAKE 8 HOURS OF YOUR TIME WHEN YOU CAN REMAKE YOUR PASSWORDS VIA NIUTIL.

this just drives me up th wall

use openssl passwd <new password>

niutil -destroyprop /users/<whater admin name> passwd

niutil -createprop /users/<whatever admin name> passwd <hash above>

seriously, you guys need to explore NetInfo commands more.

---------------------------------------------------------------------


The Mac uses the NetInfo database as a password file instead of /etc/passwd. You add new users to the NetInfo database using the nidump and niload commands. For example, as root:

# cd /tmp
# nidump passwd . > passwd.new

This will dump the contents of the NetInfo passwd table into passwd.new. Edit passwd.new to add users, e.g. to add user smith you would add a line something like:

smith::12434:200:0:0::Joe Smith:/afs/www.google.com:/bin/tcsh

Load the file back into the Netinfo database with the command:

# niload passwd . < passwd.new


To modify a password entry, edit the file passwd.new to make the necessary changes, and load it into the NetInfo database with the command:

# niload -d passwd . < passwd.new

----------------------------------------------------------------
Hold cmd s is not working for me.. I have an iMac a1224
QUOTE Thanks