Closed RevThreat closed 4 years ago
Thanks, it seems to be a but with Passive Total date format, have you installed the last version recently ? I was not able to reproduce that bug with 59.126.107.90 , do you have other IPs that create the same issue ?
Let me get some samples together, and yes, i git cloned this install maybe a week ago.
harpoon@Node2:~$ harpoon ip intel 71.6.146.130
###################### 71.6.146.130 ###################
[+] Downloading BinaryEdge information...
BinaryEdge request failed, you need a paid subscription
[+] Downloading OTX information....
[+] Downloading Robtex information....
Traceback (most recent call last):
File "/usr/local/bin/harpoon", line 11, in <module>
load_entry_point('harpoon==0.1.3', 'console_scripts', 'harpoon')()
File "/usr/local/lib/python3.5/dist-packages/harpoon-0.1.3-py3.5.egg/harpoon/main.py", line 61, in main
plugins[args.command].run(config, args, plugins)
File "/usr/local/lib/python3.5/dist-packages/harpoon-0.1.3-py3.5.egg/harpoon/commands/ip.py", line 319, in run
'first': a['date'].astimezone(pytz.utc),
ValueError: astimezone() cannot be applied to a naive datetime
harpoon@Node2:~$ harpoon ip intel 59.126.107.99
###################### 59.126.107.99 ###################
[+] Downloading BinaryEdge information...
BinaryEdge request failed, you need a paid subscription
[+] Downloading OTX information....
[+] Downloading Robtex information....
[+] Downloading Passive Total information....
Traceback (most recent call last):
File "/usr/local/bin/harpoon", line 11, in <module>
load_entry_point('harpoon==0.1.3', 'console_scripts', 'harpoon')()
File "/usr/local/lib/python3.5/dist-packages/harpoon-0.1.3-py3.5.egg/harpoon/main.py", line 61, in main
plugins[args.command].run(config, args, plugins)
File "/usr/local/lib/python3.5/dist-packages/harpoon-0.1.3-py3.5.egg/harpoon/commands/ip.py", line 336, in run
"first": parse(res["firstSeen"]).astimezone(pytz.utc),
ValueError: astimezone() cannot be applied to a naive datetime
So here (above) is a good example showing that different IP's give different errors. Oddly though, I have seen it work sometimes on an IP and then break another time on the same one. But for proof that I'm running the current one, I just wget'd all the command files, and ran them through the harpoon directory and still the same errors (below)
harpoon@Node2:~/harpoon/harpoon$ python3 main.py ip intel 71.6.146.130
###################### 71.6.146.130 ###################
[+] Downloading BinaryEdge information...
BinaryEdge request failed, you need a paid subscription
[+] Downloading OTX information....
[+] Downloading Robtex information....
Traceback (most recent call last):
File "main.py", line 66, in <module>
main()
File "main.py", line 61, in main
plugins[args.command].run(config, args, plugins)
File "/home/harpoon/harpoon/harpoon/commands/ip.py", line 319, in run
'first': a['date'].astimezone(pytz.utc),
ValueError: astimezone() cannot be applied to a naive datetime
harpoon@Node2:~/harpoon/harpoon$ python3 main.py ip intel 59.126.107.99
###################### 59.126.107.99 ###################
[+] Downloading BinaryEdge information...
BinaryEdge request failed, you need a paid subscription
[+] Downloading OTX information....
[+] Downloading Robtex information....
[+] Downloading Passive Total information....
Traceback (most recent call last):
File "main.py", line 66, in <module>
main()
File "main.py", line 61, in main
plugins[args.command].run(config, args, plugins)
File "/home/harpoon/harpoon/harpoon/commands/ip.py", line 336, in run
"first": parse(res["firstSeen"]).astimezone(pytz.utc),
ValueError: astimezone() cannot be applied to a naive datetime
harpoon@Node2:~/harpoon/harpoon$
Ok, I think it was fixed with recent commits, could you pull the last version from github and confirm that it is working for you ?
Please reopen if it is still an issue
So only some IP's work. It is literally just random which ones work, compared to which ones don't. I have had this issue on multiple VPS's I thought it was just a servers issue, until I spun up some new ones, and I'm constantly getting the same errors. And like I said, it's just random IP's they break it, while some go through just fine.