-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can not unpack version 6.9 npk! #1
Comments
Do you have link to any public npk package available anywhere with 6.9 so I can check what's wrong? |
http://download2.mikrotik.com/routeros/6.9/mikrotik-6.9.iso http://www.mikrotik-software.de/downloads/ From: kost |
wget "http://www.mikrotik-software.de/downloads/routeros-x86-6.9.npk" $ ./dumpnpk.py routeros-x86-6.9.npk It works. But I'm testing it on Linux/Mac. Not sure if it works correctly on Windows... :( |
I try it on windows 2012 R2, fail. 100%[====================================>] 15,241,891 488.07K/s ETA 00:00 17:06:02 (488.07 KB/s) - `routeros-x86-6.9.npk' saved [15241891/15241891] D:\mikrotik-npk-master>python27.exe dumpnpk.py routeros-x86-6.9.npk Found data of type: 21 size: 0 Returning the raw header and the rest of the file (each part in a list) From: kost |
It not work on windows. [root@localhost ]# git clone https://github.com/kost/mikrotik-npk.git Returning the raw header and the rest of the file (each part in a list) [root@localhost v6]# mikrotik-npk/unpacknpk.py routeros-x86-6.9.npk Returning the raw header and the rest of the file (each part in a list) Files in package: From: hynnet 100%[====================================>] 15,241,891 488.07K/s ETA 00:00 17:06:02 (488.07 KB/s) - `routeros-x86-6.9.npk' saved [15241891/15241891] D:\mikrotik-npk-master>python27.exe dumpnpk.py routeros-x86-6.9.npk Found data of type: 21 size: 0 Returning the raw header and the rest of the file (each part in a list) From: kost |
Please take a look at the commit I have pushed |
D:\mikrotik-npk-master>python27.exe unpacknpk.py ppp-6.9.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: 393289 Header size: 167 Data size: 4375
Unknown stuff: '\x01\x00 \x00\x00\x00' should be: '\x01\x00 \x00\x00\x00'
Short description: pppaaaaaaaaaaaaa
Revision, unknown, Minor, Major: '\x00f\t\x06' (0, 102, 9, 6)
Build time: '{\x86\xebR' Fri Jan 31 19:18:19 2014
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 Provides support for PPP, PPTP, L2TP, PPPoE and ISDN PP
P.\n '
Found data of type: 3 size: 34
Found data of type: 22 size: 3917
Found data of type: 21 size: 389120
Returning the raw header and the rest of the file (each part in a list)
D:\mikrotik-npk-master>python27.exe dumpnpk.py ppp-6.9.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: 393289 Header size: 167 Data size: 4375
Unknown stuff: '\x01\x00 \x00\x00\x00' should be: '\x01\x00 \x00\x00\x00'
Short description: pppaaaaaaaaaaaaa
Revision, unknown, Minor, Major: '\x00f\t\x06' (0, 102, 9, 6)
Build time: '{\x86\xebR' Fri Jan 31 19:18:19 2014
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 Provides support for PPP, PPTP, L2TP, PPPoE and ISDN PP
P.\n '
Next 24 chars: '\x03\x00"\x00\x00\x00\x01\x00system\x00\x00\x00\x00\x00\x00\x00
x00\x00\x00'
should be: '\x03\x00"\x00\x00\x00\x01\x00system\x00\x00\x00\x00\x00\x00\x00
x00\x00\x00'
Separators: '\x00f\t\x06\x00\x00\x00\x00' '\x00f\t\x06\x00\x00\x00\x00'
first 4: (0, 102, 9, 6) (0, 102, 9, 6)
Found data of type: 3 size: 34
Found data of type: 22 size: 3917
Found data of type: 21 size: 389120
Returning the raw header and the rest of the file (each part in a list)
The text was updated successfully, but these errors were encountered: