Home .bashrc
Post
Cancel

.bashrc

.bashrc

If a user has bash as their login shell, the “.bashrc” file in their home directory is executed when an interactive session is launched

Exploitation

We are going to leverage .bashrc file to achieve persistence. We will create a reverse shell payload and add it to .bashrc file so that to be executed automatically when user logs in.

linpriv

Now , we will setup our reverse shell listener and wait for a root user to logs in.

linpriv

This post is licensed under CC BY 4.0 by the author.