[英]File execution after IWR download with IEX
我想從服務器下載一個文件並使用單行命令執行它。 我發現這個iwr site.com/file.exe -OutFile file.exe; file.exe
iwr site.com/file.exe -OutFile file.exe; file.exe
,但我不喜歡它。 我正在尋找不將下載的文件存儲到磁盤的解決方案。 此外,這需要在 windows 機器上完成,而無需安裝其他實用程序。
不知何故可以使用 pipe? 像這樣? iwr site.com/file.exe | iex
我帶來了這個解決方案(在 windows 機器上) curl -LOJ site.com/file.exe; ./file.exe
curl -LOJ site.com/file.exe; ./file.exe
其中-L
用於重定向。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.