Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Powershell Script to install it #246

Open
SleepTheGod opened this issue Nov 24, 2023 · 0 comments
Open

Powershell Script to install it #246

SleepTheGod opened this issue Nov 24, 2023 · 0 comments

Comments

@SleepTheGod
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant