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
- Pentest Tools For Android
- Underground Hacker Sites
- What Is Hacking Tools
- Hack Tools
- Hacking Tools Software
- How To Hack
- Hacking Tools For Games
- Hack Tool Apk
- Pentest Tools List
- Hacker Tools Software
- Hacking Tools For Pc
- World No 1 Hacker Software
- Black Hat Hacker Tools
- Hacking Tools For Pc
- Hack Tool Apk No Root
- Hack Tools Online
- Hacker Tools Free Download
- Hacking Tools For Beginners
- Pentest Tools For Mac
- Hacker Tools List
- Hacker Security Tools
- Hacker Tools For Pc
- Hacking Tools For Pc
- Hack Tools For Pc
- Pentest Tools Free
- Hack Tools For Ubuntu
- Hacker Tools For Pc
- Pentest Box Tools Download
- Pentest Tools Open Source
- Pentest Tools Url Fuzzer
- What Are Hacking Tools
- Tools 4 Hack
- Free Pentest Tools For Windows
- Hack Apps
- Hacker Tools For Windows
- Hacking Tools Usb
- Pentest Tools Alternative
- Hacking Tools For Kali Linux
- Hack Tools Mac
- Hak5 Tools
- What Are Hacking Tools
- Pentest Tools Online
- Hack Rom Tools
- Hacking Tools Pc
- Pentest Tools Review
- Github Hacking Tools
- Hacker Tools Free
- Hacker Tools For Mac
- Hacking Tools Usb
- Hacker Techniques Tools And Incident Handling
- Hack Tools
- Nsa Hack Tools
- Pentest Tools Subdomain
- Hack Tool Apk No Root
- Hacking Tools Github
- Tools Used For Hacking
- Hacking Tools
- Android Hack Tools Github
- Pentest Tools For Android
No comments:
Post a Comment