Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script exist on fatal error on latest version r2024-09-02 #3

Open
himynamesdave opened this issue Sep 2, 2024 · 0 comments
Open

Script exist on fatal error on latest version r2024-09-02 #3

himynamesdave opened this issue Sep 2, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@himynamesdave
Copy link
Member

himynamesdave commented Sep 2, 2024

(sigma2stix-venv) dgreenwood@Davids-MBP-2 sigma2stix % python3 sigma2stix.py \
        --mode sigmahq \
        --sigma_version_tag r2024-09-02
r2024-09-02
[2024-09-02 - 20:49:20] {/Users/dgreenwood/Documents/repos/dogesec/sigma2stix/src/sigma2stix.py:29} INFO - Cloning start
Repository cloned successfully to data
[2024-09-02 - 20:49:28] {/Users/dgreenwood/Documents/repos/dogesec/sigma2stix/src/sigma2stix.py:31} INFO - Cloning end
Deleted: data/documentation
Deleted: data/images
Deleted: data/other
Deleted: data/tests
Deleted: data/unsupported
Deleted: data/.github
Deleted: data/.git
Deleted: data/deprecated
'data/rules/windows/create_stream_hash/create_stream_hash_ads_executable.yml', 'data/rules/windows/create_stream_hash/create_stream_hash_winget_susp_package_source.yml', 'data/rules/windows/create_stream_hash/create_stream_hash_regedit_export_to_ads.yml', 'data/rules/windows/create_stream_hash/create_stream_hash_file_sharing_domains_download_susp_extension.yml', 'data/rules/windows/create_stream_hash/create_stream_hash_hktl_generic_download.yml']}]
  0%|                                                   | 0/155 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/Users/dgreenwood/Documents/repos/dogesec/sigma2stix/sigma2stix.py", line 21, in <module>
    Sigma2Stix(branch=args.sigma_version_tag).run(args.mode, args.file)
  File "/Users/dgreenwood/Documents/repos/dogesec/sigma2stix/src/sigma2stix.py", line 50, in run
    temp_data += self.parser.parse_indicator(data, file, url)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/dgreenwood/Documents/repos/dogesec/sigma2stix/src/parser.py", line 23, in parse_indicator
    created=datetime.strptime(data.get('date'), "%Y/%m/%d"),
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: strptime() argument 1 must be str, not datetime.date

@himynamesdave himynamesdave added the bug Something isn't working label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants