dfirhub

GoogleEarth

Author: Guus Beckers

description

Google Earth

paths

4 paths
AppsGoogle Earth My Places file
C:\Users\%user%\AppData\LocalLow\Google\GoogleEarthmyplaces.kml

File which holds favorited locations

AppsGoogle Earth My Places Backup file
C:\Users\%user%\AppData\LocalLow\Google\GoogleEarthmyplaces.backup.kml

Backup file which holds favorited locations

AppsGoogle Earth My Places file (XP)
C:\Documents and Settings\%user%\Application Data\Google\GoogleEarthmyplaces.kml

File which holds favorited locations

AppsGoogle Earth My Places Backup file (XP)
C:\Documents and Settings\%user%\Application Data\Google\GoogleEarthmyplaces.backup.kml

Backup file which holds favorited locations

paths use Windows environment syntax

collection commands

# PowerShell Artifact Collection Script
# Target: GoogleEarth
# 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. Google Earth My Places file
$UserPath = Join-Path $env:USERPROFILE "AppData\LocalLow\Google\GoogleEarth"
Collect-Artifact -SourcePath "$UserPath\myplaces.kml" -FolderName "Google_Earth_My_Places_file"

# 2. Google Earth My Places Backup file
$UserPath = Join-Path $env:USERPROFILE "AppData\LocalLow\Google\GoogleEarth"
Collect-Artifact -SourcePath "$UserPath\myplaces.backup.kml" -FolderName "Google_Earth_My_Places_Backup_file"

# 3. Google Earth My Places file (XP)
$UserPath = Join-Path $env:USERPROFILE "Application Data\Google\GoogleEarth"
Collect-Artifact -SourcePath "$UserPath\myplaces.kml" -FolderName "Google_Earth_My_Places_file__XP_"

# 4. Google Earth My Places Backup file (XP)
$UserPath = Join-Path $env:USERPROFILE "Application Data\Google\GoogleEarth"
Collect-Artifact -SourcePath "$UserPath\myplaces.backup.kml" -FolderName "Google_Earth_My_Places_Backup_file__XP_"

Write-Host "Collection complete!" -ForegroundColor Green

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

references