Skip to content

之前能解密的js文件现在都无法解密了 #99

Description

@smallgirl

之前能解密的js,现在git actions 执行以后无法解密了,项目原始的input.js 也无法解密了
看git action 有提示报错

Run python src/decode.py
python src/decode.py
shell: /usr/bin/bash -e {0}
无法进一步解密,退出循环
b'BZh91AY&SY\xa8B\xfa(\x000\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xe0?\xbf{\xd7t\xee\xee\xf7\xb6\xa5\xbb\xef=\xee\xfb\xdd\xdb\xbco\xbc\xde_}\xef\

回退到旧版本源码 报错
无法进一步解密,退出循环
b'import requests\nimport os\nimport time\nimport random\nimport hashlib\nclass yuanshen():\n def init(self,cookie):\n self.cookie=cookie\n self.h={"Host":"app.zhuanbang.net","accept":"application/json, image/webp","user-agent":"Mozilla/5.0 (Linux; Android 12; M2104K10AC Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/96.0.4664.104 Mobile Safari/537.36 HuoNiuFusion/1.25.0_231652","x-requested-with":"XMLHttpRequest","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","sec-fetch-dest":"empty","referer":"https://app.zhuanbang.net/assist/activity/47","accept-language":"zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7","accept-encoding":"gzip","Cookie":f"NiuToken={self.cookie}"}\n def sign_(self):\n d=f"{self.csrftoken}#{self.sessionId}#{self.time}"\n byte_string=d.encode('utf-8')\n sha1=hashlib.sha1()\n sha1.update(byte_string)\n sign=sha1.hexdigest()\n return sign\n def video(self,key):\n i=0\n while True:\n i+=1\n url=f"https://app.zhuanbang.net/{key}/launch?_random={int(time.time() * 1000)}&type=slide"\n r=requests.get(url,headers=self.h).json()\n if r['code']==0:\n print(f"\xe7\xac\xac[{i}]\xe4\xb8\xaa\xe7\xba\xa2\xe5\x8c\x85\xe8\x8e\xb7\xe5\x8f\x96\xe4\xbf\xa1\xe6\x81\xaf\xe6\x88\x90\xe5\x8a\x9f")\n self.csrftoken=r['data']['extArgs']['csrfToken']\n self.sessionId=r['data']['extArgs']['sessionId']\n self.time=int(time.time())\n url=f"https://app.zhuanbang.net/{key}/award/grant?_t={self.time}"\n data={"csrfToken":f"{self.csrftoken

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions