TotalCommander

Appsv1.4

Author: Andrew Rathbun, Jessica Venturo and Chuck Whitson

description

Total Commander

paths

7 paths
paths use Windows environment syntax

collection commands

# PowerShell Artifact Collection Script
# Target: TotalCommander
# Run as Administrator

#Requires -RunAsAdministrator

$ErrorActionPreference = "SilentlyContinue"
$DestBase = "D:\Evidence"

# Function to handle artifact collection with robocopy
function Collect-Artifact {
    param (
        [string]$SourceDir,
        [string]$FolderName,
        [string]$FileMask = "*"
    )
    $FullDest = Join-Path -Path $DestBase -ChildPath $FolderName
    robocopy "$SourceDir" "$FullDest" "$FileMask" /E /COPY:DAT /R:0 /W:0 /NP /NFL /NDL /NJH /NJS | Out-Null
}

# 1. Total Commander - .ini File
$UserPath = Join-Path $env:USERPROFILE "AppData\Roaming\GHISLER\"
Collect-Artifact -SourceDir "$UserPath" -FileMask "wincmd.ini" -FolderName "Total_Commander____ini_File"

# 2. Total Commander - Log File
Collect-Artifact -SourceDir "C:\" -FileMask "totalcmd.log" -FolderName "Total_Commander___Log_File"

# 3. Total Commander - Temp Files Created During Folder Traversal
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Temp\"
Collect-Artifact -SourceDir "$UserPath" -FileMask "FTP*.tmp" -FolderName "Total_Commander___Temp_Files_Created_During_Folder_Traversal"

# 4. Total Commander - FTP .ini File
$UserPath = Join-Path $env:USERPROFILE "AppData\Roaming\GHISLER\"
Collect-Artifact -SourceDir "$UserPath" -FileMask "wcx_ftp.ini" -FolderName "Total_Commander___FTP__ini_File"

# 5. Total Commander - File Tree
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\GHISLER\"
Collect-Artifact -SourceDir "$UserPath" -FileMask "treeinfo*.wc" -FolderName "Total_Commander___File_Tree"

# 6. Total Commander - Frequent Directory Listing
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\GHISLER\"
Collect-Artifact -SourceDir "$UserPath" -FileMask "tcDirFrq.txt" -FolderName "Total_Commander___Frequent_Directory_Listing"

# 7. Total Commander - FTP Logs
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Temp\"
Collect-Artifact -SourceDir "$UserPath" -FileMask "tcftp.log" -FolderName "Total_Commander___FTP_Logs"

Write-Host "Collection complete!" -ForegroundColor Green

Save as .ps1 and run as Administrator. Use: powershell -ExecutionPolicy Bypass -File script.ps1

references

included in collections