破解天翼云Base64 js加密(二)
#!/usr/bin/env python# -*- coding:utf-8 -*-import base64import js2pyimport threadinglock = threading.Lock()def get_userPwd_enc(email, pwd):with open(r"D:\Yuan\ss\电信天翼云.js", encodin...
·
#!/usr/bin/env python # -*- coding:utf-8 -*- import base64 import js2py import threading lock = threading.Lock() def get_userPwd_enc(email, pwd): with open(r"D:\Yuan\ss\电信天翼云.js", encoding='utf-8') as f: cx = f.read() lock.acquire() # 枷锁 context = js2py.EvalJs() context.execute(cx) #东方-天翼云.js # encPwd = context.get_pwd(email, pwd) #电信天翼云.js encPwd = context.get_pwd(email,pwd) lock.release() # 解锁 return encPwd if __name__ == '__main__': email = "g111111@163.com" pwd = "y123456" name = get_userPwd_enc(email, pwd) print(name) # 浏览器 "åcwÎKæjYî6üo!"" # 输出 "åcwÎKæjYî6üo!"" # 浏览器 "5WN3zkvmahZZ7jaP/G8hIg==" # 输出 "5WN3zkvmahZZ7jaP/G8hIg==" result = base64.b64encode(name.encode('latin1')) print(result.decode())
更多推荐
所有评论(0)