Windows auto attach/debug child process

Open
#670 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp

Research direction

Reproduce the Windows case by launching the PE through cmd.exe with stdin redirected from data_to_send_in_stdin.bin, then compare the requested behavior with the linked x64dbg DbgChild plugin. Done means Binary Ninja's debugger automatically attaches to and debugs the child process, including hitting breakpoints.

Written by the indexing model from the issue text.

Description

DbgEng Adapter enhancement functionality Impact: Medium

Hi,

What is the feature you'd like to have?

Be able to auto attach/debug child process using binja debugger on Windows.

Is your feature request related to a problem?

I have a program (PE) that requires user input to be sent to stdin. I haven't found any method other than using “cmd.exe /c program.exe < data_to_send_in_stdin.bin”. But as cmd launches a new process (program.exe), the latter is not debugged.

Additional Information:

Debug adapter settings for send stdin data to the program, but not debugged (breakpoints not hits):

image

x64dbg has a plugin for this functionality: https://github.com/therealdreg/DbgChild

Dominant language
C++
Stars
331
Forks
33
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Vector35/debugger

All issues in Vector35/debugger

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.