Hacking Articles Tips Tricks Videos Tutorials
468 subscribers
65.8K photos
15 videos
157 files
132K links
Exploit
Pentesting
Hacking
Red Team
Blue Team
Kali Linux
Bug Bounty
Black Hat
Cyber security etc

@Hacking_Video
@Hacking_attack
Download Telegram
x86 32bits emulator, for securely emulating shellcodes.
Features  rust safety, good for malware. All dependencies are in rust. zero unsafe{} blocks. very fast emulation (https://www.kitploit.com/search/label/Emulation) (much faster than unicorn) 3,000,000 instructions/second 100,000 instructions/second printing every instruction -vv. powered by iced-x86 rust dissasembler awesome library. iteration detector. memory and register tracking. colorized. stop at specific moment and explore the state or modify it. 105 instructions implemented. 112 winapi implemented of 5 dlls. all linux syscalls. SEH chains. vectored exception handler. PEB, TEB structures. memory allocator. react with int3. non debugged cpuid. tests with known payloads: metasploit shellcodes. metasploit encoders. cobalt strike. shellgen. guloader (not totally for now, but arrive further than the debugger) TODO - more fpu
- mmx
- 64 bits
- scripting?
Usage emulator for Shellcodes (https://www.kitploit.com/search/label/Shellcodes) 0.2.5 @sha0coder USAGE: scemu [FLAGS] [OPTIONS] FLAGS: -e, --endpoint perform communications with the endpoint, use tor or vpn! -h, --help Prints help information -l, --loops show loop interations, it is slow. -m, --memory trace all the memory accesses read and write. -n, --nocolors print without colors for redirectin to a file >out -r, --regs print the register values in every step. -V, --version Prints version information -v, --verbose -vv for view the assembly, -v only messages, without verbose only see the api calls and goes faster OPTIONS: -b, --base set base address for code -c, --console select in which moment will spawn the console (https://www.kitploit.com/search/label/Console) to inspect. -C, --console_addr spawn console on first eip = address -a, --entry entry point of the shellcode, by default starts from the beginning. -f, --filename set the shellcode binary file. -i, --inspect monitor memory like: -i 'dword ptr [ebp + 0x24] -M, --maps select the memory maps folder -R, --reg trace a specific register in every step, value and content -s, --string monitor string on a specific address">SCEMU 32bits emulator for Shellcodes 0.2.5
@sha0coder

USAGE:
scemu [FLAGS] [OPTIONS]

FLAGS:
-e, --endpoint perform communications with the endpoint, use tor or vpn!
-h, --help Prints help information
-l, --loops show loop interations, it is slow.
-m, --memory trace all the memory accesses read and write.
-n, --nocolors print without colors for redirectin to a file >out
-r, --regs print the register values in every step.
-V, --version Prints version information
-v, --verbose -vv for view the assembly, -v only messages, without verbose only see the api calls and goes
faster

OPTIONS:
-b, --base set base address for code
-c, --console select in which moment will spawn the console to inspect.
-C, --console_addr spawn console on first eip = address
-a, --entry entry point of the shellcode, by default starts from the beginning.
-f, --filename set the shellcode binary file.
-i, --inspect monitor memory like: -i 'dword ptr [ebp + 0x24]
-M, --maps select the memory maps folder
-R, --reg trace a specific register in every step, value and content
-s, --string monitor string on a specific address
Some use cases scemu emulates a simple shellcode detecting the execve() interrupt.

___________________________
@hacking_Attack
@Hacking_Video
We select the line to stop and inspect the memory.

___________________________
@hacking_Attack
@Hacking_Video
After emulating near 2 million instructions of GuLoader win32 in linux, faking cpuid's and other tricks in the way, arrives to a sigtrap to confuse debuggers.

___________________________
@hacking_Attack
@Hacking_Video
Example of memory dump on the api loader.

___________________________
@hacking_Attack
@Hacking_Video
There are several maps by default, and can be created more with apis like LoadLibraryA or manually from the console.

___________________________
@hacking_Attack
@Hacking_Video
Emulating basic windows shellcode based on LdrLoadDLl() that prints a message:

___________________________
@hacking_Attack
@Hacking_Video
The console allow to view an edit the current state of the cpu: h --- help --- q ...................... quit cls .................... clear screen h ...................... help s ...................... stack v ...................... vars r ...................... register show all r reg .................. show reg rc ..................... register change f ...................... show all flags fc ..................... clear all flags fz ..................... toggle flag zero fs ..................... toggle flag sign c ...................... continue ba ..................... breakpoint on address bi ..................... breakpoint on instruction number bmr .................... breakpoint on read memory bmw .................... breakpoint on write memory bc ..................... clear breakpoint n ...................... next instruction eip .................... change eip push ................... push dword to the stack pop .................... pop dword from stack fpu .................... fpu view md5 .................... check the md5 of a memory map seh .................... view SEH veh .................... view vectored execption pointer m ...................... memory maps ma ..................... memory allocs mc ..................... memory create map mn ..................... memory name of an address ml ..................... memory load file content to map mr ..................... memory read, speficy ie: dword ptr [esi] mw ..................... memory read, speficy ie: dword ptr [esi] and then: 1af md ..................... memory dump mrd .................... memory read dwords mds .................... memory dump string mdw .................... memory dump wide string mdd .................... memory dump to disk mt ..................... memory test ss ..................... search string sb ..................... search bytes sba .................... search bytes in all the maps ssa .................... search string in all the maps ll ..................... linked list walk d ...................... dissasemble dt ..................... dump structure enter .................. step into">--- console ---
=>h
--- help ---
q ...................... quit
cls .................... clear screen
h ...................... help
s ...................... stack
v ...................... vars
r ...................... register show all
r reg .................. show reg
rc ..................... register change
f ...................... show all flags
fc ..................... clear all flags
fz ..................... toggle flag zero
fs ..................... toggle flag sign
c ...................... continue
ba ..................... breakpoint on address
bi ..................... breakpoint on instruction number
bmr .................... breakpoint on read memory
bmw .................... breakpoint on write memory
bc ..................... clear breakpoint
n ...................... next instruction
eip .................... change eip
push .............. ..... push dword to the stack
pop .................... pop dword from stack
fpu .................... fpu view
md5 .................... check the md5 of a memory map
seh .................... view SEH
veh .................... view vectored execption pointer
m ...................... memory maps
ma ..................... memory allocs
mc ..................... memory create map
mn ..................... memory name of an address
ml ..................... memory load file content to map
mr ..................... memory read, speficy ie: dword ptr [esi]
mw ..................... memory read, speficy ie: dword ptr [esi] and then: 1af
md ..................... memory dump
mrd .................... memory read dwords
mds .................... memory dump string
mdw .................... memory dump wide string
mdd .................... memory dump to disk
mt ..................... memory test
ss ..................... search str ing

___________________________
@hacking_Attack
@Hacking_Video
sb ..................... search bytes
sba .................... search bytes in all the maps
ssa .................... search string in all the maps
ll ..................... linked list walk
d ...................... dissasemble
dt ..................... dump structure
enter .................. step into
The cobalt strike (https://www.kitploit.com/search/label/Cobalt%20Strike) api loader is the same that metasploit, emulating it:

___________________________
@hacking_Attack
@Hacking_Video
Cobalt Strike API called:

___________________________
@hacking_Attack
@Hacking_Video
Metasploit rshell API called:

___________________________
@hacking_Attack
@Hacking_Video