api = 'interesting'
有人可以提供一个示例,说明如何在 python 中循环这个对象并在哪里和拉出“值”arguments.name = 'FileName'
吗?
这是我到目前为止所拥有的。
这个对象有更多的进程和调用......输出已被省略。
编辑:我应该提到运行此代码时出现以下错误:“TypeError:列表索引必须是整数,而不是 str”
for k, v in object['behavior']['processes']['calls'].items():
if v['api'] == "interesting":
<loop through arguments next>
目的:
{"behavior": {
"processes": [
{
"parent_id": "312",
"process_name": "test.exe",
"process_id": "1184",
"first_seen": "2013-03-02 17:22:48,359",
"calls": [
{
"category": "filesystem",
"status": "FAILURE",
"return": "0xc000003a",
"timestamp": "2013-03-02 17:22:48,519",
"thread_id": "364",
"repeated": 0,
"api": "interesting",
"arguments": [
{
"name": "FileHandle",
"value": "0x00000000"
},
{
"name": "DesiredAccess",
"value": "0x80100080"
},
{
"name": "FileName",
"value": "c:\\cgvi5r6i\\vgdgfd.72g"
}, ...