Path: blob/master/payloads/library/general/The-Perfect-Stealthy-Payload/README.md
4068 views
#The-Perfect-Stealthy-Payload
Author: zb0r Version: 1.0
Description
Welcome to the mischievous world of the "Cache Folder Exclusion & Payload Download + Persistence" payload! This payload is like a digital ninja, sneaking into Windows systems, creating a safe haven in the Windows/temp folder called Cache, adding a sneaky exclusion in Windows Defender, downloading a payload from a VPS, executing it, and ensuring it stays persistent by adding itself to the startup. It's designed to evade most Endpoint Detection and Response (EDR) systems. Just remember, the delay is set for dramatic effect (and testing purposes) but can be sped up to unleash the ninja faster.
Target
Operating System: Windows
Note
Stealth Mode: This payload is designed to fly under the radar of most EDRs.
Customizable Speed: The delays are set for testing; you can reduce them for a quicker execution.
Payload Steps
Initial Delay: Give the system a moment to recognize the USB Rubber Ducky.
Open PowerShell as Admin: Trigger the
Rundialog, typepowershell, and execute it with administrative privileges.Create Cache Folder: Make a new folder named
Cachein theWindows/tempdirectory.Defender Exclusion: Add the
Cachefolder to Windows Defender exclusions via registry manipulation.Download Payload: Use
Invoke-WebRequestto download the payload into theCachefolder.Execute Payload: Run the downloaded payload.
Persistence: Add the payload to startup, ensuring it runs every time the system boots.