Skip to content
Snippets Groups Projects
Commit 06e73eee authored by Pierre Lalet's avatar Pierre Lalet Committed by GitHub
Browse files

Merge pull request #667 from gpotter2/fix-appveyor-npcap

[Appveyor] Add Npcap installer
parents 57fd6880 f3b7e4bc
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,9 @@ build: off
install:
# Install the npcap, windump and wireshark suites
- choco install -y npcap wireshark
- ps: .\.appveyor\InstallNpcap.ps1
- ps: .\.appveyor\InstallWindump.ps1
- choco install -y wireshark
# Install Python modules
- "%PYTHON%\\python -m pip install cryptography coverage mock pyreadline"
- set PATH="%PYTHON%\\Scripts\\;%PATH%"
......
# Config
$urlPath = "https://nmap.org/npcap/dist/npcap-0.90.exe"
$checksum = "0477a42a9c54f31a7799fb3ee0537826041730f462abfc066fe36d81c50721a7"
############
############
# Download the file
wget $urlPath -UseBasicParsing -OutFile $PSScriptRoot"\npcap.exe"
# Now let's check its checksum
$_chksum = $(CertUtil -hashfile $PSScriptRoot"\npcap.exe" SHA256)[1] -replace " ",""
if ($_chksum -ne $checksum){
echo "Checksums does NOT match !"
exit
} else {
echo "Checksums matches !"
}
# Run installer
Start-Process $PSScriptRoot"\npcap.exe" -ArgumentList "/loopback_support=yes /S" -wait
echo "Npcap installation completed"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment