golang的逆向,用8.2看起来还是很方便,之前写过go逆向的入门
挺简单的,一个base64,一个xor,就是程序储存字符串的时候有点意思,直接给代码吧
先base64解码,再和给的key xor
key="cH@t_GpT_15_h3R3"
key2="TcR@3t_3hp_5_G1H"
enc=""#这里是加密字符串
print(enc)
import base64
s = enc
sw=bytes(s,'utf-8')
sr=base64.b64decode(sw)
print((sr))
print(" \n")
for i in range(16):
print(chr((sr[i])^ord(key2[i%16])),end='')
for i in range(16,32):
print(chr((sr[i])^ord(key2[i%16])),end='')