Cobalt Strike Malleable C2 profiles 解决几个小问题

2019-6-28 小屿 Java

使用过程中碰到的很无聊的小问题,太久没写垃圾博文了,所以凑个。


使用 compile_time 修改Beacon的PE头时间时候出现了错误


[-] Error(s) while compiling /Users/xia0yu/Desktop/test.profile

Error: option <.stage.compile_time> requires a 'dd MMM YYYY hh:mm:ss' date at line 289

       "14 July 2009 8:14:00"


格式化时间出现错误,发现和自己系统语言环境有关,通过ssh连服务器运行也会受影响。

把自己的系统语言改成英语即可。也可以把 July 改成七月,但是都不太方便

屏幕快照 2019-06-28 16.18.47.png


好的方式是在 c2lint 和 teamserver 都加上 -Duser.language=en 就可以 Profile compiled OK


java -XX:ParallelGCThreads=4 -XX:+UseParallelGC -Duser.language=en -classpath ./cobaltstrike.jar c2profile.Lint $1


然后还有个问题


[-] .spawnto_x86 is deprecated and has no effect. Set .post-ex.spawnto_x86 instead.

[-] .spawnto_x64 is deprecated and has no effect. Set .post-ex.spawnto_x64 instead.


因为3.14版本更新,不能直接 set spawnto_x86 、set spawnto_x64


而是需要这样

post-ex {  
    set spawnto_x86 "shit/path";
    set spawnto_x64 "shit/path";
}


标签: cobaltstrike

发表评论:

Powered by xia0yu