longld / peda

PEDA - Python Exploit Development Assistance for GDB
Other
5.84k stars 801 forks source link

Extraneous characters passed in argument to debugged executable #118

Open ghost opened 6 years ago

ghost commented 6 years ago

Running my executable with

start `echo -ne 'AAAAAAAAAAABBBBBBBBBB\xf7\xd7\xff\xffCCCCCC'`

results in extraneous characters, in this case the \303 (0xc3) in the argument string: EAX: 0xffffd7f6 ('A' <repeats 11 times>, "BBBBBBBBBB\303\267\303\227\303\277\303\277CCCCCC") This problem isn't present in bare bones gdb so I think it's a PEDA issue.

longld commented 6 years ago

Yes, it's a bug with start command. Workaround: use run instead :)