Created
November 28, 2012 22:15
-
-
Save infertux/4165066 to your computer and use it in GitHub Desktop.
Obfuscated Ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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