ZohoAssist

Appsv1.1

Author: Andrew Rathbun

description

Zoho Assist artifacts

paths

7 paths
paths use Windows environment syntax

collection commands

# PowerShell Artifact Collection Script
# Target: ZohoAssist
# 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. Zoho Assist log files in ProgramData
Collect-Artifact -SourceDir "C:\ProgramData\ZohoMeeting\log" -FolderName "Zoho_Assist_log_files_in_ProgramData"

# 2. Zoho Assist .conf files
Collect-Artifact -SourceDir "C:\ProgramData\ZohoMeeting" -FileMask "*.conf" -FolderName "Zoho_Assist_conf_files"

# 3. Zoho Assist log files in Program Files*
Collect-Artifact -SourceDir "C:\Program Files*\ZohoMeeting\UnAttended\ZohoMeeting\logs" -FolderName "Zoho_Assist_log_files_in_Program_Files"

# 4. Zoho Assist .conf files in  Program Files*
Collect-Artifact -SourceDir "C:\Program Files*\ZohoMeeting\UnAttended\ZohoMeeting" -FileMask "*.conf" -FolderName "Zoho_Assist_conf_files_in_Program_Files"

# 5. Zoho Assist .txt files in  Program Files*
Collect-Artifact -SourceDir "C:\Program Files*\ZohoMeeting\UnAttended\ZohoMeeting" -FileMask "*.txt" -FolderName "Zoho_Assist_txt_files_in_Program_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
        # Zoho Assist log files in AppData\Local
        $UserPath = "$($_.FullName)\AppData\Local\ZohoMeeting\log"
        Collect-Artifact -SourceDir $UserPath -FolderName "Zoho_Assist_log_files_in_AppData_Local_$UserName"
        # Zoho Assist .conf files in AppData\Local
        $UserPath = "$($_.FullName)\AppData\Local\ZohoMeeting"
        Collect-Artifact -SourceDir $UserPath -FileMask "*.conf" -FolderName "Zoho_Assist_conf_files_in_AppData_Local_$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

references

notes

Logs appear to be in local time, NOT UTC

Examples of files that can be found:

C:\Users\%user%\AppData\Local\ZohoMeeting\Connection.conf

C:\Users\%user%\AppData\Local\ZohoMeeting\log\ACServer.log

C:\Users\%user%\AppData\Local\ZohoMeeting\log\Connect.log

C:\Users\%user%\AppData\Local\ZohoMeeting\log\LogFile1.log

C:\Users\%user%\AppData\Local\ZohoMeeting\log\LogFile2.log

C:\Users\%user%\AppData\Local\ZohoMeeting\log\LogFile3.log

C:\Users\%user%\AppData\Local\ZohoMeeting\log\LogFileTemp.log

C:\Users\%user%\AppData\Local\ZohoMeeting\log\ScreenSharingModule.log

C:\Users\%user%\AppData\Local\ZohoMeeting\log\SessionAuditReport_XXXXXXXXX.log - This file will have a play-by-play of applications opened, similar to: TIMESTAMP - Foreground Active Window 	: The WinSCP window was opened

C:\Users\%user%\AppData\Local\ZohoMeeting\log\SockUtil.log

C:\Users\%user%\AppData\Local\ZohoMeeting\log\UIApp.log

C:\Users\%user%\AppData\Local\ZohoMeeting\log\ZAAudioClient.log

C:\Users\%user%\AppData\Local\ZohoMeeting\Settings 2.conf

C:\Users\%user%\AppData\Local\ZohoMeeting\Settings.conf

included in collections