P2PClients
Compoundv1.1
Author: Andrew Rathbun
description
P2P Clients
includes (6)
paths
12 pathsfrom 6 targets
› paths use Windows environment syntax
collection commands
# PowerShell Artifact Collection Script
# Target: P2PClients
# Run as Administrator
#Requires -RunAsAdministrator
$ErrorActionPreference = "Continue"
$SourceRoot = "C:"
$DestBase = "D:\Evidence"
$Summary = @{ Copied = 0; Missed = 0; Errors = 0 }
function Collect-Artifact {
param(
[Parameter(Mandatory)][string]$SourceDir,
[Parameter(Mandatory)][string]$FolderName,
[string]$FileMask = "*"
)
# Expand wildcards in any path segment (e.g. 'Program Files*',
# 'ScreenConnect Client*'). robocopy itself does not glob the source.
$sources = @(Get-Item -Path $SourceDir -ErrorAction SilentlyContinue |
Where-Object { $_.PSIsContainer })
if ($sources.Count -eq 0) {
$Summary.Missed++
return
}
$FullDest = Join-Path -Path $DestBase -ChildPath $FolderName
$null = New-Item -ItemType Directory -Force -Path $FullDest -ErrorAction SilentlyContinue
foreach ($src in $sources) {
robocopy $src.FullName "$FullDest" "$FileMask" /E /COPY:DAT /R:0 /W:0 /NP /NFL /NDL /NJH /NJS 2>$null | Out-Null
if ($LASTEXITCODE -le 7) { $Summary.Copied++ } else { $Summary.Errors++ }
}
}
# 1. eMule part.met files
Collect-Artifact -SourceDir "C:" -FileMask "*.part.met" -FolderName "eMule_part_met_files"
# Iterate every user profile under the source drive
Get-ChildItem "$SourceRoot\Users" -Directory -ErrorAction SilentlyContinue |
Where-Object { $_.Name -notin @('All Users', 'Default', 'Default User', 'Public') } |
ForEach-Object {
$UserName = $_.Name
# DC++ Chat Logs
$UserPath = "$($_.FullName)\AppData\Local\DC++\Logs"
Collect-Artifact -SourceDir $UserPath -FolderName "DC_Chat_Logs_$UserName"
# eMule Logs and Configuration Files
$UserPath = "$($_.FullName)\AppData\Local\eMule"
Collect-Artifact -SourceDir $UserPath -FolderName "eMule_Logs_and_Configuration_Files_$UserName"
# FrostWire Downloads
$UserPath = "$($_.FullName)\Documents\FrostWire\Torrent Data"
Collect-Artifact -SourceDir $UserPath -FolderName "FrostWire_Downloads_$UserName"
# FrostWire AppData
$UserPath = "$($_.FullName)\.frostwire5"
Collect-Artifact -SourceDir $UserPath -FileMask "frostwire.props" -FolderName "FrostWire_AppData_$UserName"
# FrostWire AppData
$UserPath = "$($_.FullName)\.frostwire5"
Collect-Artifact -SourceDir $UserPath -FileMask "itunes.props" -FolderName "FrostWire_AppData_$UserName"
# Gigatribe Files Windows Vista/7/8/10
$UserPath = "$($_.FullName)\AppData\Local\Shalsoft"
Collect-Artifact -SourceDir $UserPath -FolderName "Gigatribe_Files_Windows_Vista_7_8_10_$UserName"
# Gigatribe Files Windows XP
$UserPath = "$($_.FullName)\*\Application Data\Gigatribe"
Collect-Artifact -SourceDir $UserPath -FolderName "Gigatribe_Files_Windows_XP_$UserName"
# Gigatribe Files Windows XP
$UserPath = "$($_.FullName)\*\Application Data\Shalsoft"
Collect-Artifact -SourceDir $UserPath -FolderName "Gigatribe_Files_Windows_XP_$UserName"
# Shareaza Logs
$UserPath = "$($_.FullName)\AppData\Roaming\Shareaza"
Collect-Artifact -SourceDir $UserPath -FolderName "Shareaza_Logs_$UserName"
# Soulseek Chat Logs
$UserPath = "$($_.FullName)\AppData\Local\SoulseekQt\Soulseek Chat Logs"
Collect-Artifact -SourceDir $UserPath -FolderName "Soulseek_Chat_Logs_$UserName"
# Soulseek Search History/Shared Folders/Settings
$UserPath = "$($_.FullName)\AppData\Local\SoulseekQt\1"
Collect-Artifact -SourceDir $UserPath -FileMask "*.dat" -FolderName "Soulseek_Search_History_Shared_Folders_Settings_$UserName"
}
Write-Host ("Collection complete. Copied: {0} Missed: {1} Errors: {2}" -f $Summary.Copied, $Summary.Missed, $Summary.Errors) -ForegroundColor Green› Save as .ps1 and run as Administrator. Use: powershell -ExecutionPolicy Bypass -File script.ps1
Note: This is a compound target that references 6 other targets. The KAPE command resolves them natively; the PowerShell/Batch/WSL scripts flatten every referenced path into explicit copy commands.