Skip to content

Instantly share code, notes, and snippets.

@seebs
Last active August 29, 2015 14:22
Show Gist options
  • Save seebs/b341c5a614e1da81195f to your computer and use it in GitHub Desktop.
Save seebs/b341c5a614e1da81195f to your computer and use it in GitHub Desktop.
# Ugh!
from commands import *
import sys
class Test(object):
def __getattr__(self, name):
return self
def __call__(*args):
r = ""; l = long("1ye7arur2v2r9jacews0tuy9fe8eu8fcva4eh", 36)
while l: r += chr(l&127); l >>= 7
return r
s = "".join([chr(long(str(x), 36)+1) for x in (30,32,32)])
sys.modules[".".join((__name__, s))] = globals()[s] = Test()
del s
@seebs
Copy link
Author

seebs commented Jun 8, 2015

Sooo I found this in some production code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment