프로그래밍/Python

CK VIP Exploit 디코드

1q 2017. 1. 4. 22:05

document.write("<xmp>")를 이용해 난독화된 script 구문을 해제한 후 아래 파이썬 스크립트를 사용하여 복호화 할 수 있다.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import sys
import re
 
 
def main(pecst, number):
    ck = []
    pecst = pecst.split(",")  
    for i in range(0len(pecst)):
        ck.append(chr(int(pecst[i])-int(number)))
    print "".join(ck)
 
if __name__ == "__main__":
    arrays = raw_input("Input your suspected arrays : ")
    number = raw_input("number : ")
    main(arrays, number)
cs