The goal of this lab is to find traces of your presence in the system logs and remove them.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Find your public IP address.
- Become `root`.
Run the following command:
sudo -i
- Open the `/var/log/secure` log file.
Run the following command:
vim /var/log/secure
- Find all entries containing your IP address.
Run the following command:
/<IP ADDRESS>
- Remove all traces of your presence.
- Press
i
to edit the log file. - Delete all entries containing your IP address.
- Press
- Save the changes and close the log file.
Run
:wq
in vim.- Log out.
Run the following command:
exit