• Cocos2dx-js 资源.jsc和.pkm反编译


    .jsc 解密

    1. 找到apk里面的libcocos2djs.so. 用编辑器utf-b模式打开

    2. 搜索Cocos Game 紧接着的 220404db-d3df-4b 就是密码

    3. 使用工具decrypt.exe 即可解密

    下载地址:https://download.csdn.net/download/liutietuo/86511410

    1. cocos creator script decrypt version 1.0
    2. D:\Users\Administrator\Desktop\main_bundle\1ss442.jsc
    3. decrypt success
    4. Press Enter Exit

     python解密方法

    偶尔会出现编译后的jsc无法运行,或者某些jsb自定义的函数找不到,

    最好将require("jsb.js")的全部内容整合到一个文件,然后编译jsc

    具体方法:

    cat 文件a,文件b,,> xxx.js

    python 命令行路径/cocos2d.py jscomplie -s 源文件目录 -d 输出目录;

    .pkm 反编译

    1. 使用etcpack 编写批量处理软件

    1. private void getdir(string path, string extName ="")
    2. {
    3. string[] dir = Directory.GetDirectories(path); //文件夹列表
    4. DirectoryInfo fdir = new DirectoryInfo(path);
    5. FileInfo[] file = fdir.GetFiles();
    6. //FileInfo[] file = Directory.GetFiles(path); //文件列表
    7. if (file.Length != 0 || dir.Length != 0) //当前目录文件或文件夹不为空
    8. {
    9. foreach (FileInfo f in file) //显示当前目录所有文件
    10. {
    11. if (extName.Length == 0 || extName.ToLower().IndexOf(f.Extension.ToLower()) >= 0)
    12. {
    13. FileAllList.Add(f);
    14. }
    15. }
    16. foreach (string d in dir)
    17. {
    18. getdir(d, extName);//递归
    19. }
    20. }
    21. }
    22. private Process exep = null;
    23. public async Task doPrs(string fullname, string newName)
    24. {
    25. exep = new System.Diagnostics.Process();
    26. exep.StartInfo.FileName = "etcpack.exe";
    27. exep.StartInfo.Arguments = " " + fullname + " " + newName + "";
    28. exep.StartInfo.CreateNoWindow = true;
    29. exep.StartInfo.UseShellExecute = false;
    30. exep.Start();
    31. exep.WaitForExit();//关键,等待外部程序退出后才能往下执行
    32. FileInfo fnew = new FileInfo(newName);
    33. if (!fnew.Exists)
    34. {
    35. WriteErrorLine("===失败....." + fullname);
    36. }
    37. else
    38. {
    39. File.Delete(fullname);
    40. WriteSuccessLine("===成功....." + fullname);
    41. }
    42. }

    2. 使用使用看图软件

  • 相关阅读:
    Patroni源码修改三:设置浮动IP
    java的基础用法和常见错误
    Vue3 中使用provide和reject
    【OpenCV实战】4.OpenCV 五种滤波使用实战(均值、盒状、中值、高斯、双边)
    [React] Context上下文的使用
    java项目开发jsp编程web鸽谱信息系统myeclipse开发Mysql数据库计算机网页
    2022年最新前端面试题
    Django(7):视图处理函数
    linux伪文件系统proc
    DirectX12龙书--第五章笔记
  • 原文地址:https://blog.csdn.net/liutietuo/article/details/126751132