是不是少东西了,很楼上几位的差不多,反编译源码,用的uncompyle6工具
# uncompyle6 version 3.9.3
# Python bytecode version base 2.7 (62211)
# Decompiled from: Python 3.12.0 (tags/v3.12.0:0fb18b0, Oct 2 2023, 13:03:39) [MSC v.1935 64 bit (AMD64)]
# Embedded file name: X:\GJ\python\py\KOP\k.py
# Compiled at: 2025-03-17 05:20:47
def b64encode(str):
b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
b = ''
Mi = ''
for i in str:
b += format(ord(i), '08b')
if len(b) % 6 != 0:
b = b + '0' * (6 - len(b) % 6)
for i in range(0, len(b), 6):
Mi += b64[int(b[i:i + 6], 2)]
if len(Mi) % 4 != 0:
Mi = Mi + '=' * (4 - len(Mi) % 4)
return Mi
def b64decode(str):
b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
b = ''
key = ''
for i in range(1, 3):
str = list(str)
if str[len(str) - i] == '=':
str.remove('=')
str = ('').join(str)
for i in str:
b += format(b64.index(i), '06b')
if len(b) % 8 != 0:
k = len(b) % 8
b = b[::-1][k:][::-1]
for i in range(0, len(b), 8):
key += chr(int(b[i:i + 8], 2))
return key
return
# okay decompiling C:\Users\Admin\Desktop\pyc.pyc
|