Skip to content

Instantly share code, notes, and snippets.

@ptmcg
Last active October 21, 2020 13:41
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 ptmcg/20d1076e24b259aa8418f7088f670fd8 to your computer and use it in GitHub Desktop.
Save ptmcg/20d1076e24b259aa8418f7088f670fd8 to your computer and use it in GitHub Desktop.
A familiar song
import time, sys, base64
for i, v in enumerate((getattr, time, sys, "sleep",
"decode", "bytes", "stdout",
"write", "flush", 1.0, 6,
base64, "upper", 1000.0, "'",
print, 0), start=3):
vars()['_'*i] = v
_ = (
b'RGFpc3kgRGFpc3kgZ2l2ZSBtZSB5b3VyIGFuc3dlciBk'
b'bwpJJ20gaGFsZiBjcmF6eSBhbGwgZm9y\nIHRoZSBsb3'
b'ZlIG9mIHlvdQpJdCB3b24ndCBiZSBhIHN0eWxpc2ggbWF'
b'ycmlhZ2UKSSBjYW4ndCBh\nZmZvcmQgYSBjYXJyaWFnZQ'
b'pCdXQgeW91J2xsIGxvb2sgc3dlZXQgdXBvbiB0aGUgc2V'
b'hdApPZiBh\nIGJpY3ljbGUgYnVpbHQgZm9yIHR3bw=='
)
OOo,OoO,ooO,Ooo,oOo,OOO,ooo,oo = ___(
____,______),____________/_____________,___(___(
______________,_______+________)(_),_______)(
),___________________,_________________,(
____________ + _____________/________________
),__________________,__________________
O = lambda _: ___(___(_____,_________),__________)(
___(_,_______________)()) and ___(___(_____,
_________),___________)()
for o in ooO:
O(o) or OOo((OoO, Ooo)[o==oOo])
OoO *= OOO
oo() or ooo()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment