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

Rewrite pstree #599

Merged
merged 7 commits into from
Jul 23, 2021
Merged

Rewrite pstree #599

merged 7 commits into from
Jul 23, 2021

Conversation

kscieslinski
Copy link
Contributor

@kscieslinski kscieslinski commented Jul 21, 2021

Tested. Should work fine with current drakvuf.

Features

  1. should fix the issue with 2 processes with the same pid during a single analysis
  2. logs arguments - the next step could be displaying them on the frontend
{
    "pid": 2004,
    "procname": "\\Device\\HarddiskVolume2\\Users\\janusz\\Desktop\\malwar.exe",
    "args": [],
    "ts_from": 0,
    "ts_to": 1625823132.913998,
    "children": [
        {
            "pid": 2896,
            "procname": "C:\\Users\\janusz\\AppData\\Local\\Temp\\AdvancedRun.exe",
            "args": [
                "\"C:\\Users\\janusz\\AppData\\Local\\Temp\\AdvancedRun.exe\"",
                "/EXEFilename",
                "\"C:\\Windows\\System32\\sc.exe\"",
                "/WindowState",
                "0",
                "/CommandLine",
                "\"stop WinDefend\"",
                "/StartDirectory",
                "\"\"",
                "/RunAs",
                "8",
                "/Run"
            ],
            "ts_from": 1625823125.635295,
            "ts_to": 1625823127.423111,
            "children": []
        }
    ]
}

@kscieslinski kscieslinski requested a review from chivay July 21, 2021 12:07
drakcore/drakcore/postprocess/pstree.py Outdated Show resolved Hide resolved
drakcore/drakcore/postprocess/pstree.py Outdated Show resolved Hide resolved
drakcore/drakcore/postprocess/pstree.py Outdated Show resolved Hide resolved
drakcore/drakcore/postprocess/pstree.py Outdated Show resolved Hide resolved
drakcore/drakcore/postprocess/pstree.py Outdated Show resolved Hide resolved
drakcore/drakcore/postprocess/pstree.py Outdated Show resolved Hide resolved
drakcore/drakcore/postprocess/pstree.py Outdated Show resolved Hide resolved
@kscieslinski kscieslinski merged commit cea4e5a into master Jul 23, 2021
@kscieslinski kscieslinski deleted the fix-process-tree branch July 23, 2021 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants