KeyError: 138
還沒有人認領這個 Issue。
評估
研究方向
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
- 星號
- 786
- 分支
- 170
- 平均合併
- 2 天 21 小時
- 30 天內合併 PR
- 1
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
williballenthin/python-evtx 的其他 Issue
-
Infinite loop in ChunkHeader._load_strings / _load_templates on a crafted chunk (cyclic next_offset)可能已有人在做 @memx13 於 9 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
williballenthin/python-evtx#101 ·
-
難度 5/5 一週以上 新手友好度 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
-
難度 1/5 1 小時以內 新手友好度 88/100
btclib-org/btclib-node#2198 ·
維護者通常 1 天內回覆
-
Remove the em dashes from the skill smart-account reference可能已有人在做 @Vamsi-2581 今天認領。 未關閉agent-ready area: docs documentation good first issue
難度 2/5 1-3 小時 新手友好度 74/100
Soneso/stellar-agent-wallet#541 · 2 則留言 ·
維護者通常 1 天內回覆
-
good first issue
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
sususweet/midea_auto_cloud#285 ·
維護者通常 1 天內回覆
-
2026-11 documentation good first issue gsoc-2027 project: gsoc
難度 2/5 1-3 小時 新手友好度 75/100
alphaonelabs/website#1154 · 1 則留言 ·
維護者通常 1 天內回覆