Skip to content

Instantly share code, notes, and snippets.

@infertux infertux/gem.rb
Created Nov 28, 2012

Embed
What would you like to do?
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
You can’t perform that action at this time.