You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that #4571 haven't fixed all the cases. One that is not handled - when scapy process don't have permissions to open the folder (e.x. script that calls scapy drops permissions and therefore home folder is no longer accessible).
In that case path.exists will throw an exception and scapy will crash.
Correct fix is to put if not path.exists() into same try-except block.
Scapy version
2.6.1
Python version
3.12
Operating system
Linux 6.12
Additional environment information
No response
How to reproduce
Install debian testing
Install scapy 2.6.1
Try running scapy server after dropping privilieges
Actual result
No response
Expected result
No response
Related resources
No response
The text was updated successfully, but these errors were encountered:
If privileges for scapy were dropped, but username remain unchanged,
path.exist() would trigger an exception. Fix that by moving whole
if statement under try-except.
Fixessecdev#4618
Civil
added a commit
to Civil/scapy
that referenced
this issue
Dec 25, 2024
If privileges for scapy were dropped, but username remain unchanged,
path.exist() would trigger an exception. Fix that by moving whole
if statement under try-except.
Fixessecdev#4618
Brief description
It seems that #4571 haven't fixed all the cases. One that is not handled - when scapy process don't have permissions to open the folder (e.x. script that calls scapy drops permissions and therefore home folder is no longer accessible).
In that case
path.exists
will throw an exception and scapy will crash.Correct fix is to put
if not path.exists()
into sametry-except
block.Scapy version
2.6.1
Python version
3.12
Operating system
Linux 6.12
Additional environment information
No response
How to reproduce
Install debian testing
Install scapy 2.6.1
Try running scapy server after dropping privilieges
Actual result
No response
Expected result
No response
Related resources
No response
The text was updated successfully, but these errors were encountered: