dfirhub

pCloudDatabase

Author: Josh Hickman

description

pCloud Database

paths

3 paths
AppspCloud Database
C:\Users\%user%\AppData\Local\pCloud\*.db

Database contains all files sync'd with pCloud account.

AppspCloud Database WAL File
C:\Users\%user%\AppData\Local\pCloud\*.db-wal

Write-Ahead Log for pCloud database file.

AppspCloud Database Shared Memory File
C:\Users\%user%\AppData\Local\pCloud\*.db-shm

Shared Memory for the pCloud database file.

paths use Windows environment syntax

collection commands

# PowerShell Artifact Collection Script
# Target: pCloudDatabase
# 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. pCloud Database
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\pCloud\"
Collect-Artifact -SourcePath "$UserPath\*.db" -FolderName "pCloud_Database"

# 2. pCloud Database WAL File
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\pCloud\"
Collect-Artifact -SourcePath "$UserPath\*.db-wal" -FolderName "pCloud_Database_WAL_File"

# 3. pCloud Database Shared Memory File
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\pCloud\"
Collect-Artifact -SourcePath "$UserPath\*.db-shm" -FolderName "pCloud_Database_Shared_Memory_File"

Write-Host "Collection complete!" -ForegroundColor Green

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

references

included in collections