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
Related articles
- Tools For Hacker
- Game Hacking
- Nsa Hack Tools
- Hacker Tools Software
- Hacker Tools Hardware
- Hacking Tools Mac
- Pentest Tools List
- Hacking Tools For Windows Free Download
- Hacking Apps
- Android Hack Tools Github
- Best Hacking Tools 2019
- Android Hack Tools Github
- Hacker Tools Online
- Hacker Tools
- Growth Hacker Tools
- Hacker Tools Windows
- Hacking Tools Online
- Hacker Tools For Windows
- Hack Tools For Mac
- Hackers Toolbox
- Hack Tools
- Hacker Tool Kit
- Hacker Tools For Mac
- Hacker Tools Online
- Hacking Tools Free Download
- How To Make Hacking Tools
- Best Hacking Tools 2020
- Hacker Tools Windows
- Hacking Tools For Windows
- Hacking Tools 2020
- Hacking Tools Usb
- Tools 4 Hack
- Blackhat Hacker Tools
- Tools Used For Hacking
- Pentest Tools Nmap
- Hacking Tools Download
- Nsa Hack Tools
- Tools 4 Hack
- Hacker Tools Github
- Hacker Security Tools
- Hacking Tools Software
- Pentest Tools Review
- Pentest Reporting Tools
- Hacking Tools Online
- Hacker Tools For Windows
- Hacking Tools And Software
- Pentest Tools Framework
- Computer Hacker
- Hacker Tools 2019
- Hacker Tools Linux
- Hacking Tools For Games
- Hacker Search Tools
- Tools 4 Hack
- Hacker Tools Free
- Hacker
- Hacker Hardware Tools
- Hacking Tools Online
- Easy Hack Tools
- Pentest Tools
- Tools For Hacker
- Pentest Tools For Ubuntu
- Hacking Tools For Pc
- Pentest Tools Android
- Hack Tools Pc
- Pentest Automation Tools
- Pentest Tools Tcp Port Scanner
- Pentest Tools Kali Linux
No comments:
Post a Comment