转自:Lua xxtea 解密脚本 - 简书

  1. pip install xxtea-py

  2. 脚本如下,改一下key 与 sign ,然后修改一下输入输出的绝对路径,就会递归解密

import xxtea
import osdef decrypt_xxtea_file(input_dir, output_dir, xxtea_key, xxtea_sign):print("Begin to decrypt xxtea files in dir : " + input_dir)# is original directory validif not os.path.isdir(input_dir):print("Not a valid directory path")return# is output directory validif os.path.isfile(output_dir):os.remove(output_dir)if not os.path.isdir(output_dir):os.mkdir(output_dir)files = os.walk(input_dir)for path, dir_list, file_list in files:for directory in dir_list:relevant_path = os.path.relpath(os.path.join(path, directory), input_dir)new_path = os.path.join(output_dir, relevant_path)if os.path.isfile(new_path):os.remove(new_path)if not os.path.isdir(new_path):os.mkdir(new_path)for file in file_list:# 原文件绝对路径orig_path = os.path.join(path, file)# 源文件相对路径,方便计算解密文件路径relevant_path = os.path.relpath(orig_path, input_dir)# 解密文件绝对路径new_path = os.path.join(output_dir, relevant_path)# 读取原文件orig_file = open(orig_path, "rb")encrypt_bytes = orig_file.read()orig_file.close()# 解密文件decrypt_bytes = xxtea.decrypt(encrypt_bytes[len(xxtea_sign):], xxtea_key)new_file = open(new_path, "wb")new_file.write(decrypt_bytes)new_file.close()print("Done with " + orig_path)# decryptedprint("\r\ndecrypt done")if __name__ == '__main__':in_dir = "/input/scripts/directory/"out_dir = "/output/scripts/directory/"key = "your_key"sign = "your_sign"decrypt_xxtea_file(in_dir, out_dir, key, sign)

Lua xxtea 解密脚本(转,做备忘)相关推荐

  1. Verycd上.net一些教程,自己留着做备忘..

    2009.06.03 <[浪XI原创]CSharp语言参考视频 (cgbluesky) [完整]>SWF[压缩包] http://www.verycd.com/topics/2742237 ...

  2. 纪录备忘:应用中的脚本应用

    --1.服务器端的下拉框 <asp:DropDownList ID="ddlSelectLineType" runat="server" Width=&q ...

  3. 「Android」Lenovo K860 root脚本备忘

    最近ROOT权限容易出Bug,一升级就倒霉,参照了乐phone之家论坛的root脚本,写下Linux的Root备忘: sudo ./adb shell mv /data/local/tmp /data ...

  4. [Hector学习笔记]GNSS时间序列处理软件Hector使用备忘(批处理脚本)

    由Machiel Bos 和Rui Fernandes共同研发的Hector软件可以利用时间相关噪声来估计时间序列线性趋势,是与优秀的GNSS时间序列处理软件之一. 软件安装教程:Hector软件安装 ...

  5. VB.net小技巧——VB中利用TreeView控件和Box控件做知识备忘

    提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档 VB.net小技巧--VB中利用TreeView控件和Box控件做知识备忘 这里不涉及代码的展示,主要是为了阐述一种做笔记的思想. 为 ...

  6. unity3D 功能脚本备忘【1】(方法)

    原创文章如需转载请注明:转载自 脱莫柔Unity3D学习之旅 QQ群:[Unity3D(AR/VR) 334163814][Unity3D(游戏) 119706192] 本文链接地址: 功能脚本备忘[ ...

  7. 【ExtJS实践】之五 :常用语句及脚本备忘

    由于时间紧,缺少系统的学习,导致在开发过程中,常常无法找到能够实现自己要求的正确方法.把开发过程中遇到的问题及相应的解决方法记录下来,备忘. 1.清空form表单输入的内容 Ext.getCmp(&q ...

  8. cocos2d-LUA逆向之用idaPro调试so库获取xxtea解密key

    以一个棋牌类app 大神.apk为例,,首先我们需要获取apk里面的脚本资源,可以直接用360好压解压缩apk安装包,会得到如下目录:         其中,lib目录含有我们需要调试的so库文件,文 ...

  9. Cheat—— 给Linux初学者和管理员一个终极命令行备忘单

    当你不确定你所运行的命令,尤其是那些使用了许多选项的复杂命令时,你会怎么做?在这种情况下,我们使用man pages来获取帮助.还有一些其它的选择可能包括像'help','whereis'和'what ...

  10. bash:附近有语法错误_Bash备忘单:按键组合和特殊语法

    bash:附近有语法错误 Bourne Again Shell(Bash)是POSIX计算机的文本界面. Shell,Bash或其他方式为您提供了一种无需回旋接口即可直接与计算机对话的方法:您键入希望 ...

最新文章

  1. oracle exists mysql_oracle_in_exists_left-join
  2. spark读取hbase数据
  3. JavaScript encodeURI() 函数
  4. rhel 8.2不识别unicode_基于tensorflow 实现端到端的OCR:二代身份证号识别
  5. 计算机程序的思维逻辑 (54) - 剖析Collections - 设计模式
  6. c语言0x00如何不截断_数组越界及其避免方法,C语言数组越界详解
  7. 电子信息工程四年学习之思
  8. 虚拟化服务器安装方法,Citrix Xenserver:7.0虚拟化服务器安装详细图文教程
  9. Android 添加GridView中图片的圆角样式
  10. 2021级《高级语言》重现 F 方阵
  11. 注册机偷懒写法1、之直接扣代码
  12. 迄今见过的最好的职业规划文章
  13. Arturia CZ V(音频合成器)v1.0.0.2695官方版
  14. 记账软件分享,教你如何记账并管理所有账目
  15. 写一段有趣的科普文来介绍鲫鱼
  16. java开发可视化界面_java 可视化界面编程
  17. Scheme语言直译为汉语(十四)
  18. jenkins部署 java项目到远程 windows服务器
  19. DirectX 9.0 (6)聚光灯
  20. CBQ的简单性能调优

热门文章

  1. ps2021神经ai滤镜无法使用,ps2021没法用神经元滤镜
  2. python爬取歌词_python爬虫抓取某易云音乐歌词,从此不在下载
  3. 在Git项目中使用pre-commit统一管理hooks
  4. java 微信小程序 在线学习系统app
  5. Android App加固原理与技术历程
  6. MIDI文件格式(一)
  7. Java常见异常总结
  8. 小米笔记本PRO(双系统)黑果体验
  9. 【JAVA面试题整理】框架之Shiro
  10. 关于查询FileNet PE中用户Inbox信息