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

ValueError: invalid literal for int() with base 10: 'curl 8' #11

Open
NobinPegasus opened this issue Apr 25, 2024 · 0 comments
Open

ValueError: invalid literal for int() with base 10: 'curl 8' #11

NobinPegasus opened this issue Apr 25, 2024 · 0 comments

Comments

@NobinPegasus
Copy link

When I try to run the first example I found the following errors:

pegasus_vm@pegasusvm:~/Documents/eBPFShield$ python3 main.py  --feature ebpf_ipintelligence --block kill
Traceback (most recent call last):
  File "/home/pegasus_vm/Documents/eBPFShield/main.py", line 350, in <module>
    lists.append(TaggedIpList(feed, handle))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pegasus_vm/Documents/eBPFShield/ebpfshield/helpers.py", line 14, in __init__
    self.addresses.append(self.ip2int(line))
                          ^^^^^^^^^^^^^^^^^
  File "/home/pegasus_vm/Documents/eBPFShield/ebpfshield/helpers.py", line 36, in ip2int
    return reduce(lambda out, x: (out << 8) + int(x), ip.split('.'), 0)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pegasus_vm/Documents/eBPFShield/ebpfshield/helpers.py", line 36, in <lambda>
    return reduce(lambda out, x: (out << 8) + int(x), ip.split('.'), 0)
                                              ^^^^^^
ValueError: invalid literal for int() with base 10: 'curl 8'
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