danksz / tsukuyomi Goto Github PK
View Code? Open in Web Editor NEWReverse engineering Lunii box
Reverse engineering Lunii box
Hi,
First, thanks for your work !
I hope you can help me, I really need to extract the stories from my old Lunii to put them on my new Lunii (I don't have access to my old lunistore account) but I have two errors :
The first error :
kaitai-struct-compiler --target python kaitai-struct/lunii.ksy
lunii: /meta/imports/1:
error: kaitai-struct/wav.ksy:19:1:
error: found duplicate key doc-ref
And the second error (the lunii.img was made with win32diskimager) :
./sd-lunii-parser.py lunii.img
position of content structure: 51200000
position of number of stories: 51661066
Number of stories: 38422
Traceback (most recent call last):
File "/home/biocef/tsukuyomi/sd-parser/./sd-lunii-parser.py", line 26, in
string += story_sep + 'nbr_nodes: {:03}'.format(story.story_info.nbr_nodes)
File "/home/biocef/tsukuyomi/sd-parser/lunii.py", line 55, in story_info
self._m_story_info = self._root.StoryInfoStruct(self._io, self, self._root)
File "/home/biocef/tsukuyomi/sd-parser/lunii.py", line 80, in init
self._read()
File "/home/biocef/tsukuyomi/sd-parser/lunii.py", line 83, in _read
self.nbr_nodes = self._io.read_u2be()
File "/usr/local/lib/python3.9/dist-packages/kaitaistruct-0.10-py3.9.egg/kaitaistruct.py", line 173, in read_u2be
File "/usr/local/lib/python3.9/dist-packages/kaitaistruct-0.10-py3.9.egg/kaitaistruct.py", line 326, in read_bytes
EOFError: requested 2 bytes, but only 0 bytes available
How can I resolve these issues ?
Regards,
Biocef.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.