timwhitez starred sleepmask_ekko_cfg
A tag already exists with the provided branch name. Many Git commands accept 2023-3-17 23:56:6 Author: github.com(查看原文) 阅读量:25 收藏

Code snippets to add on top of cobalt strike sleepmask kit so that ekko can work in a CFG protected process.

All credits to @Icebreaker

Usage

  1. Enable ekko sleep in sleepmask kit
  2. Include cfg.c
  3. Add below codes before ekko sleep
   PVOID NtContinue = KERNEL32$GetProcAddress(KERNEL32$GetModuleHandleA("ntdll.dll"),"NtContinue");
   //PVOID NtContinue = NTDLL$NtContinue; //<-- this should be the same as above
   if (!markCFGValid_nt(NtContinue))
    {
        return;
    }
  1. Put cfg.c in folder
  2. Append the contents in bofdefs.h
  3. Compile

Caveat

  1. Sleep 0 will terminate the process, meaning that socks cannot be used (However, if interactive process is needed, its pointless to use ekko, just revert back to use original sleep)

Reference

  1. https://github.com/IcebreakerSecurity/Ekko_CFG_Bypass

文章来源: https://github.com/ScriptIdiot/sleepmask_ekko_cfg
如有侵权请联系:admin#unsafe.sh