c - How to buffer overflow the 'gets' method in Ruby? -


i wrote client gets input keyboard , stores in variable, so:

x = gets 

in c, memory allocated standard input , can overflow buffer , overwrite return address on stack if write enough characters buffer.

char buffer[10]; gets(buffer); 

how can go overflowing buffer used in ruby? haven't had luck on finding information pertaining how exploit programs not written in c. i've been following book called "the shellcoder's handbook" , in c. there resources @ explain how exploit programs written in other languages, in ruby? or there reason why exploit books written c language, other languages advanced?

based on observation, seems if can feed many characters want to 'gets' method in ruby , not overflow, making protected overflow exploits.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -