TotalCommander
Author: Andrew Rathbun, Jessica Venturo and Chuck Whitson
description
Total Commander
paths
C:\Users\%user%\AppData\Roaming\GHISLER\wincmd.iniLocates .ini file associated with Total Commander which stores useful user activity information.
C:\totalcmd.logLocates log file associated with Total Commander. NOTE: this log file is NOT enabled by default and the filename can be modified.
C:\Users\%user%\AppData\Local\Temp\FTP*.tmpLocates .tmp files which are created during the user's folder traversal and provide insight into contents of each folder traversed.
C:\Users\%user%\AppData\Roaming\GHISLER\wcx_ftp.iniLocates .ini file associated with Total Commander which stores useful FTP information.
C:\Users\%user%\AppData\Local\GHISLER\treeinfo*.wcLocates a file that contains an exhaustive file tree of a user's file system.
C:\Users\%user%\AppData\Local\GHISLER\tcDirFrq.txtLocates a file that contains a frequently accessed folder listing.
C:\Users\%user%\AppData\Local\Temp\tcftp.logLocates a file that contains the Total Commander FTP logs.
collection commands
# PowerShell Artifact Collection Script
# Target: TotalCommander
# Run as Administrator
#Requires -RunAsAdministrator
$ErrorActionPreference = "SilentlyContinue"
$DestBase = "D:\Evidence"
# Function to handle directory creation and copying
function Collect-Artifact {
param (
[string]$SourcePath,
[string]$FolderName
)
$FullDest = Join-Path -Path $DestBase -ChildPath $FolderName
if (-not (Test-Path -Path $FullDest)) {
New-Item -ItemType Directory -Path $FullDest -Force | Out-Null
}
Copy-Item -Path $SourcePath -Destination $FullDest -Recurse -Force
}
# 1. Total Commander - .ini File
$UserPath = Join-Path $env:USERPROFILE "AppData\Roaming\GHISLER\"
Collect-Artifact -SourcePath "$UserPath\wincmd.ini" -FolderName "Total_Commander____ini_File"
# 2. Total Commander - Log File
Collect-Artifact -SourcePath "C:\\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 -SourcePath "$UserPath\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 -SourcePath "$UserPath\wcx_ftp.ini" -FolderName "Total_Commander___FTP__ini_File"
# 5. Total Commander - File Tree
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\GHISLER\"
Collect-Artifact -SourcePath "$UserPath\treeinfo*.wc" -FolderName "Total_Commander___File_Tree"
# 6. Total Commander - Frequent Directory Listing
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\GHISLER\"
Collect-Artifact -SourcePath "$UserPath\tcDirFrq.txt" -FolderName "Total_Commander___Frequent_Directory_Listing"
# 7. Total Commander - FTP Logs
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Temp\"
Collect-Artifact -SourcePath "$UserPath\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