KeyError: 138
まだ誰も着手していません。
評価
調査の方向性
Start with Evtx/Nodes.py at get_variant_value, where the traceback shows the unknown type value is looked up, then trace how Microsoft-Windows-Ntfs%4Operational.evtx reaches that parser. The report says the file exports correctly from Windows and mentions that original and exported files were sent; reproduce the failure with the sample if it is available. Done means evtx_dump.py handles the reported record without raising KeyError: 138.
索引モデルが issue の本文から書いたものです。
説明
hi Willy,
I've this issue with evtx_dump.py on Microsoft-Windows-Ntfs%4Operational.evtx file (from Windows 10) :
Traceback (most recent call last):
File "/usr/bin/evtx_dump.py", line 42, in <module>
main()
File "/usr/bin/evtx_dump.py", line 37, in main
print(record.xml())
File "/usr/lib/python3.6/site-packages/Evtx/Evtx.py", line 481, in xml
return e_views.evtx_record_xml_view(self)
File "/usr/lib/python3.6/site-packages/Evtx/Views.py", line 204, in evtx_record_xml_view
return render_root_node(record.root())
File "/usr/lib/python3.6/site-packages/Evtx/Views.py", line 191, in render_root_node
return render_root_node_with_subs(root_node, subs)
File "/usr/lib/python3.6/site-packages/Evtx/Views.py", line 176, in render_root_node_with_subs
rec(c, acc)
File "/usr/lib/python3.6/site-packages/Evtx/Views.py", line 126, in rec
rec(child, acc)
File "/usr/lib/python3.6/site-packages/Evtx/Views.py", line 166, in rec
sub = render_root_node(sub.root())
File "/usr/lib/python3.6/site-packages/Evtx/Views.py", line 182, in render_root_node
for sub in root_node.substitutions():
File "/usr/lib/python3.6/site-packages/Evtx/BinaryParser.py", line 64, in __call__
cache[key] = self.func(*args, **kw)
File "/usr/lib/python3.6/site-packages/Evtx/Nodes.py", line 1011, in substitutions
self._chunk, self, type_, length=size)
File "/usr/lib/python3.6/site-packages/Evtx/Nodes.py", line 468, in get_variant_value
TypeClass = types[type_]
KeyError: 138
the evtx file Microsoft-Windows-Ntfs%4Operational.evtx seems to be ok because it is correctly exported from Windows : I send you the exported and the original evtx file...
regards, lacsaP.
- 主要言語
- Python
- スター
- 785
- フォーク
- 170
- 平均マージ
- 2日 21時間
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
williballenthin/python-evtx のほかの issue
-
Infinite loop in ChunkHeader._load_strings / _load_templates on a crafted chunk (cyclic next_offset)対応中かも @memx13 が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
williballenthin/python-evtx#101 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 42/100
williballenthin/python-evtx#94 · コメント 2 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
williballenthin/python-evtx#85 · コメント 2 件 ·
williballenthin/python-evtx の issue をすべて見る
似ている issue
-
README.zh-CN/ja/es still hard-code 501 test counts after README.md went count-free対応中かも @Aaqibhafeezkhan が今日担当しました。 オープンbeginner documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
BistaDinesh03/critique#164 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug IO
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
MrNeRF/LichtFeld-Studio#3824 ·
メンテナーはふだん 1 日以内に返信
-
bug confirmed issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
open-webui/open-webui#33200 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
The changelog workflow excludes otelbot but not dependabot, so every Dependabot pull request fails the changelog check対応中かも @ocelotl が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
open-telemetry/opentelemetry-python#5825 ·
メンテナーはふだん 2 日以内に返信