Notice
Recent Posts
Recent Comments
Link
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

cdor1's lab

Root-Me PYC - ByteCode 본문

Security/Reversing

Root-Me PYC - ByteCode

Cdor1 2017. 4. 5. 16:08

using free python decompiler

    KEY = 'I know, you love decrypting Byte Code !'
    I = 5
    SOLUCE = [
        57,
        73,
        79,
        16,
        18,
        26,
        74,
        50,
        13,
        38,
        13,
        79,
        86,
        86,
        87]
    KEYOUT = []
    for X in SOLUCE:

        KEYOUT.append((ord(X) + I ^ ord(KEY[I])) % 255)
        I = (I + 1) % len(KEY)

    print KEYOUT

    if SOLUCE == KEYOUT:
        print('You Win')
    else:
        print('Try Again !')

KEY = 'I know, you love decrypting Byte Code !'
I = 5
SOLUCE = [
        57,
        73,
        79,
        16,
        18,
        26,
        74,
        50,
        13,
        38,
        13,
        79,
        86,
        86,
        87]
KEYOUT = ''
for X in SOLUCE:
	KEYOUT += chr((ord(KEY[I])^X)-I)
	I = (I + 1) % len(KEY)

print KEYOUT

'Security > Reversing' 카테고리의 다른 글

Root-Me ELF - ExploitMe  (0) 2017.04.07
Reversing.kr Multiplicative  (0) 2017.04.06
Root-Me ELF-CrackPass  (0) 2017.04.04
Root-Me ARM basic  (0) 2017.04.03
Root-Me ELF - Ptrace  (0) 2017.04.01
Comments