Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid syntax #12

Open
AgeOfMarcus opened this issue Mar 13, 2018 · 0 comments
Open

Invalid syntax #12

AgeOfMarcus opened this issue Mar 13, 2018 · 0 comments

Comments

@AgeOfMarcus
Copy link

When running 'python probemon.py' as root on Kali NetHunter arm64 (Kali chroot) i get an error about an invalid syntax at 'f=open(filename, errors = "ignore")'.
Here is the code below:

root@kali:# cd probemon
root@kali:/probemon# ls
README.md probemon.py
root@kali:/probemon# python probemon.py
Traceback (most recent call last):
File "probemon.py", line 9, in
from scapy.all import *
File "/usr/local/lib/python2.7/dist-packages/scapy/all.py", line 10, in
from .config import *
File "/usr/local/lib/python2.7/dist-packages/scapy/config.py", line 11, in
from .data import *
File "/usr/local/lib/python2.7/dist-packages/scapy/data.py", line 184, in
TCP_SERVICES,UDP_SERVICES=load_services("/etc/services")
File "/usr/local/lib/python2.7/dist-packages/scapy/data.py", line 109, in load_services
f=open(filename, errors='ignore')
TypeError: 'errors' is an invalid keyword argument for this function
root@kali:/probemon#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant