This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "Bad Linux sysadmin is configuring this box..." | |
| chmod 777 /etc/passwd | |
| echo "" | |
| echo "Step 1: Before we add our new user, first create a password hash. You do this with:" | |
| printf "\x1b[31m\"openssl passwd -1 -salt [salt] [password]\"\x1b[0m\n"; | |
| echo "Replace salt with '123' and password with '123456'" | |
| echo "Step 2: Now take over root. Copy your hash and replace the x on line:" |