← Back to search

/etc/passwd persistence

persistencelinuxchecklist

Summary

Append a new line to /etc/passwd with UID 0 using the generated hash for a hidden root-equivalent account.

Walkthrough

Generate an MD5 password hash and append a new root-equivalent user line to /etc/passwd.

Commands

Generate hash then append user line

bash

openssl passwd -1 <PASS>