Skip to content

Powershell Script to install it #246

Description

@SleepTheGod

`# 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
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions