Te-k / harpoon

CLI tool for open source and threat intelligence
https://www.randhome.io/blog/2018/02/23/harpoon-an-osint-/-threat-intelligence-tool/
GNU General Public License v3.0
1.16k stars 181 forks source link

Fix censys dependency to <1.0.0 #123

Closed ikstream closed 3 years ago

ikstream commented 3 years ago

the query interface was removed in this version (censys/censys-python#23), which is imported in harpoon/commands/censyscmd.py

steps to reproduce


# setup  and activate venv
$ python -m virtualenv venv
$ source venv/bin/activate

# install harpoon and start
$ pip install .
$ python harpoon/main.py 
Traceback (most recent call last):
  File "harpoon/main.py", line 66, in <module>
    main()
  File "harpoon/main.py", line 40, in main
    plugins = init_plugins()
  File "harpoon/main.py", line 26, in init_plugins
    mod = __import__(plugin)
  File "[...]/harpoon/harpoon/commands/censyscmd.py", line 5, in <module>
    from censys import ipv4, certificates, query
ImportError: cannot import name 'query' from 'censys' ([...]/harpoon/venv/lib/python3.8/site-packages/censys/__init__.py)
Te-k commented 3 years ago

Nice catch, thanks !