~/talk

Unix For Rubyists

Talkat RubyConf MY 2017 · 2017-10-12..10-13· [ruby, linux-and-operating-systems]
links:none on file
slides:none on file

A Ruby bank script creates 51 FIFO files and forks 51 child processes to represent pins; the combination is five numbers and the process prints it on SIGUSR1 but that output goes to a different TTY. The exploit uses strace -p to see write syscalls reveal the combo, lsof to find the FIFO path, echo to poke pins, and gdb to close and reopen file descriptor 1 onto /dev/pts/X so the combo prints locally. An alternate vector demonstrates ssh agent forwarding risks by exporting SSH_AUTH_SOCK to hijack keys and reach the vault.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 5:20What is UNIX
  3. 11:32UNIX concepts for Rubyists
  4. 17:56Step one get the combination
  5. 20:06Step two enter the combination
  6. 23:18Recovering lost terminal output
  7. 23:38Process forking in UNIX
  8. 28:42Fork exec pattern
  9. 31:40SSH agent hijacking
  10. 35:36Summary and security tips
  11. 36:20Contest winners and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.