probemon icon indicating copy to clipboard operation
probemon copied to clipboard

Invalid syntax

Open AgeOfMarcus opened this issue 6 years ago • 0 comments

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#

AgeOfMarcus avatar Mar 13 '18 07:03 AgeOfMarcus