Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scapy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
scapy
Commits
f3b7e4bc
Commit
f3b7e4bc
authored
7 years ago
by
gpotter2
Browse files
Options
Downloads
Patches
Plain Diff
Add Npcap installer
parent
57fd6880
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.appveyor.yml
+2
-1
2 additions, 1 deletion
.appveyor.yml
.appveyor/InstallNpcap.ps1
+19
-0
19 additions, 0 deletions
.appveyor/InstallNpcap.ps1
with
21 additions
and
1 deletion
.appveyor.yml
+
2
−
1
View file @
f3b7e4bc
...
@@ -12,8 +12,9 @@ build: off
...
@@ -12,8 +12,9 @@ build: off
install
:
install
:
# Install the npcap, windump and wireshark suites
# Install the npcap, windump and wireshark suites
-
choco install -y npcap wireshark
-
ps
:
.\.appveyor\InstallNpcap.ps1
-
ps
:
.\.appveyor\InstallWindump.ps1
-
ps
:
.\.appveyor\InstallWindump.ps1
-
choco install -y wireshark
# Install Python modules
# Install Python modules
-
"
%PYTHON%
\\
python
-m
pip
install
cryptography
coverage
mock
pyreadline"
-
"
%PYTHON%
\\
python
-m
pip
install
cryptography
coverage
mock
pyreadline"
-
set PATH="%PYTHON%\\Scripts\\;%PATH%"
-
set PATH="%PYTHON%\\Scripts\\;%PATH%"
...
...
This diff is collapsed.
Click to expand it.
.appveyor/InstallNpcap.ps1
0 → 100644
+
19
−
0
View file @
f3b7e4bc
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment