# Check database file header $dbPath = "C:\Users\ADMINI~1\AppData\Local\Temp\3\GeViDB_shadow_copy.mdb" if (-not (Test-Path $dbPath)) { Write-Host "[ERROR] Database file not found at: $dbPath" -ForegroundColor Red exit 1 } Write-Host "Reading database file header..." -ForegroundColor Yellow Write-Host "File: $dbPath" -ForegroundColor Gray Write-Host "" try { $bytes = [System.IO.File]::ReadAllBytes($dbPath) | Select-Object -First 64 Write-Host "First 64 bytes (hex):" -ForegroundColor Cyan $hex = ($bytes | ForEach-Object { $_.ToString("X2") }) -join " " Write-Host $hex -ForegroundColor White Write-Host "" Write-Host "As ASCII:" -ForegroundColor Cyan $ascii = [System.Text.Encoding]::ASCII.GetString($bytes) Write-Host $ascii -ForegroundColor White Write-Host "" # Check for common database signatures $signature = [System.Text.Encoding]::ASCII.GetString($bytes[0..15]) if ($signature -match "Standard Jet DB") { Write-Host "[INFO] Detected: Microsoft Jet Database (Access 97-2003)" -ForegroundColor Green } elseif ($signature -match "Standard ACE DB") { Write-Host "[INFO] Detected: Microsoft ACE Database (Access 2007+)" -ForegroundColor Green } elseif ($bytes[0] -eq 0x00 -and $bytes[1] -eq 0x01 -and $bytes[2] -eq 0x00 -and $bytes[3] -eq 0x00) { Write-Host "[INFO] Detected: Encrypted or protected database" -ForegroundColor Yellow } else { Write-Host "[WARN] Unknown database format" -ForegroundColor Yellow } } catch { Write-Host "[ERROR] Failed to read file: $($_.Exception.Message)" -ForegroundColor Red exit 1 }