姿势收集ing,为什么网上这些大牛这么胖,贼6。

    1. Net.WebClient
powershell.exe -Command "& {(New-Object Net.WebClient).DownloadFile('http://www.3ecurity.com/Sex/Photo/test.jpg', 'f:\tmp\test1.jpg')}"
    1. BitsTransfer
powershell.exe -Command "& {Import-Module BitsTransfer; Start-BitsTransfer 'http://www.3ecurity.com/Sex/Photo/test.jpg' 'f:\tmp\test2.jpg'}"
    1. Invoke-WebRequest (was added in PowerShell 3.0)
powershell.exe -Command "& {Invoke-WebRequest 'http://www.3ecurity.com/Sex/Photo/test.jpg' -OutFile 'f:\tmp\test3.jpg'}"
  • 3.1. iwr (alias for Invoke-WebRequest since PowerShell 3.0)
powershell.exe -Command "& {(iwr http://www.3ecurity.com/Sex/Photo/test.jpg).Content > f:\tmp\test4.jpg}"
  • 3.2. wget, curl (aliases for Invoke-WebRequest since PowerShell 4.0)
powershell.exe -Command "& {wget 'http://www.3ecurity.com/Sex/Photo/test.jpg' -OutFile 'f:\tmp\test5.jpg'}"
powershell.exe -Command "& {curl 'http://www.3ecurity.com/Sex/Photo/test.jpg' -OutFile 'f:\tmp\test6.jpg'}"

发表评论

电子邮件地址不会被公开。 必填项已用*标注