Path: blob/master/payloads/library/prank/Prank_In_The_Middle_Thunderbird/README.md
2968 views
Prank In The Middle - Thunderbird
The name of the payload Prank In The Middle
is named after the pun Prank + Man In The Middle in that this operation, in some ways, can remotely be configured as a MITM attack but since it was created specifically for playful purposes then here is the reason for the union with the word Prank.
Category: Prank
Plug-And-Play ^^
Index
Description
This program automates a series of actions on a Windows system (tested on Windows 10 but should works in Windows 11) to manipulate the contents of emails found in a Thunderbird profile. Specifically, it identifies emails in the INBOX
file of each configured email account and replaces the sender's email addresses with a fictitious address [email protected]/prinkrollme
where prinkrollme
is the union of the words Prank
, Rick Roll
and Me
(this one was necessary becouse prinkwoll era già stato preso :c so sad... ) all compressed into the link tinyurl.com/prinkrollme
(3° note) that redirect to the YouTube video https://www.youtube.com/watch?v=xMHJGd3wwZk
.
Requirements
A Windows system with Thunderbird installed.
Access to PowerShell.
Permissions to run code in Powershell
Test Environment
Thunderbird 115.11.1 (64 bit)
Windows 10 Pro
How the Program Works
System Detection: The program detects if the system reflects the CAPSLOCK state and sets a dynamic delay based on this.
Opening Thunderbird: Uses a series of commands to open Thunderbird and navigate to the profile folder settings.
Copying the Profile Folder Path: Copies the profile folder path to the clipboard.
Opening PowerShell: Opens a PowerShell window and navigates to the
ImapMail
folder of the Thunderbird profile.Email Manipulation: Uses PowerShell to:
Find all
INBOX
folders withinImapMail
.Read the contents of the emails in
INBOX
.Replace the sender addresses with
Rick Roll <[email protected]/prinkrollme>
.Save the modified content back to the original email files.
Code Details
System Detection && Short Start DELAY
Navigating in Thunderbird
Opening PowerShell and Email Manipulation
The Regex
The regex was not created from scratch but was taken from the discussion “How can I validate an email address using a regular expression?” posted on StackOverflow.
The only difference is the addition of **From: <...>**
which reduces to just the email addresses that sent the emails and not all addresses detected in the file that might depict other references
Notes
This program was created for educational and demonstrative purposes. Unauthorized alteration of emails is illegal, and violating others' privacy is a crime.
Ensure you have the necessary permissions before running any script that modifies personal or sensitive data.
Considering Staged Payloads, generally, it is not possible to include code that downloads from external sources. In this case, however, the setup involves a redirect to a YouTube video, which has been conveniently shortened using
tiny.url
. It is important to note that this redirect can be modified, and I strongly recommend changing it to a personal link for your security. While I assure you that I will never alter the link, no one can guarantee that I won't be compromised, allowing someone else to alter the redirect. It is always advisable and a good practice to never use links found online without understanding the actual redirect and replacing it with your own link.