Skip to content

return full path #84

@lprat

Description

@lprat

Hi,
Thanks for you work!
I would like extract full path on query.
With jq , i can do:
$ cat report-cuckoo.json |jq 'path(.. |.file_written?| select(.!=null))'
[
"behavior",
"generic",
1,
"summary",
"file_written"
]
[
"behavior",
"summary",
"file_written"
]
Is it possible with your tool?
Loading JSON document from report-cuckoo.json... done.

$..*[@.file_written]
[
[
"C:\Users\cuck\AppData\LocaldsDwSUeGcL.exe",
"C:\Users\cuck\AppData\LocalMgyoNizMqk.jpg"
],
[
"C:\Users\cuck\AppData\LocaldsDwSUeGcL.exe",
"C:\Users\cuck\AppData\LocalMgyoNizMqk.jpg"
]
]
I don't found solution.

Thanks for help.
Sincerly,
Lionel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions