Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
GPU_ShellCode — Hides reflective payloads in GPU memory via CUDA APIs, wiping host memory during sleep and using a VEH handler to restore executable memory, evading memory forensics. | Kitploit
Tools/GitHubGitHub/h1d3r/gpu_shellcode
Post-ExploitationRed TeamingPayload DevelopmentAdversarial Attack
GitHubh1d3r/gpu_shellcode

GPU_ShellCode

Hides reflective payloads in GPU memory via CUDA APIs, wiping host memory during sleep and using a VEH handler to restore executable memory, evading memory forensics.

View Repository
3203344 years agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

gpu poisoning; hide the payload inside the gpu memory.

after my older repo, in which i used the thread description to hide the payload, i wanted to find new way, so now im using nividia gpu memory using cuda api's to allocate, write, and free when there is no need for the payload to be found in memory.

Steps:

1- first, we need to setup and initialize some structs / and run our ve handler.

2- second, we run the stageless payload, we must use stageless, to know where the reflection will land (im using cobalt strike and it uses dll reflective loader), we only care about the 2nd stage cz thats the actual payload. i didnt add any tricks to this step, just a virtualalloc and a rwx section

3- now when the payload goes to sleep, we copy the payload to the gpu memory, and clean the payload in the real memory.

4- when the sleep is done, the veh will handle the exception (EXCEPTION_ACCESS_VIOLATION) by re-setting the memory permissions to PAGE_EXECUTE_READWRITE, and placing the payload back in place from the gpu.

Demo:

img

Thanks for : vxunderground papers




Download Tool