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 links
- Best Hacking Tools 2019
- Pentest Tools Review
- Hacking Tools For Kali Linux
- Hacking Tools Online
- Hacking Tools 2019
- Pentest Tools Free
- Hacking Tools Usb
- Hack Tools
- Hacker
- Pentest Tools For Windows
- Hack Tools For Games
- Android Hack Tools Github
- Hack Tool Apk
- Hack Tools
- Hacker Tools Free Download
- Pentest Tools Nmap
- Pentest Tools Github
- Pentest Tools Alternative
- Hack Tools
- Hackrf Tools
- Hacker Tools 2020
- Beginner Hacker Tools
- Pentest Tools Tcp Port Scanner
- How To Hack
- Hacking Tools For Windows Free Download
- Hacker Tools 2019
- Tools Used For Hacking
- How To Make Hacking Tools
- Pentest Tools Website Vulnerability
- Hacking Tools For Beginners
- Hacker Tools Linux
- Pentest Tools Bluekeep
- Hacking App
- Pentest Tools Download
- Github Hacking Tools
- Physical Pentest Tools
- Hack Tools For Mac
- Hacking Tools Name
- Hack Tools Github
- Tools For Hacker
- Hacking Tools Online
- Hacking Tools Name
- Hak5 Tools
- Hacking Tools Name
- Best Pentesting Tools 2018
- Hacker Tools Linux
- Hacks And Tools
- Hacking Tools Usb
- Usb Pentest Tools
- Android Hack Tools Github
- How To Make Hacking Tools
- Ethical Hacker Tools
- Pentest Tools Nmap
- How To Make Hacking Tools
- New Hacker Tools
- What Is Hacking Tools
- Hacking Tools Online
- Pentest Tools
- Hacking Tools 2020
- Pentest Tools Github
- Hacking Tools For Pc
- Hack Tools Mac
- Nsa Hack Tools
- Pentest Reporting Tools
- Github Hacking Tools
- Hacking Tools For Mac
- Hacking Tools And Software
- Hacking Tools For Pc
- Pentest Tools Alternative
- Hacking Tools Github
- Hack Tools Download
- Tools 4 Hack
- Hacker Security Tools
- Best Pentesting Tools 2018
- Pentest Tools Nmap
- Pentest Tools Kali Linux
- Hacker Tools Free Download
- Best Hacking Tools 2020
- Pentest Tools Website
- Hacking Tools Kit
- Pentest Tools
- Termux Hacking Tools 2019
- Pentest Tools Open Source
- Hack Tools Github
No comments:
Post a Comment