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
- Pentest Tools Bluekeep
- Hacking Apps
- Pentest Tools Windows
- Hacker Tools Software
- Beginner Hacker Tools
- Hacking Tools For Windows 7
- Kik Hack Tools
- Android Hack Tools Github
- Pentest Tools Windows
- Hacker
- Hacking Tools Kit
- Growth Hacker Tools
- Hack Tools For Games
- Nsa Hack Tools Download
- Hack Tools For Pc
- Hacking Tools Online
- Hacking Tools Hardware
- Hacking Tools 2020
- Hack Tools
- Pentest Tools Windows
- Hacks And Tools
- Black Hat Hacker Tools
- How To Install Pentest Tools In Ubuntu
- Hack Tools For Windows
- Pentest Tools Tcp Port Scanner
- Hack Tools Pc
- Best Hacking Tools 2020
- Bluetooth Hacking Tools Kali
- Pentest Tools Find Subdomains
- Physical Pentest Tools
- Hacker Security Tools
- Hack Tools
- Hacking Tools 2019
- Install Pentest Tools Ubuntu
- Pentest Tools Download
- Easy Hack Tools
- Hack Tool Apk
- Hacking Tools For Windows Free Download
- Hacker Tools Mac
- Best Hacking Tools 2019
- Hack Rom Tools
- Hack Tools
- Hack Tools For Mac
- Pentest Tools Framework
- Install Pentest Tools Ubuntu
- Pentest Recon Tools
- How To Hack
- Pentest Tools Apk
- Pentest Tools Apk
- Hacking Tools For Windows
- Pentest Tools Nmap
- Hack And Tools
- Hacking Tools Pc
- New Hacker Tools
- Hacker Tools Windows
- Hacker Tools List
- Beginner Hacker Tools
- Hacker Tools Free Download
- Pentest Tools Tcp Port Scanner
- Hacking Tools For Windows Free Download
- Hacker Tools For Windows
- Pentest Tools Subdomain
- Pentest Tools For Mac
- Beginner Hacker Tools
- Hacker Search Tools
- New Hack Tools
- Hak5 Tools
- Top Pentest Tools
- How To Install Pentest Tools In Ubuntu
- Pentest Tools Port Scanner
- Game Hacking
- Hacking Tools And Software
- Hacking Tools Github
- Hacking Tools 2020
- Hacking Apps
- Hacking Tools For Windows 7
- Tools Used For Hacking
- Kik Hack Tools
- Hacker Tools Free Download
- Android Hack Tools Github
- Pentest Box Tools Download
- Pentest Tools Online
- Hacking Tools Free Download
- Hacking Tools For Games
- Computer Hacker
- Hacking Tools Usb
- Pentest Tools Port Scanner
- Pentest Tools Port Scanner
- Pentest Tools Online
- Hacker Tools Apk
- Hackers Toolbox
- Hacking Apps
- Hacking Tools Pc
- Hacker Tools For Windows
- Pentest Tools Free
- Hacking Tools Online
- Hacking Tools Free Download
- Hacking Tools For Kali Linux
- Hacker Tools Free Download
- Hacker Tools Windows
- How To Hack
- Hacking Tools Windows
- Nsa Hacker Tools
No comments:
Post a Comment