痕迹清理

前言:许久没更新文章了,这次给一个痕迹清理的命令吧

Windows

新建一个.bat复制下面的代码

@echo off

'wevtutil.exe cl Application
'wevtutil.exe cl Security
'wevtutil.exe cl System

rem wevtutil.exe sl Microsoft-Windows-LiveId/Operational /ca:O:BAG:SYD:(A;;0x1;;;SY)(A;;0x5;;;BA)(A;;0x1;;;LA)
rem wevtutil.exe sl Microsoft-Windows-LiveId/Analytic /ca:O:BAG:SYD:(A;;0x1;;;SY)(A;;0x5;;;BA)(A;;0x1;;;LA)

for /f "tokens=*" %%i in ('wevtutil.exe el') do wevtutil.exe cl "%%i"
pause

Linux

主要是清理目录,可以将下面的命令写成shell脚本

rm -f /var/log/lastlog
rm -f /var/log/wtmp
rm -f /var/log/btmp
rm -f /var/log/utmp
rm -f /var/log/secure
rm -f /var/log/auth.log

 

点赞
  1. GeorgeImago说道:
    Google Chrome Windows 7
    And how in that case it is necessary to act? yinyleon

发表评论

电子邮件地址不会被公开。必填项已用 * 标注