pythonping
pythonping copied to clipboard
I keep getting an error
I just get the following error when I try to run
Traceback (most recent call last): File "portalMain.py", line 65, in <module> portal(); File "portalMain.py", line 49, in portal ping('104.21.13.15', verbose=True) File "/home/runner/Hacking-Portal/venv/lib/python3.10/site-packages/pythonping/__init__.py", line 81, in ping comm = executor.Communicator(target, provider, timeout, interval, socket_options=options, verbose=verbose, output=out, File "/home/runner/Hacking-Portal/venv/lib/python3.10/site-packages/pythonping/executor.py", line 293, in __init__ self.socket = network.Socket(target, 'icmp', options=socket_options, source=source) File "/home/runner/Hacking-Portal/venv/lib/python3.10/site-packages/pythonping/network.py", line 31, in __init__ self.socket = socket.socket(socket.AF_INET, socket.SOCK_RAW, self.protocol) File "/nix/store/hd4cc9rh83j291r5539hkf6qd8lgiikb-python3-3.10.8/lib/python3.10/socket.py", line 232, in __init__ _socket.socket.__init__(self, family, type, proto, fileno) PermissionError: [Errno 1] Operation not permitted
The code I am running
I am running my project, Hacking Portal
You can view all of the code but here is what I am running now
elif func == "": print("Insert site IP:") print(">", end='') func = input(); ping(func, verbose=True) elif func == "!getip":
https://github.com/alessandromaggio/pythonping#do-i-need-privileged-mode-or-root