-
Notifications
You must be signed in to change notification settings - Fork 633
Description
`# Check if Firefox is installed
if (!(Test-Path "C:\Program Files\Mozilla Firefox\firefox.exe")) {
Write-Error "Firefox is not installed. Please install Firefox before attempting to install the FireSheep extension."
exit 1
}
Download the FireSheep extension ZIP file
$downloadURL = "https://codeload.github.com/codebutler/firesheep/zip/refs/heads/master"
$downloadPath = "$env:TEMP\firesheep.zip"
(New-Object Net.WebClient).DownloadFile($downloadURL, $downloadPath)
Extract the extension files to a temporary directory
$extractionPath = "$env:TEMP\firesheep-extract"
New-Item -ItemType Directory -Path $extractionPath
Extract-Zip -Path $downloadPath -DestinationPath $extractionPath
Get the Firefox profile directory
$profilePath = (Get-Profile -Directory Firefox -ErrorAction SilentlyContinue | Select-Object -First 1).Path
Move the extension files to the profile directory
$extensionPath = Join-Path $extractionPath "firesheep-master\Install"
$extensionFiles = Get-ChildItem -Path $extensionPath
Move-Item -Path $extensionFiles.FullName -Destination $profilePath
Restart Firefox to enable the extension
Restart-Process -Name firefox
`