mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
Create scripts\download\pcap2socks.ps1
This commit is contained in:
@@ -34,6 +34,7 @@ Remove-Item -Force i18n.zip
|
||||
#..\scripts\download\aiodns.ps1 -OutputPath bin
|
||||
..\scripts\download\cloak.ps1 -OutputPath bin
|
||||
..\scripts\download\xray-core.ps1 -OutputPath bin
|
||||
..\scripts\download\pcap2socks.ps1 -OutputPath bin
|
||||
|
||||
Get-Item *
|
||||
Set-Location $last
|
||||
|
||||
11
scripts/download/pcap2socks.ps1
Normal file
11
scripts/download/pcap2socks.ps1
Normal file
@@ -0,0 +1,11 @@
|
||||
param([string]$OutputPath)
|
||||
$address="https://github.com/zhxie/pcap2socks/releases/download/v0.6.2/pcap2socks-v0.6.2-windows-amd64.zip"
|
||||
|
||||
Invoke-WebRequest -Uri $address -OutFile pcap2socks.zip
|
||||
Expand-Archive -Force -Path pcap2socks.zip -DestinationPath pcap2socks
|
||||
|
||||
Move-Item -Force pcap2socks\pcap2socks.exe $OutputPath
|
||||
|
||||
Remove-Item -Recurse -Force pcap2socks
|
||||
Remove-Item -Recurse -Force pcap2socks.zip
|
||||
exit 0
|
||||
Reference in New Issue
Block a user