Created
June 17, 2025 23:12
-
-
Save corysolovewicz/6dce787615705d9f3cdd7f67eb3b074e to your computer and use it in GitHub Desktop.
Get-ChromeExtension.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: | |
# .\Get-ChromeExtension.ps1 aapbdbdomjkkjkaonfhkkikfgjllcleb | |
# Author: Cory Solovewicz | |
param( | |
[Parameter(Mandatory=$true)] | |
[string]$ExtensionID | |
) | |
# Target Browsers and their profile paths | |
$browserPaths = @{ | |
"Chrome" = "$env:LOCALAPPDATA\Google\Chrome\User Data\Default\Extensions" | |
"Brave" = "$env:LOCALAPPDATA\BraveSoftware\Brave-Browser\User Data\Default\Extensions" | |
"Edge" = "$env:LOCALAPPDATA\Microsoft\Edge\User Data\Default\Extensions" | |
"Burp Chromium" = "$env:USERPROFILE\AppData\Local\BurpSuite\BurpSuitePro\chromium\User Data\Default\Extensions" | |
} | |
$destination = ".\ExtractedExtensions\$ExtensionID" | |
New-Item -ItemType Directory -Path $destination -Force | Out-Null | |
$found = $false | |
foreach ($browser in $browserPaths.Keys) { | |
$extPath = Join-Path $browserPaths[$browser] $ExtensionID | |
if (Test-Path $extPath) { | |
Write-Output "Found $ExtensionID in $browser" | |
Copy-Item "$extPath\*" $destination -Recurse -Force | |
$found = $true | |
} | |
} | |
if (-not $found) { | |
Write-Warning "Extension ID $ExtensionID not found in any known browser profiles." | |
} else { | |
Write-Output "Extension copied to: $destination" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment