Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created May 29, 2016 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b59bac35fab7829b25a40850909f62d4 to your computer and use it in GitHub Desktop.
Save anonymous/b59bac35fab7829b25a40850909f62d4 to your computer and use it in GitHub Desktop.
require 'mkfifo'
fifofile = "/tmp/sshfifotest"
File::mkfifo(fifofile)
File::chmod(0600, fifofile)
writer = File.open(fifofile, "w+")
writer.puts "123123123"
writer.flush
writer.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment