Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@infertux
Created November 28, 2012 22:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infertux/4165066 to your computer and use it in GitHub Desktop.
Save infertux/4165066 to your computer and use it in GitHub Desktop.
Obfuscated Ruby
# -*- coding: UTF-8 -*-
def    
require   # what?
end
%w(open-srx gnmt). # interesting...
each_with_index{
|a, а| (42**а*1337). # some magic numbers there - wait... |a, a| really?
times {a.succ!}
  a}# # what's the point?
p JSON.parse(open(<<-RUBY # JSON is everywhere & "RUBY" in ASCII art
ugg c , !!e h ol
t r z f . b e t
!nc v ! i1! n
pg v i v g l
! w hfg_ hcq n
grq.wfba
RUBY
.gsub!(/\s/, ''). # easy one
tr(' -,a-z', '\.-:n-za-m')). # could it be a fishy smiley?
read # yeah, I'm trying...
)['-i'.to_c.to_s.unpack( # hint: sqrt(-1)
's!x' # six?
).pop - # I think my brain's gonna pop...
0x2d30] # ... a magic constant!
# This code outputs the latest updated RubyGem – obviously!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment