Persistence

Cron

Startup Scripts

Add script to run at startup: update-rc.d </path/to/the/script> defaults (needs 755 permissions)

Accounts

Add Account & Password to /etc/passwd

  • Generate password with openssl passwd -1 -salt $username $password

  • Add to /etc/passwd file which is in the format:

    • $UserName:$generated_password:$UID:$GUID:$comment:$home_dir:$default_shell

    • $comment is usually the user's Full Name. Check the /etc/passwd file to ensure you match local standards.

    • (assumes you have write privilege to this file!).

If you like this content and would like to see more, please consider buying me a coffee!

Last updated

Was this helpful?