I have built a very small C program that accepts arguments from the command line to experience with buffer overflows. I am trying to overwrite the stack's function return value with a specific hexadecimal value. Instead of looking through the ASCII chart, I know I can use python to translate hex values to ASCII for me.
I've only found documentation for Linux that havn't worked for me on Windows.
Run function from the command line
./myProgram $(python -c "print '\x48\x65\x6c\x6c\x6f'") (from above links)
What I have tried :
myprogram.exe ($python -c print('\xe9\x14\x40\x00'))
myprogram.exe
$python -c print('\xe9\x14\x40\x00')
myprogram.exe
python -c "print('\xe9\x14\x40\x00')"
Result should be:
myprogram.exe [argv1]
use python's print function to input value into argv1
myprogram.exe é[]@
[] is not a printable character. It's hex 14 in the ASCII table