All Projects → YJBeetle → Unnpk

YJBeetle / Unnpk

Licence: apache-2.0
解包网易游戏NeoX引擎NPK文件,如阴阳师、魔法禁书目录。

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Unnpk

Dash
Scalable Hashing on Persistent Memory
Stars: ✭ 86 (-49.71%)
Mutual labels:  index
Dfi
Peer-to-peer torrent indexing
Stars: ✭ 118 (-30.99%)
Mutual labels:  index
Vuex Search
Vuex binding for client-side search with indexers and Web Workers 📗🔍
Stars: ✭ 147 (-14.04%)
Mutual labels:  index
Brein Time Utilities
Library which contains several time-dependent data and index structures (e.g., IntervalTree, BucketTimeSeries), as well as algorithms.
Stars: ✭ 94 (-45.03%)
Mutual labels:  index
Parquet Index
Spark SQL index for Parquet tables
Stars: ✭ 109 (-36.26%)
Mutual labels:  index
Lucenenet
Apache Lucene.NET
Stars: ✭ 1,704 (+896.49%)
Mutual labels:  index
Tinspin Indexes
Spatial index library with R*Tree, STR-Tree, Quadtree, CritBit, KD-Tree, CoverTree
Stars: ✭ 64 (-62.57%)
Mutual labels:  index
Xianglong
资产配置方案
Stars: ✭ 158 (-7.6%)
Mutual labels:  index
Fk Onmyoji
阴阳师抗检测多功能脚本
Stars: ✭ 116 (-32.16%)
Mutual labels:  netease
Neteasecloudmusic
Flutter - NeteaseCloudMusic Flutter 版本的网易云音乐
Stars: ✭ 1,734 (+914.04%)
Mutual labels:  netease
Wyycg Autocheckin
✨白嫖小助手提醒您:今天你白嫖网易云游戏了吗?快来跟我一起白嫖网易云游戏,成为云游戏长期在线用户吧!
Stars: ✭ 94 (-45.03%)
Mutual labels:  netease
Node Sonic Channel
🦉 Sonic Channel integration for Node. Used in pair with Sonic, the fast, lightweight and schema-less search backend.
Stars: ✭ 101 (-40.94%)
Mutual labels:  index
Music
electron跨平台音乐播放器;可搜网易云、QQ音乐、虾米音乐;支持QQ、微博、Github登录,云歌单; 支持一键导入音乐平台歌单
Stars: ✭ 1,865 (+990.64%)
Mutual labels:  netease
Odindex
Onedrive index transplanted from Heymind.
Stars: ✭ 91 (-46.78%)
Mutual labels:  index
Scaladex
The Scala Package Index
Stars: ✭ 152 (-11.11%)
Mutual labels:  index
Mhtextsearch
A fast full-text search library for Objective-C
Stars: ✭ 79 (-53.8%)
Mutual labels:  index
Guidepages
引导页/首次安装引导页/渐变引导页/APP介绍页/功能介绍页
Stars: ✭ 119 (-30.41%)
Mutual labels:  index
Electronic Netease Music
Netease Music built by Electron
Stars: ✭ 164 (-4.09%)
Mutual labels:  netease
Netease Cloud Music Community
参照网易云音乐云村做的一个小程序社区,后端技术栈为Java,SpringBoot,MySQL,Redis,前端技术栈为uni-app。欢迎吐槽。
Stars: ✭ 157 (-8.19%)
Mutual labels:  netease
Sonic
🦔 Fast, lightweight & schema-less search backend. An alternative to Elasticsearch that runs on a few MBs of RAM.
Stars: ✭ 12,347 (+7120.47%)
Mutual labels:  index

unnpk

解包网易neox游戏npk包

build

git clone https://github.com/YJBeetle/unnpk
cd unnpk
make

CentOS

sudo yum install file-libs file-devel

run

./unnpk npk_file unnpk_direcory

如何解开阴阳师的script.npk

以下将会大致讲解如何解开阴阳师的script.npk 这里将会使用 MacOS ,其他建议使用 FreeBSD & Linux,相关命令也自行理解替换为你的操作系统使用的命令,不建议使用 Windows 太折腾了. 如果您有任何希望补充的欢迎pr

准备工作

按照前文所示编译好unnpk

安装Python2.7

brew install python2

pip安装以下需要的一些依赖

pip install rotor

安装uncompyle2

git clone https://github.com/wibiti/uncompyle2.git
cd uncompyle2
python setup.py install

开始解包

./unnpk script.npk script

取出一个解开后的文件,比如这里将会使用 0A0D60DC 这个文件作为案例

首先进行解密, tools/script_redirect.py 这个文件是根据通过逆向阴阳师得到的 redirect.py 改写而来

./tools/script_redirect.py 0A0D60DC > 0A0D60DC.out

纠正 opcode(这里的pyc_decryptor.py感谢fate0的文章: http://blog.fatezero.org/2017/01/14/decrypt-onmyoji/

./tools/pyc_decryptor.py 0A0D60DC.out 0A0D60DC.pyc

反编译

uncompyle2 -o 0A0D60DC.py 0A0D60DC.pyc

至此反编译完毕

注意⚠️

这里只是演示了解开阴阳师的方法,至于网易其他的游戏,redirect.py中的asdf_dn、asdf_dt、asdf_df可能不同(也有可能相同) 这里顺便再说一下如何获取具体的redirect.py的方法吧,在 @fate0 的文章中,他使用动态调试的方法获取到了redirect.pyc,那么问题是redirect.pyc储存在哪里呢,事实上redirect.pyc就储存在script.npk里,以阴阳师2018-03-27更新的3.0.3(1)版本为例,redirect.pyc就是用本工具解开的FB54F059这个文件(文件名用npk中的偏移量命名),这里为各位解包其他游戏提供思路,具体是如何找到这个文件,方法很多,各位可自行去分析特征。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].