Password Authentication
Last updated
Last updated
The /etc/passwd
file can contain password hashes directly instead of an x
, indicating that the password hash is stored in /etc/shadow
. If /etc/passwd
is writable, it allows the creation of arbitrary users with root privileges.
generate a hash using openssl
Edit the /etc/passwd
file
Login to the newly created user with root previliges