Fast Emulator For Shellcodes In Rust
Posted by Sykes
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
- Hacker Tools
- Hacker Tools For Ios
- Tools 4 Hack
- How To Hack
- Hack Tools For Windows
- Hack Rom Tools
- Hack Tools For Ubuntu
- Hacker Tools Linux
- Best Hacking Tools 2020
- Pentest Tools Website
- Install Pentest Tools Ubuntu
- Pentest Tools Open Source
- Hacker Tools For Windows
- Pentest Tools Website Vulnerability
- Hack Tools For Mac
- Hacking App
- Hacker Tools For Windows
- Best Hacking Tools 2019
- Hack Tools Online
- Hacking App
- Hacking Tools 2020
- Game Hacking
- New Hacker Tools
- Hack Tools
- Hack Tools 2019
- Hack Tools For Mac
- Pentest Reporting Tools
- Hacker Tools Online
- Hacker Tools Windows
- Pentest Tools Alternative
- Hacking Tools For Windows 7
- Hacker Tools Apk
- Hacker Tools Software
- Tools Used For Hacking
- Hacking Tools 2019
- Hacking Tools For Mac
- Pentest Tools Online
- Hacker Tools For Ios
- Physical Pentest Tools
- Hacker Security Tools
- Pentest Tools Framework
- Pentest Tools Nmap
- Hacker Tools Hardware
- Wifi Hacker Tools For Windows
- Nsa Hacker Tools
- Hacking Tools 2019
- Pentest Recon Tools
- Pentest Tools For Android
- Pentest Tools Framework
- Pentest Tools Alternative
- Tools 4 Hack
- Pentest Tools For Android
- How To Install Pentest Tools In Ubuntu
- Hacker Tools 2019
- Pentest Tools Android
- Beginner Hacker Tools
- Hacking Tools Software
- Hacker Tools For Windows
- Hackers Toolbox
- Black Hat Hacker Tools
- Hacking Tools Name
- Nsa Hack Tools
- How To Install Pentest Tools In Ubuntu
- Hack Tools Github
- Easy Hack Tools
- Kik Hack Tools
- What Are Hacking Tools
- Pentest Tools Review
- Hacker Tools For Windows
- Pentest Recon Tools
- Best Hacking Tools 2020
- Hacking Tools Windows 10
- Pentest Tools
- Pentest Automation Tools
- Hack Tools
- Hack Tools For Games
- Top Pentest Tools
- Hacking Apps
- Hacking Tools Online
- Nsa Hacker Tools
- Pentest Tools Website Vulnerability
- Hacker Search Tools
- What Are Hacking Tools
- Hack Tools
- Hacking Tools For Games
- Pentest Recon Tools
- Pentest Tools Website
- Hack Tools For Pc
- Best Hacking Tools 2019
- Hacker Security Tools
- Pentest Tools For Ubuntu
- Hacker Tools Linux
- Hacking Tools For Windows
- Hacking Tools Free Download
- Hacker Hardware Tools
- Hacking Tools Windows
- Pentest Tools Free
- What Are Hacking Tools
- Pentest Tools Find Subdomains
- Hacker Tools For Windows
- How To Make Hacking Tools
- Pentest Tools Bluekeep
- Hacker Techniques Tools And Incident Handling
- Hackrf Tools
- Hack Apps
- Hacker Tools List
- Best Hacking Tools 2020
- Android Hack Tools Github
- Hack Tools
- Pentest Tools Kali Linux
- Top Pentest Tools
- Pentest Recon Tools
- Nsa Hack Tools Download
- Pentest Tools For Windows
- Pentest Tools Find Subdomains
- Hacking Tools For Windows
- Hacker Tools For Mac
- Tools For Hacker
- Hacker Tools 2020
- Nsa Hacker Tools
- Termux Hacking Tools 2019
- Top Pentest Tools
- Pentest Recon Tools
- Bluetooth Hacking Tools Kali
- What Is Hacking Tools
- Pentest Tools Download
- Hacking Tools Github
- Pentest Tools Android
- Termux Hacking Tools 2019
- Hacking Tools For Windows
- Hacking Tools For Kali Linux
- Hacker Tools Apk Download
- Pentest Tools Android
- Hacker Tools Online
- Kik Hack Tools
- Hacking Tools Mac
- Hack Tools Mac
- Hacking Tools 2020
- Hack Rom Tools
- Hacker Tools Free Download
- Hacking Tools For Mac
- Hacker Tools Mac
- Hacking Tools Software
- Growth Hacker Tools
- How To Make Hacking Tools
- Wifi Hacker Tools For Windows
- Pentest Box Tools Download
- Nsa Hack Tools
- How To Install Pentest Tools In Ubuntu
- Pentest Tools For Windows
- Hack And Tools
- Hacking Tools Hardware
- Pentest Tools Tcp Port Scanner
- Blackhat Hacker Tools
- Best Pentesting Tools 2018
- Hacker Tools List
- Pentest Reporting Tools
- Hack Tools For Pc
- Pentest Tools Port Scanner
- Best Pentesting Tools 2018
- Hacker Search Tools
- Hack Tools
- Hacker Tools Free
- Hacker Tools Github