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

Bug with domain intel #109

Closed Te-k closed 4 years ago

Te-k commented 5 years ago

Bug with date format apparently :

----------------- Passive DNS
Traceback (most recent call last):
  File "/home/user/env/default3/bin/harpoon", line 11, in <module>
    load_entry_point('harpoon', 'console_scripts', 'harpoon')()
  File "/home/user/projects/harpoon/harpoon/main.py", line 61, in main
    plugins[args.command].run(config, args, plugins)
  File "/home/user/projects/harpoon/harpoon/commands/domain.py", line 354, in run
    for r in sorted(passive_dns, key=lambda x: x["first"], reverse=True):
TypeError: can't compare offset-naive and offset-aware datetimes
Te-k commented 5 years ago

harpoon domain intel stackoverflow.com raises this bug for instance

Te-k commented 5 years ago

Fixed, let me know if it works for you, I will need to push a new version to pypi at some point.