boku7 / BokuLoader

A proof-of-concept Cobalt Strike Reflective Loader which aims to recreate, integrate, and enhance Cobalt Strike's evasion features!
MIT License
1.26k stars 244 forks source link

Add syscalls + bypass fix #6

Closed S4ntiagoP closed 2 years ago

S4ntiagoP commented 2 years ago

Hello again 😄

I added syscalls using the same method as in version 0.6 (really cool syscall implementation btw, very elegant approach) I also added a small fix in bypass, where the memory regions were not first changed to RWX and also made sure that EtwEventWrite and AmsiOpenSession exist (mainly for older systems support). Lastly, a very very small change to getRdllBase. The instructions:

xor rbx, rbx
mov ebx, 0x5A4D

were called on a loop while searching for the base of the DLL (with around 20k iterations), that is now "fixed".

Cheers!

S4ntiagoP commented 2 years ago

Glad you like it!