Skip to content

Instantly share code, notes, and snippets.

#!/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:"