From d302b8f6ff42bb29f89e7a3db5951cbe62df8e2f Mon Sep 17 00:00:00 2001 From: gpotter2 <gabriel@potter.fr> Date: Thu, 23 Feb 2017 20:22:26 +0100 Subject: [PATCH] Appveyor use npcap --- .appveyor/InstallWindump.ps1 | 12 ++++++++++++ appveyor.yml | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .appveyor/InstallWindump.ps1 diff --git a/.appveyor/InstallWindump.ps1 b/.appveyor/InstallWindump.ps1 new file mode 100644 index 00000000..158cbd0a --- /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 5410db15..b837dd5b 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%" -- GitLab