Skip to content

Instantly share code, notes, and snippets.

@ph00lt0
Last active February 19, 2022 14:29
Show Gist options
  • Select an option

  • Save ph00lt0/0a7effd5256e58d610a0a7f183d4cbf8 to your computer and use it in GitHub Desktop.

Select an option

Save ph00lt0/0a7effd5256e58d610a0a7f183d4cbf8 to your computer and use it in GitHub Desktop.
Create new users on pentest3@ISG Royal Holloway
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
@ph00lt0

ph00lt0 commented Feb 19, 2022

Copy link
Copy Markdown
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