I have developed a fast emulator for modern shellcodes, that perform huge loops of millions of instructions emulated for resolving API or for other stuff.
The emulator is in Rust and all the few dependencies as well, so the rust safety is good for emulating malware.
There are shellcodes that can be emulated from the beginning to the end, but when this is not possible the tool has many features that can be used like a console, a memory tracing, register tracing, and so on.
https://github.com/sha0coder/scemu
In less than two seconds we have emulated 7 millions of instructions arriving to the recv.
At this point we have some IOC like the ip:port where it's connecting and other details.
Lets see what happens after the recv() spawning a console at position: 7,012,204
target/release/scemu -f shellcodes/shikata.bin -vv -c 7012204
The "ret" instruction is going to jump to the buffer read with recv() so is a kind of stager.
The option "-e" or "--endpoint" is not ready for now, but it will allow to proxy the calls to get the next stage automatically, but for now we have the details to get the stage.
SCEMU also identify all the Linux syscalls for 32bits shellcodes:
The encoder used in shellgen is also supported https://github.com/MarioVilas/shellgen
Let's check with cobalt-strike:
In verbose mode we could do several greps to see the calls and correlate with ghidra/ida/radare or for example grep the branches to study the emulation flow.
target/release/scemu -f shellcodes/rshell_sgn.bin -vv | grep j
target/release/scemu -f shellcodes/rshell_sgn.bin -vv -c 44000 -l
Continue reading
- Pentest Tools Framework
- Hacker Tools For Mac
- New Hack Tools
- Termux Hacking Tools 2019
- Hacking Tools Kit
- Pentest Tools Port Scanner
- Pentest Tools Kali Linux
- Hacking Tools Download
- Hacker Tools
- Hacking Tools For Kali Linux
- Hack Tools For Games
- Hacking App
- Android Hack Tools Github
- Hack Tools Github
- Hacker Tools Mac
- What Are Hacking Tools
- Hack Tools
- Hack Tools For Windows
- What Are Hacking Tools
- Hacking Tools For Beginners
- Hacking Tools For Games
- Best Pentesting Tools 2018
- Hacker Techniques Tools And Incident Handling
- Pentest Tools Port Scanner
- Hacking Tools For Mac
- Hacking Tools 2020
- Hacking Tools
- Hacking Tools
- Pentest Tools Linux
- Hacker Tools Free
- Pentest Tools For Ubuntu
- Hacking App
- Hacker Tools 2019
- Pentest Tools Free
- Hacker Tools 2019
- Hacker Hardware Tools
- Pentest Tools Android
- Hacking Tools Windows
- Hacker Tools For Pc
- Pentest Tools Website Vulnerability
- Hacker Tool Kit
- Hack App
- Pentest Tools Windows
- What Are Hacking Tools
- World No 1 Hacker Software
- Hacker Tools For Windows
- Hack Tools Github
- Hacking Tools For Windows Free Download
- Pentest Box Tools Download
- New Hack Tools
- Tools Used For Hacking
- Hacking Tools For Games
- Hacking Tools
- Hacker Tools Mac
- Hacking Tools Usb
- Free Pentest Tools For Windows
- Hacking Tools For Mac
- Pentest Tools Website
- Pentest Tools List
- Pentest Tools Tcp Port Scanner
- Hacker Tools 2019
- Nsa Hacker Tools
- Hacking Tools Name
- Hacking Tools For Games
- What Is Hacking Tools
- Hacking Tools Pc
- Pentest Tools Open Source
- Physical Pentest Tools
- What Is Hacking Tools
- Hack Tool Apk No Root
- Hacking Tools Online
- Hacking Tools Download
- Hacking Tools Windows
No comments:
Post a Comment