|
发表于 2012-8-20 15:17:59
|
显示全部楼层
debian:/home# ./dumpnpk.py SYSTEM-5.18.NPK
'\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x04\x00\x00\x00i386\x02\x00'
Magic: '\x1e\xf1\xd0\xba' should be: '\x1e\xf1\xd0\xba'
Size after this: 11794365 Header size: 154 Data size: 11794373
Unknown stuff: '\x01\x00 \x00\x00\x00' should be: '\x01\x00 \x00\x00\x00'
Short description: system
Revision, unknown, Minor, Major: '\x00f\x12\x05' (0, 102, 18, 5)
Build time: '8.\xe3O' Thu Jun 21 22:22:48 2012
Some other numbers: (0, 0, 16, 4, 0) should be: (0, 0, 16, 4, 0)
Architecture: i386
Another number: (2,) should be: (2,)
Long description: '\n Main package with basic services and drivers\n '
Next 24 chars: '\x03\x00\x02\x00\x00\x00\x00\x00\x07\x00\xab\x07\x00\x00\n rm -r'
should be: '\x03\x00"\x00\x00\x00\x01\x00system\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Separators: 'f /lib/m' 'odules/2'
first 4: (102, 32, 47, 108) (111, 100, 117, 108)
Found data of type: 13358 size: 791949614
Returning the raw header and the rest of the file (each part in a list)
这个程序貌似解包不了NPK了,而且尝试去掉了那81字节也无法解包。 |
|