App - System
Wednesday 7 June 2017, 10:32 #1
64 Bits Linux Stack Based Buffer Overflow
Hi you guys,
I can try to pass parameter into gdb. After I ran program, I pass parameter by python command like that: `run $(python -c ’print "A"*300’)`. But It do not work!
Giving me solutions! Please. Thanks
Friday 4 August 2017, 20:39 #2
64 Bits Linux Stack Based Buffer Overflow
Hi,
As you see from the source code, the input is not passed as a command-line argument (as you do if you use `run blablabla`).
The input to the program is read with `scanf`. You can use redirection from a file in gdb as `run < yourinputfile`.
Hope this helps!