Why does buffer overflow work one way but not the other? 10-04-2015, 01:09 AM
#1
Hey all,
I'm doing a buffer overflow challenge on the Wargame "Narnia" on OvertheWire:
http://overthewire.org/wargames/narnia/
changing the value to 0xdeadbeef works if i use the python command in terminal:
but if i just put in
as an arguement for narnia0 it doesn't change the value?
am I doing something wrong?
I'm doing a buffer overflow challenge on the Wargame "Narnia" on OvertheWire:
http://overthewire.org/wargames/narnia/
changing the value to 0xdeadbeef works if i use the python command in terminal:
Code:
python -c 'print "A"*20 + "\xef\xeb\xad\xde"' | /narnia/narnia0but if i just put in
Code:
AAAAAAAAAAAAAAAAAAAA\xef\xbe\xad\xdeam I doing something wrong?
![[Image: pBD38Xq.png]](http://i.imgur.com/pBD38Xq.png)
Email: insidious@protonmail.ch





![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)

