Skip to content

Instantly share code, notes, and snippets.

View saelo's full-sized avatar

Samuel Groß saelo

  • Zürich, Switzerland
  • X @5aelo
View GitHub Profile
@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)
@spikegrobstein
spikegrobstein / tmux.conf
Last active July 22, 2022 15:23
my tmux config (updated for 2.4)
# This requires tmux 2.1. a lot of these settings will error on anything earlier.
# Act like Vim; use h,j,k,l to select panes and move the cursor
set-window-option -g mode-keys vi
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Look good