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

network-util.py creates error #6

Open
fhammers opened this issue Mar 15, 2018 · 3 comments
Open

network-util.py creates error #6

fhammers opened this issue Mar 15, 2018 · 3 comments

Comments

@fhammers
Copy link

I get the following error executing the network-util.py anyone else with this issue?

~/api/redcanary-response-utils# ./network-util.py
QUERY: netconn_count:[1 TO *]
RESULT COUNT: 393
Traceback (most recent call last):
File "./network-util.py", line 370, in
sys.exit(main())
File "./network-util.py", line 357, in main
domain=args.domain)
File "./network-util.py", line 158, in process_search
dst_ip = ipaddress.ip_address(netconn.remote_ip)
File "/usr/lib/python2.7/dist-packages/ipaddress.py", line 166, in ip_address
address)
ValueError: u'' does not appear to be an IPv4 or IPv6 address

@jeromekleinen
Copy link

Hello,

I can confirm that I got the same error today. It seems there are cases where the destination ip address is empty according to CB.

For the time being I removed all lines related to the ipaddress module as I do not rely on filtering of local addresses etc.

@jeromekleinen
Copy link

Hi,

I can confirm that the remote ip (destination ip) is empty for connections that go through a proxy. In that case the domain, proxy_ip and proxy_port fields are filled in.

Jerome

@articho28
Copy link

Hi, I also get the error mentioned above. What should I do?

Thank you.

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

3 participants