mirror of https://github.com/secdev/scapy.git
Appveyor use npcap
This commit is contained in:
parent
42d4672c9e
commit
d302b8f6ff
|
@ -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
|
|
@ -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%"
|
||||
|
|
Loading…
Reference in New Issue