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
3c7e0d29
Commit
3c7e0d29
authored
7 years ago
by
gpotter2
Committed by
Guillaume Valadon
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Better error logs
parent
e1339d4a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scapy/arch/windows/__init__.py
+6
-9
6 additions, 9 deletions
scapy/arch/windows/__init__.py
with
6 additions
and
9 deletions
scapy/arch/windows/__init__.py
+
6
−
9
View file @
3c7e0d29
...
...
@@ -461,6 +461,7 @@ class NetworkInterfaceDict(UserDict):
elif
_confir
in
[
"
no
"
,
"
n
"
]:
return
False
return
False
_error_msg
=
"
No match between your pcap and windows network interfaces found.
"
if
_detect
[
0
]
and
not
_detect
[
2
]
and
((
hasattr
(
self
,
"
restarted_adapter
"
)
and
not
self
.
restarted_adapter
)
or
not
hasattr
(
self
,
"
restarted_adapter
"
)):
warning
(
"
Scapy has detected that your pcap service is not running !
"
)
...
...
@@ -471,15 +472,11 @@ class NetworkInterfaceDict(UserDict):
log_loading
.
info
(
"
Pcap service started !
"
)
self
.
load_from_powershell
()
return
warning
(
"
Could not start the pcap service !
"
"
You probably won
'
t be able to send packets.
"
"
Deactivating unneeded interfaces and restarting Scapy might help.
"
"
Check your winpcap and powershell installation, and access rights.
"
)
else
:
warning
(
"
No match between your pcap and windows network interfaces found.
"
"
You probably won
'
t be able to send packets.
"
"
Deactivating unneeded interfaces and restarting Scapy might help.
"
"
Check your winpcap and powershell installation, and access rights.
"
,
True
)
_error_msg
=
"
Could not start the pcap service !
"
warning
(
_error_msg
+
"
You probably won
'
t be able to send packets.
"
"
Deactivating unneeded interfaces and restarting Scapy might help.
"
"
Check your winpcap and powershell installation, and access rights.
"
,
True
)
else
:
# Loading state: remove invalid interfaces
self
.
remove_invalid_ifaces
()
...
...
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