Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created September 4, 2016 22:02
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/d872193c31b3e125430c3f7d1acbe2a3 to your computer and use it in GitHub Desktop.
Save anonymous/d872193c31b3e125430c3f7d1acbe2a3 to your computer and use it in GitHub Desktop.
# Pastebin FTzepJLR
require_relative 'restrict'
Restrict.set_timeout
class Private
private
public_methods.each do |method|
eval "def #{method.to_s};end"
end
def flag
return "TWCTF{CENSORED}"
end
end
p = Private.new
Private = nil
input = STDIN.gets
fail unless input
input.size > 24 && input = input[0, 24]
Restrict.seccomp
STDOUT.puts eval(input)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment