Sunday, June 12, 2011

Buffer Overflow w/ Perl/Python multiply the same character, repeat character

$ ./program `python -c "print 'a'*300 + 'A'*20"`
Segmentation fault (core dumped)

$ ./program `perl -e "print 'a'x300 . 'A'x20"`
Segmentation fault (core dumped)

No comments:

Post a Comment