找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 22056|回复: 24

[hack] 终于找到NPK文件的建立和解压方法了

  [复制链接]
发表于 2010-1-10 11:36:56 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
~# ./dumpnpk.py system-2.9.51.npk       解压NPK  
~# ./createnpk.py system-2.9.51/            建立NPK

工具见附件


http://routing.explode.gr/node/96
更加详细的大家看上面的

npk-scripts.zip

2.99 KB, 下载次数: 110

routeros
发表于 2010-1-10 15:18:20 | 显示全部楼层
支持一下!
routeros
回复

使用道具 举报

发表于 2010-1-10 15:34:02 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2010-1-10 16:19:18 | 显示全部楼层
做个记号,谢谢!
routeros
回复

使用道具 举报

发表于 2010-1-10 16:43:56 | 显示全部楼层
这个可解压,加压。是否意味着可以集成第三言RADIUS模块?
routeros
回复

使用道具 举报

发表于 2010-1-10 18:54:37 | 显示全部楼层
it just a simple code that how to decompress npk. but still not given the file output.
only show text wht is the npk file contain.
CMIIW
routeros
回复

使用道具 举报

发表于 2010-1-11 06:49:13 | 显示全部楼层
楼主也不试试
routeros
回复

使用道具 举报

发表于 2010-1-11 11:14:44 | 显示全部楼层
npk和iso有什么区别吗?
routeros
回复

使用道具 举报

发表于 2010-1-11 12:11:35 | 显示全部楼层
下载了备用,谢谢!
routeros
回复

使用道具 举报

发表于 2010-1-12 16:31:48 | 显示全部楼层
好像不能用啊,我安装的LINUX系统,把这2个文件放到mnt下面,然后把ROS文件也放mnt里面,开始执行解压。
~# ./dumpnpk.py system-2.9.51.npk
然后提示下面
[root@linux /]# ./dumpnpk.py telephony-2.9.27.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: 1327805 Header size: 133 Data size: 1327813
Unknown stuff: '\x01\x00 \x00\x00\x00' should be: '\x01\x00 \x00\x00\x00'
Short description: telephony
Revision, unknown, Minor, Major: '\x1bf\t\x02' (27, 102, 9, 2)
Build time: '9\xf8\xa8D' Mon Jul  3 18:58:01 2006
Some other numbers: (0L, 0L, 16, 4, 0) should be: (0, 0, 16, 4, 0)
Architecture: i386
Another number: (2,) should be: (2,)
Long description: '\n    Telephony H.323 package\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: '\x1bf\t\x02\x00\x00\x00\x00' '\x1bf\t\x02\x00\x00\x00\x00'
   first 4: (27, 102, 9, 2) (27, 102, 9, 2)

Found data of type: 7 size: 51
   Contents (oninstall): '\n    new-libs\n    new-modules\n    update-console\n  '
Found data of type: 8 size: 53
   Contents (onuninstall): '\n    dead-libs\n    dead-modules\n    update-console\n  '
Found data of type: 4 size: 1327558
   Uncompressing data...

Returning the raw header and the rest of the file (each part in a list)

