r/programming • • 7d ago

Ruby2Shell

https://verialabs.com/ruby2shell/
183 Upvotes

44 comments sorted by

View all comments

Show parent comment

19

u/freddylmao 7d ago

You can control the length of the buffer. This means that this is a primitive for writing one byte at a time, from finish to start. It is likely difficult to set up a shell using this, unless you are keenly aware of the memory layout on the server. My guess is that you'd have to rely on some coincidence between the letters 'S' and 's' and some architecture's bytecode.