I decompiled a pyc file with uncompyle6, and this is the result:

# uncompyle6 version 3.7.3
# Python bytecode 3.6 (3379)
# Decompiled from: Python 3.6.9 (default, Aug 24 2020, 10:24:35) 
# [GCC 9.3.0]
# Embedded file name: /dev/null/dev/null/dev/null/dev/null/crackme.py
# Compiled at: 2020-06-30 20:00:00
# Size of source mod 2**32: 545 bytes
import base64
from zlib import decompress as ᥤ
if __name__ == '__main__':
    input_ = input('Enter your password: ')
    password = base64.b64encode(input_.encode())
    Þåçѡӧґд = (b'x\xde\xad\xbe\xef^\x0b\xf6\xf5\r\nv\xf6\xf0\xa9\x0e\xa8,\xc90\xc8\x8bO\x8a,1\x8eO6H1\x8e7,\xf6+\x89/6N.-J\xad\x05\x00\xfc\xe3\rh').replace(b'\xde\xad\xbe\xef', b'')
    if base64.b64decode(password) == ᥤ(Þåçѡӧґд):
        print('The flag is', input_)
        print('Incorrect flag! Try reading my code…')
# okay decompiling /home/kali/jscu/reversing1/crackme.pyc

Clearly, the second password variable is gibberish, and I can't make much of the contents of that variable either. What could I try to make sense of this?

  • 1
    it is all visible there is no gibberish in there just think and execute fewlines it isnt so secure – blabb Aug 24 at 18:52

It’s not gibberish, the code is simply using non-ASCII variable names which is perfectly fine in Python.

| improve this answer | |
  • You're right actually, my brain must've been fried yesterday. Thanks. – Magusviper Aug 25 at 7:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.