Files in package:
dir ex nova 1151413906
dir ex nova/bin 1151413901
fil ex nova/bin/pbx 1151413901
dir ex nova/lib 1151413905
dir ex nova/lib/console 1151913480
fil ex nova/lib/console/telephony.xi 1151913480
fil nx nova/lib/console/telephony.hlp 1151913480
dir ex nova/lib/logmaker 1151413906
fil nx nova/lib/logmaker/5000.core.pbx.lom 1151913480
dir ex nova/etc 1151413906
dir ex nova/etc/loader 1151413906
fil nx nova/etc/loader/telephony.x3 1151413906
dir ex nova/etc/modules 1151413906
fil nx nova/etc/modules/telephony.x3 1151413906
dir ex nova/etc/pciinfo 1151413906
fil nx nova/etc/pciinfo/telephony.x3 1151413906
dir ex home 1151413905
dir ex home/web 1151413905
dir ex home/web/winbox 1151413905
fil nx home/web/winbox/phone.dll 1151413905
fil nx home/web/winbox/phone.info 1151413905
dir ex lib 1151413911
dir ex lib/modules 1151413911
dir ex lib/modules/2.4.31 1151413911
dir ex lib/modules/2.4.31/drivers 1151413911
dir ex lib/modules/2.4.31/drivers/telephony 1151413911
fil nx lib/modules/2.4.31/drivers/telephony/phonedev.o 1151413906
fil nx lib/modules/2.4.31/drivers/telephony/ixj.o 1151413909
fil nx lib/modules/2.4.31/drivers/telephony/vpb.o 1151413854
fil nx lib/modules/2.4.31/drivers/telephony/zaptel.o 1151413910
fil nx lib/modules/2.4.31/drivers/telephony/wcfxo.o 1151413911
fil nx lib/modules/2.4.31/modules.dep.telephony 1151913481
dir ex etc 1151413911
dir ex etc/vpb 1151413911
fil nx etc/vpb/vpbmain_pci.out 1151411616
33 nx dev/isdnphone0 1151913482
33 nx dev/isdnphone1 1151913482
33 nx dev/isdnphone10 1151913482
33 nx dev/isdnphone11 1151913482
33 nx dev/isdnphone12 1151913482
33 nx dev/isdnphone13 1151913482
33 nx dev/isdnphone14 1151913482
33 nx dev/isdnphone15 1151913482
33 nx dev/isdnphone16 1151913482
33 nx dev/isdnphone17 1151913482
33 nx dev/isdnphone18 1151913482
33 nx dev/isdnphone19 1151913482
33 nx dev/isdnphone2 1151913482
33 nx dev/isdnphone20 1151913482
33 nx dev/isdnphone21 1151913482
33 nx dev/isdnphone22 1151913482
33 nx dev/isdnphone23 1151913482
33 nx dev/isdnphone24 1151913482
33 nx dev/isdnphone25 1151913482
33 nx dev/isdnphone26 1151913482
33 nx dev/isdnphone27 1151913482
33 nx dev/isdnphone28 1151913482
33 nx dev/isdnphone29 1151913482
33 nx dev/isdnphone3 1151913482
33 nx dev/isdnphone30 1151913482
33 nx dev/isdnphone31 1151913482
33 nx dev/isdnphone32 1151913482
33 nx dev/isdnphone33 1151913482
33 nx dev/isdnphone34 1151913482
33 nx dev/isdnphone35 1151913482
33 nx dev/isdnphone36 1151913482
33 nx dev/isdnphone37 1151913482
33 nx dev/isdnphone38 1151913482
33 nx dev/isdnphone39 1151913482
33 nx dev/isdnphone4 1151913482
33 nx dev/isdnphone40 1151913482
33 nx dev/isdnphone41 1151913482
33 nx dev/isdnphone42 1151913482
33 nx dev/isdnphone43 1151913482
33 nx dev/isdnphone44 1151913482
33 nx dev/isdnphone45 1151913482
33 nx dev/isdnphone46 1151913482
33 nx dev/isdnphone47 1151913482
33 nx dev/isdnphone48 1151913482
33 nx dev/isdnphone49 1151913482
33 nx dev/isdnphone5 1151913482
33 nx dev/isdnphone50 1151913482
33 nx dev/isdnphone51 1151913482
33 nx dev/isdnphone52 1151913482
33 nx dev/isdnphone53 1151913482
33 nx dev/isdnphone54 1151913482
33 nx dev/isdnphone55 1151913482
33 nx dev/isdnphone56 1151913482
33 nx dev/isdnphone57 1151913482
33 nx dev/isdnphone58 1151913482
33 nx dev/isdnphone59 1151913482
33 nx dev/isdnphone6 1151913482
33 nx dev/isdnphone60 1151913482
33 nx dev/isdnphone61 1151913482
33 nx dev/isdnphone62 1151913482
33 nx dev/isdnphone63 1151913482
33 nx dev/isdnphone7 1151913482
33 nx dev/isdnphone8 1151913482
33 nx dev/isdnphone9 1151913482
33 nx dev/phone0 1151913482
33 nx dev/phone1 1151913482
33 nx dev/phone10 1151913482
33 nx dev/phone11 1151913482
33 nx dev/phone12 1151913482
33 nx dev/phone13 1151913482
33 nx dev/phone14 1151913482
33 nx dev/phone15 1151913482
33 nx dev/phone2 1151913482
33 nx dev/phone3 1151913482
33 nx dev/phone4 1151913482
33 nx dev/phone5 1151913482
33 nx dev/phone6 1151913482
33 nx dev/phone7 1151913482
33 nx dev/phone8 1151913482
33 nx dev/phone9 1151913482
33 nx dev/vpb0 1151913482
33 nx dev/vpb1 1151913482
33 nx dev/vpb2 1151913482
33 nx dev/vpb3 1151913482
33 nx dev/vpb4 1151913482
33 nx dev/vpb5 1151913482
33 nx dev/vpb6 1151913482
33 nx dev/vpb7 1151913482
dir ex dev/zap 1151913482
33 nx dev/zap/1 1151913482
33 nx dev/zap/10 1151913482
33 nx dev/zap/11 1151913482
33 nx dev/zap/12 1151913482
33 nx dev/zap/13 1151913482
33 nx dev/zap/14 1151913482
33 nx dev/zap/15 1151913482
33 nx dev/zap/16 1151913482
33 nx dev/zap/2 1151913482
33 nx dev/zap/3 1151913482
33 nx dev/zap/4 1151913482
33 nx dev/zap/5 1151913482
33 nx dev/zap/6 1151913482
33 nx dev/zap/7 1151913482
33 nx dev/zap/8 1151913482
33 nx dev/zap/9 1151913482
33 nx dev/zap/ctl 1151913482
fil nx /var/pdb/telephony/crc 1151913482



我在ls 查看了一下,没有找到解压出来的文件,请问解压出来的文件在那里啊,是不是我操作不对。。。
routeros
回复

使用道具 举报

发表于 2010-1-12 17:11:30 | 显示全部楼层
早就有人发过这个了
routeros
回复

使用道具 举报

发表于 2010-1-13 01:39:44 | 显示全部楼层
关注一下。
routeros
回复

使用道具 举报

发表于 2010-1-13 23:40:39 | 显示全部楼层
太美老大早发过了
routeros
回复

使用道具 举报

发表于 2010-1-14 13:27:02 | 显示全部楼层
搞不懂了
routeros
回复

使用道具 举报

发表于 2010-12-15 22:47:23 | 显示全部楼层
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-11-6 09:39 , Processed in 0.103755 second(s), 7 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表