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

Config check don't work #147

Closed zaqes closed 3 years ago

zaqes commented 3 years ago

After an update the config check don't work for me. I have no API keys set

Configuration check:
-urlscan     -> OK
Traceback (most recent call last):
  File "/Users/thdfir/irshell/venv3/bin/harpoon", line 8, in <module>
    sys.exit(main())
  File "/Users/thdfir/irshell/venv3/lib/python3.9/site-packages/harpoon/main.py", line 61, in main
    plugins[args.command].run(config, args, plugins)
  File "/Users/thdfir/irshell/venv3/lib/python3.9/site-packages/harpoon/commands/config.py", line 43, in run
    if plugins[p].config_needed:
  File "/Users/thdfir/irshell/venv3/lib/python3.9/site-packages/harpoon/commands/base.py", line 9, in config_needed
    pname = list(self.config.keys())[0]
IndexError: list index out of range
Te-k commented 3 years ago

Hi, thanks for reporting this bug. I just pushed a commit that should fix this bug, could you try with the last update from the git repo?

Thanks

zaqes commented 3 years ago

Can you push it to the pip3 repo?

Te-k commented 3 years ago

I don't want to push to pip something that has not been tested and confirmed working yet, but you can install it directly from the git repository with pip install git+https://github.com/Te-k/harpoon.git

zaqes commented 3 years ago

Ok.

That worked!

Te-k commented 3 years ago

Thanks, i will push that on pypi