Home Pentesting - Persistence
Post
Cancel

Pentesting - Persistence

Creating a user and add it on sudoers

Create user

1
adduser <user>

Create password

1
passwd <password>

Add to sudoers with all privileges

1
echo "<user> ALL=(ALL) ALL" >> /etc/sudoers

Migrate the Process

Migrate the process to one of root

1
migrate <ProcessID>
This post is licensed under CC BY 4.0 by the author.