How do i send arguments from C# windows form to GDB console? -
i'm trying make app tests buffer overflow through c# windows form. that, need open gdb c# process , pass following commands:
- cd c:\users\user\desktop
- file file.exe
- disas main
- run file
- insert input
the following code start gdb.exe, unfortunately not change working directory.
process p = new process(); p.startinfo.filename = "gdb.exe"; p.startinfo.arguments = @"cd c:\users\andrei\desktop"; p.start();
the gdb console output looks like:
cd: no such file or directory. c:\users\andrei\desktop: permission denied.
so, have 3 problems now:
- how make change working path?
- how send other commands arguments?
- how console output c# in label/textbox?
thank you.
Comments
Post a Comment