diff --git a/packages/chrome.extensions.vm/chrome.extensions.vm.nuspec b/packages/chrome.extensions.vm/chrome.extensions.vm.nuspec new file mode 100644 index 000000000..5a233b8fc --- /dev/null +++ b/packages/chrome.extensions.vm/chrome.extensions.vm.nuspec @@ -0,0 +1,13 @@ + + + + chrome.extensions.vm + 0.0.1.20240930 + Mandiant + A package for multiple useful chrome extensions from the chrome webstore. + + + + + + diff --git a/packages/chrome.extensions.vm/tools/chocolateyinstall.ps1 b/packages/chrome.extensions.vm/tools/chocolateyinstall.ps1 new file mode 100644 index 000000000..5d8ea8655 --- /dev/null +++ b/packages/chrome.extensions.vm/tools/chocolateyinstall.ps1 @@ -0,0 +1,39 @@ +$ErrorActionPreference = 'Stop' +Import-Module vm.common -Force -DisableNameChecking + +try { + + # Important: Chrome should be opened with internet access for + # ONLY one time to load these extensions. + + $extensions = @( + # MetaMask + 'nkbihfbeogaeaoehlefnkodbefgpgknn' + # Phantom + 'bfnaelmomeimhlpmgjnjophhpkkoljpa' + # BNB Chain Wallet + 'fhbohimaelbohpjbbldcngcnapndodjp' + # Avira Password Manager + 'caljgklbbfbcjjanaijlacgncafpegll' + # KeePassXC-Browser + 'oboonakemofpalcgghocfoadofidjkkk' + # Yoroi + 'ffnbelfdoeiohenkjibnmadjiehjhajb' + # XDEFI Wallet + 'hmeobnfnfcmdkdcmlblgagmfpfboieaf' + # ... + ) + $regKeyPath = "HKLM:\SOFTWARE\WOW6432Node\Policies\Google\Chrome\ExtensionInstallForcelist" + $updateUrl = "https://clients2.google.com/service/update2/crx" + + New-Item -Path $regKeyPath -Force -ea 0 | Out-Null + $valueName = 1 + Foreach ($extensionId in $extensions) + { + New-ItemProperty -Path "$regKeyPath" -Name "$valueName" -Type String -Value "$extensionId;$updateUrl" -Force -ea 0 | Out-Null + $valueName += 1 + } + +} catch { + VM-Write-Log-Exception $_ +} diff --git a/packages/chrome.extensions.vm/tools/chocolateyuninstall.ps1 b/packages/chrome.extensions.vm/tools/chocolateyuninstall.ps1 new file mode 100644 index 000000000..d86067251 --- /dev/null +++ b/packages/chrome.extensions.vm/tools/chocolateyuninstall.ps1 @@ -0,0 +1,5 @@ +$ErrorActionPreference = 'Continue' +Import-Module vm.common -Force -DisableNameChecking + +$regKeyPath = "HKLM:\SOFTWARE\WOW6432Node\Policies\Google\Chrome\ExtensionInstallForcelist" +Remove-Item -Path $regKeyPath -Recurse -Force -ea 0 \ No newline at end of file diff --git a/scripts/test/lint.py b/scripts/test/lint.py index 16d8452b1..09c140a02 100644 --- a/scripts/test/lint.py +++ b/scripts/test/lint.py @@ -335,6 +335,7 @@ class UsesInvalidCategory(Lint): "python3.vm", "x64dbgpy.vm", "vscode.extension.", + "chrome.extensions.vm", ] root_path = os.path.abspath(os.path.join(__file__, "../../.."))