Skip to content

Instantly share code, notes, and snippets.

@tharina
tharina / hacklu2017-exam-exploit.rb
Created October 19, 2017 10:08
Exploit for hack.lu CTF 2017 challenge "exam"
#!/usr/bin/env ruby
require 'socket'
class TCPSocket
def recv_until val
data = ""
while true do
tmp = self.recv 1024, Socket::MSG_PEEK
if i = tmp.index(val)

Keybase proof

I hereby claim:

  • I am tharina on github.
  • I am tharina (https://keybase.io/tharina) on keybase.
  • I have a public key whose fingerprint is B89A F096 AECB 90EC B08C 7C21 9C93 7861 4DD8 C983

To claim this, I am signing this object: