Appveyor use npcap

This commit is contained in:
gpotter2 2017-02-23 20:22:26 +01:00 committed by gpotter2
parent 42d4672c9e
commit d302b8f6ff
2 changed files with 15 additions and 3 deletions

View File

@ -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

View File

@ -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%"