diff --git a/.appveyor/InstallWindump.ps1 b/.appveyor/InstallWindump.ps1 new file mode 100644 index 0000000000000000000000000000000000000000..158cbd0aab92ce7a798c2b8f66e7484a18f3482b --- /dev/null +++ b/.appveyor/InstallWindump.ps1 @@ -0,0 +1,12 @@ +wget https://github.com/hsluoyz/WinDump/releases/download/v0.1/WinDump-for-Npcap-0.1.zip -UseBasicParsing -OutFile .\npcap.zip +Add-Type -AssemblyName System.IO.Compression.FileSystem +function Unzip +{ + param([string]$zipfile, [string]$outpath) + + [System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath) +} +Unzip $PSScriptRoot"\npcap.zip" $PSScriptRoot"\npcap" +Remove-Item ".\npcap.zip" +Move-Item -Force ".\npcap\x64\WinDump.exe" "C:\Windows\System32\windump.exe" +Remove-Item ".\npcap" -recurse \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index 5410db151dadabf8bd75aa8b79f52a977cc74927..b837dd5baa9df0b31cbda97f125d3a55184186a3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -11,9 +11,9 @@ environment: build: off install: - # Install the winpcap, windump and wireshark suites - - choco install -y winpcap wireshark - - ps: wget http://www.winpcap.org/windump/install/bin/windump_3_9_5/WinDump.exe -UseBasicParsing -OutFile C:\Windows\System32\windump.exe + # Install the npcap, windump and wireshark suites + - choco install -y npcap wireshark + - ps: .\.appveyor\InstallWindump.ps1 # Install Python modules - "%PYTHON%\\python -m pip install cryptography coverage mock pyreadline keyboard" - set PATH="%PYTHON%\\Scripts\\;%PATH%"