Last active
February 19, 2022 14:29
-
-
Save ph00lt0/0a7effd5256e58d610a0a7f183d4cbf8 to your computer and use it in GitHub Desktop.
Create new users on pentest3@ISG Royal Holloway
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
| user=$(cat /dev/urandom | tr -dc 'a-z' | fold -w 32 | head -n 1) | |
| password=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| printf "$user\n$password\n$password\n\n\n\n\nY\n" | ssh new@pentest3 | |
| echo "username: $user" | |
| echo "password: $password" | |
| echo "----" | |
| echo "ssh $user@pentest3" | |
| ssh $user@pentest3 |
Author
Author
Remember you need to be in CIM env in order to be able to ssh into these.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Automagically lets you create a new user and password for pentest3 server and prompts you for login. Saves a couple of your minutes every day.