CrowdStrike_RTR_Powershell_Scripts icon indicating copy to clipboard operation
CrowdStrike_RTR_Powershell_Scripts copied to clipboard

RECON IR Recycled bin

Open freeload101 opened this issue 3 years ago • 0 comments

Set-Variable -Name ErrorActionPreference -Value SilentlyContinue

(Get-ChildItem -Path 'C:$Recycle.Bin' -Force -Recurse) | select * | ForEach-Object {

Write-Output ($_).FullName

if ((($).Name -match '$') -and ((Get-Item ($).FullName).length -lt 500 )) {

((Get-Content ($_).FullName) -replace ".*\u0001.", "Meta: " -replace "\u0000", "")

}

}

The random file names are killing me ...I have no way to know if the random file is a metadata file or the file itself ...

freeload101 avatar Aug 18 '22 20:08 freeload101