APT-Hunter icon indicating copy to clipboard operation
APT-Hunter copied to clipboard

UnknownTimeZoneError

Open MariasStory opened this issue 3 years ago • 2 comments

Hi @ahmedkhlief, Thank for the cool tool. It used to work fine. Now I am getting:

                                                                By : Ahmed Khlief , @ahmed_khlief
                                                                Version : 2.0
                                                                                                  
Traceback (most recent call last):
  File "APT-Hunter/APT-Hunter.py", line 357, in <module>
    main()
  File "APT-Hunter/APT-Hunter.py", line 317, in main
    input_timezone=timezone(args.timezone)
  File "/usr/local/lib/python3.8/dist-packages/pytz/__init__.py", line 188, in timezone
    raise UnknownTimeZoneError(zone)
pytz.exceptions.UnknownTimeZoneError: 'evtx'

MariasStory avatar Nov 29 '21 14:11 MariasStory

can you please share the argument you provide when you run the tool

ahmedkhlief avatar Jan 29 '22 07:01 ahmedkhlief

Hi @ahmedkhlief!

I have the same error. APT-Hunter works when I manually set the timezone with the -tz argument, so that's the workaround.

Not working: python3 APT-Hunter.py -t evtx -p ./evtx/ -o Project1

Working: python3 APT-Hunter.py -t evtx -p ./evtx/ -o Project1 -tz UTC

fiskeren avatar Feb 10 '22 14:02 fiskeren

Hi , Please check the new release (V3.0)

ahmedkhlief avatar Jan 29 '23 06:01 ahmedkhlief