Exploitation with Ruby



In the Exploitation with Ruby lab when I’m trying to interact with the service it shows me following error:

pry --simple-prompt

s = TCPSocket.new “”,7707
NameError: uninitialized constant TCPSocket
from (pry):1:in `pry

It’s not in the instructions but after you do:

pry --simple=prompt

You also need to do:

require ‘socket’

Then try again:

s = TCPSocket.new ‘[rhost]’,[rport]

That worked for me anyways.