abhinavbom / Threat-Intelligence-Hunter

TIH is an intelligence tool that helps you in searching for IOCs across multiple openly available security feeds and some well known APIs. The idea behind the tool is to facilitate searching and storing of frequently added IOCs for creating your own local database of indicators.
MIT License
147 stars 33 forks source link

parse.py, parse_ip, NoneType #13

Closed trietptm closed 6 years ago

trietptm commented 7 years ago

I use Threat-Intelligence-Hunter in a network which blocks Tor and its related websites and received this error:

Connecting with https://check.torproject.org/exit-addresses
[!] Could not connect to: https://check.torproject.org/exit-addresses
Traceback (most recent call last):
  File "tih.py", line 62, in <module>
    main()
  File "tih.py", line 41, in main
    parse_ip(args.ip)
  File "c:\GitHub\Threat-Intelligence-Hunter\lib\parse.py", line 75, in parse_ip
    for line in c:
TypeError: 'NoneType' object is not iterable
abhinavbom commented 6 years ago

you can resolve this issue by commenting out line number 53 in feeds.py https://github.com/abhinavbom/Threat-Intelligence-Hunter/blob/master/lib/feeds.py#L53 This will avoid connecting to tor network.