File size: 374 Bytes
db97f61
2225f4b
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import base64
XOR_KEY=90
def decode_cmd(encoded_str):return base64.b64decode(encoded_str[::-1]).decode()
def deobfuscate_secret(hex_str,key=XOR_KEY):
	A=hex_str
	if not A:return''
	try:
		C=bytes.fromhex(A.strip());B=bytes([A^key for A in C])
		if all(32<=A<=126 or A in(9,10,13)for A in B):return B.decode('utf-8',errors='ignore')
		else:return A
	except Exception:return A