Skip to content

Instantly share code, notes, and snippets.

@ThatXliner
Last active April 12, 2022 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThatXliner/1627c291aaa8899adb3c8a554e7c6ee8 to your computer and use it in GitHub Desktop.
Save ThatXliner/1627c291aaa8899adb3c8a554e7c6ee8 to your computer and use it in GitHub Desktop.
An obfuscated python one-liner that re-cases your inputs in bAsKeTcAsE! Now with a shell-like functionality!
import itertools;print("Say hello to cAsE!\n\tThe world's first case-messing shell. Written in Python 🐍!\nHOW IT WORKS:\n"+'='*12+'\n1. You enter something\n2. iT TrAnSfOrMs iT To sOmEtHiNg cRaZy\n\nEnjoy! 😊 - ThatXliner');[print(''.join([(lambda x,y:y.lower()if x%2==0 else y.upper())(A,B)for(A,B)in enumerate(input('(cAsE)> '))])) for _ in itertools.cycle('a')]
python3 -c "$(curl -sSf https://gist.githubusercontent.com/ThatXliner/1627c291aaa8899adb3c8a554e7c6ee8/raw/90a60b8bc5a226a9a74d3ba90de82cd24d57f753/bAsKeTcAsE.py)"
@ThatXliner
Copy link
Author

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