spechal.com | [spesh-uhl]

CAT | Security

189 views

So you’ve logged into a Linux machine but you don’t want anyone to know you were there. Why? Who cares. Here are a couple of things to clean up your tracks.

Once you log in, you’ll notice that message that tells you the last time and location you logged in from. To get rid of that, we need to clear out /var/log/wtmp and /var/log/lastlog. We can do that easily with cat > /var/log/wtmp and cat > /var/log/lastlog

To clear out the command history, execute history -c

Hope that helps!

No tags

Find it!

Theme Design by devolux.org