# 千年之旅

**URL:** <https://live2dhub.com/t/topic/3229>\
**Category:** 讨论\
**Created:** [2024 年5 月 23 日 19:24 UTC](https://live2dhub.com/t/topic/3229 "2024-05-23T19:24:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

作者： ![206946](https://live2dhub.com/letter_avatar_proxy/v4/letter/2/9d8465/32.png) [@206946](https://live2dhub.com/u/206946)\
发布日期： [2024 年5 月 23 日 19:24 UTC](https://live2dhub.com/t/topic/3229/1 "2024-05-23T19:24:30Z")

</div>

有大佬解包千年之旅吗

---

<div class="post-metadata">

作者： ![garry123](https://live2dhub.com/letter_avatar_proxy/v4/letter/g/3da27b/32.png) [@garry123](https://live2dhub.com/u/garry123)\
发布日期： [2024 年8 月 9 日 23:11 UTC](https://live2dhub.com/t/topic/3229/3 "2024-08-09T23:11:08Z")

</div>

我会

---

<div class="post-metadata">

作者： ![fateli](https://live2dhub.com/letter_avatar_proxy/v4/letter/f/b9e5f3/32.png) [@fateli](https://live2dhub.com/u/fateli)\
发布日期： [2024 年8 月 12 日 16:45 UTC](https://live2dhub.com/t/topic/3229/5 "2024-08-12T16:45:56Z")

</div>

能说一下是怎么解包的吗？楼上大佬的提示没看懂，好像要自己写异或算法解密的脚本才行。

---

<div class="post-metadata">

作者： ![garry123](https://live2dhub.com/letter_avatar_proxy/v4/letter/g/3da27b/32.png) [@garry123](https://live2dhub.com/u/garry123)\
发布日期： [2024 年8 月 14 日 17:07 UTC](https://live2dhub.com/t/topic/3229/6 "2024-08-14T17:07:38Z")

</div>

我映像中它似乎沒有加密,你可以尋找它的存儲位置讀取它的資產.

---

<div class="post-metadata">

作者： ![liudezhou](https://live2dhub.com/letter_avatar_proxy/v4/letter/l/bc79bd/32.png) [@liudezhou](https://live2dhub.com/u/liudezhou)\
发布日期： [2025 年2 月 10 日 23:11 UTC](https://live2dhub.com/t/topic/3229/7 "2025-02-10T23:11:10Z")

</div>

老表，这游戏要停服了，能雇你帮我解包下不，有偿😋

---

<div class="post-metadata">

作者： ![yjzyl9008](https://live2dhub.com/user_avatar/live2dhub.com/yjzyl9008/32/1006_2.png) [@yjzyl9008](https://live2dhub.com/u/yjzyl9008)\
发布日期： [2025 年2 月 11 日 05:26 UTC](https://live2dhub.com/t/topic/3229/9 "2025-02-11T05:26:51Z")

</div>

```auto
if data[:2] == b'\x1f\x8b':
    data = rgzip(data)
if data[:7] != b'UnityFS':
    ekey = b'UnityFS\x00'
    edat = data[:8]
    key = [edat[i] ^ ekey[i % 8] for i in range(8)]
    dec = [data[i] ^ key[i % 8] for i in range(220)]
    data = bytes(dec) + data[220:]

```

---

<div class="post-metadata">

作者： ![liudezhou](https://live2dhub.com/letter_avatar_proxy/v4/letter/l/bc79bd/32.png) [@liudezhou](https://live2dhub.com/u/liudezhou)\
发布日期： [2025 年2 月 11 日 07:13 UTC](https://live2dhub.com/t/topic/3229/10 "2025-02-11T07:13:15Z")

</div>

> [@yjzyl9008](#):
>
> ```auto
> if data[:2] == b'\x1f\x8b':
> data = rgzip(data)
> if data[:7] != b'UnityFS':
> ekey = b'UnityFS\x00'
> edat = data[:8]
> key = [edat[i] ^ ekey[i % 8] for i in range(8)]
> dec = [data[i] ^ key[i % 8] for i in range(220)]
> data = bytes(dec) + data[220:]
> 
> ```

> [@yjzyl9008](#):
>
> ```auto
> if data[:2] == b'\x1f\x8b':
> data = rgzip(data)
> if data[:7] != b'UnityFS':
> ekey = b'UnityFS\x00'
> edat = data[:8]
> key = [edat[i] ^ ekey[i % 8] for i in range(8)]
> dec = [data[i] ^ key[i % 8] for i in range(220)]
> data = bytes(dec) + data[220:]
> 
> ```

老表，请问这段代码是要用来处理解密.dat文件的吗？

---

<div class="post-metadata">

作者： ![liudezhou](https://live2dhub.com/letter_avatar_proxy/v4/letter/l/bc79bd/32.png) [@liudezhou](https://live2dhub.com/u/liudezhou)\
发布日期： [2025 年2 月 11 日 07:15 UTC](https://live2dhub.com/t/topic/3229/11 "2025-02-11T07:15:34Z")

</div>

谢谢你老表，我搞定了。

---

<div class="post-metadata">

作者： ![Behaksu](https://live2dhub.com/letter_avatar_proxy/v4/letter/b/ad7895/32.png) [@Behaksu](https://live2dhub.com/u/Behaksu)\
发布日期： [2025 年2 月 22 日 16:42 UTC](https://live2dhub.com/t/topic/3229/13 "2025-02-22T16:42:16Z")

</div>

[千年之旅](https://sinisteronyx-my.sharepoint.com/:f:/g/personal/rmddod99dd3fc_sinisteronyx_onmicrosoft_com/EpiNGph_6k1HgLVYzP5Ik_oBU9Y59dALmOEFsCYZLv7i8w)

照着qingliu佬的海底捞月法导出保存的，检查了几遍完整性，但是这游戏我玩得很浅，不知道有没有鉴权数据，另外为了避免这两天有遗漏的热更新，关服前会再备份一遍的。

0225：关服前几小时的备份数据和23号的对比了一下，只有一些系统日志文件有差异，当然为了照顾强迫症，会晚些时候抽空上传

---

<div class="post-metadata">

作者： ![2410](https://live2dhub.com/letter_avatar_proxy/v4/letter/2/7ba0ec/32.png) [@2410](https://live2dhub.com/u/2410)\
发布日期： [2025 年2 月 23 日 06:07 UTC](https://live2dhub.com/t/topic/3229/14 "2025-02-23T06:07:31Z")

</div>

求一份

---

<div class="post-metadata">

作者： ![yjzyl9008](https://live2dhub.com/user_avatar/live2dhub.com/yjzyl9008/32/1006_2.png) [@yjzyl9008](https://live2dhub.com/u/yjzyl9008)\
发布日期： [2025 年7 月 25 日 03:06 UTC](https://live2dhub.com/t/topic/3229/16 "2025-07-25T03:06:28Z")

</div>

> [@gwsj](#):
>
> rgzip

```auto
if isinstance(fp, str):
    with gzip.open(fp, 'rb') as file:
        return file.read()
else:
    return zlib.decompress(fp, 16 + zlib.MAX_WBITS)

```

---

<div class="post-metadata">

作者： ![yjzyl9008](https://live2dhub.com/user_avatar/live2dhub.com/yjzyl9008/32/1006_2.png) [@yjzyl9008](https://live2dhub.com/u/yjzyl9008)\
发布日期： [2025 年7 月 25 日 03:33 UTC](https://live2dhub.com/t/topic/3229/20 "2025-07-25T03:33:39Z")

</div>

是关服前的数据？

---

<div class="post-metadata">

作者： ![yjzyl9008](https://live2dhub.com/user_avatar/live2dhub.com/yjzyl9008/32/1006_2.png) [@yjzyl9008](https://live2dhub.com/u/yjzyl9008)\
发布日期： [2025 年7 月 25 日 03:39 UTC](https://live2dhub.com/t/topic/3229/23 "2025-07-25T03:39:20Z")

</div>

发包

---

<div class="post-metadata">

作者： ![yjzyl9008](https://live2dhub.com/user_avatar/live2dhub.com/yjzyl9008/32/1006_2.png) [@yjzyl9008](https://live2dhub.com/u/yjzyl9008)\
发布日期： [2025 年7 月 25 日 04:50 UTC](https://live2dhub.com/t/topic/3229/25 "2025-07-25T04:50:13Z")

</div>

这不是私服，这是官方复活后开的渠道测试服

```auto
def dec():
        with open("3000000_aoyi_prefab.data", 'rb') as f:
            enc = f.read()

        with open("dec", 'wb') as f:
            f.write(bytes([b ^ 0x7B for b in enc[:min(1000, len(enc))]]) + enc[min(1000, len(enc)):])

if __name__ == " __main__":
    dec()

```

---

<div class="post-metadata">

作者： ![fateli](https://live2dhub.com/letter_avatar_proxy/v4/letter/f/b9e5f3/32.png) [@fateli](https://live2dhub.com/u/fateli)\
发布日期： [2025 年7 月 25 日 05:08 UTC](https://live2dhub.com/t/topic/3229/27 "2025-07-25T05:08:26Z")

</div>

请教大佬一个问题，之前尝试解包千年时，我让AI分析过加密的数据包，ai能通过特定字符出现的频率推断大概率是用了异或加密，但不知道具体的异或字节（就是代码里的UnityFS\x00），以及加密的字节数（220/1000），后来ai建议是用Il2CppDumper分析游戏代码找加密函数，请问大佬如果确定资源包大概率是异或加密的话，要怎么找出异或字节和具体异或的字节数呢？只能逆向游戏的libil2cpp.so了吗？

---

<div class="post-metadata">

作者： ![yjzyl9008](https://live2dhub.com/user_avatar/live2dhub.com/yjzyl9008/32/1006_2.png) [@yjzyl9008](https://live2dhub.com/u/yjzyl9008)\
发布日期： [2025 年7 月 25 日 05:11 UTC](https://live2dhub.com/t/topic/3229/28 "2025-07-25T05:11:52Z")

</div>

够熟练的话能看出来，像这个千年单字节的更好看。。

---

<div class="post-metadata">

作者： ![fateli](https://live2dhub.com/letter_avatar_proxy/v4/letter/f/b9e5f3/32.png) [@fateli](https://live2dhub.com/u/fateli)\
发布日期： [2025 年7 月 25 日 05:18 UTC](https://live2dhub.com/t/topic/3229/29 "2025-07-25T05:18:00Z")

</div>

如果看不出来的话，要怎么通过其他方式求解呢？是像AI建议的一样用Il2CppDumper获取libil2cpp.so生成的代码文件然后放进IDA Pro分析加密函数，还是有更好的方法？

---

<div class="post-metadata">

作者： ![yjzyl9008](https://live2dhub.com/user_avatar/live2dhub.com/yjzyl9008/32/1006_2.png) [@yjzyl9008](https://live2dhub.com/u/yjzyl9008)\
发布日期： [2025 年7 月 25 日 05:22 UTC](https://live2dhub.com/t/topic/3229/30 "2025-07-25T05:22:41Z")

</div>

ida+frida

---

<div class="post-metadata">

作者： ![fateli](https://live2dhub.com/letter_avatar_proxy/v4/letter/f/b9e5f3/32.png) [@fateli](https://live2dhub.com/u/fateli)\
发布日期： [2025 年7 月 25 日 05:26 UTC](https://live2dhub.com/t/topic/3229/31 "2025-07-25T05:26:49Z")

</div>

谢谢大佬解答

---

<div class="post-metadata">

作者： ![OK12](https://live2dhub.com/letter_avatar_proxy/v4/letter/o/ea666f/32.png) [@OK12](https://live2dhub.com/u/OK12)\
发布日期： [2025 年8 月 22 日 17:15 UTC](https://live2dhub.com/t/topic/3229/33 "2025-08-22T17:15:58Z")

</div>

有2.0的解包数据吗

[下一页](https://live2dhub.com/t/topic/3229.md?page=2)
