首页
社区
课程
招聘
[原创]逆向iReader解读ebk2电子书格式
发表于: 2012-11-10 22:50 28794

[原创]逆向iReader解读ebk2电子书格式

2012-11-10 22:50
28794

===========================================================

  +-------+---+-----------------------------+

   |0 - 3  |4  |  book_id                    |

   +-------+---+-----------------------------+

   |4 - 5  |2  |  head_data_size             |

   +-------+---+-----------------------------+

   |6 - 7  |2  |  ebk_version                |

   +-------+---+-----------------------------+

   |8 -11  |4  |  ebk_size                   |

   +-------+---+-----------------------------+

   |12-75  |64 |  book_name                  |

   +-------+---+-----------------------------+

   |76-79  |4  |  file_size                  |

   +-------+---+-----------------------------+

   |80-83  |4  |  head_compress_size         |

   +-------+---+-----------------------------+

   |84-87  |4  |  first_compress_block_size  |

   +-------+---+-----------------------------+

   |88-89  |2  |  chapter_count              |

   +-------+---+-----------------------------+

   |90-91  |2  |  compress_block_count       |

   +-------+---+-----------------------------+

   |92-95  |4  |  media_count                |

   +-------+---+-----------------------------+

   |96-99  |4  |  media_data_length          |

   +-------+---+-----------------------------+

   |100-103|4  |  txt_compress_size          |

   +-------+---+-----------------------------+
└─[$] <> xxd -l104 《白鹿原》.ebk2  

0000000: 0000 0000 6800 0200 6636 0900 0a30 7d76  ....h...f6...0}v

0000010: 7f9e 9f53 0b30 0000 0000 0000 0000 0000  ...S.0..........

0000020: 0000 0000 0000 0000 0000 0000 0000 0000  ................

0000030: 0000 0000 0000 0000 0000 0000 0000 0000  ................

0000040: 0000 0000 0000 0000 0000 0000 f036 0e00  .............6..

0000050: 9502 0000 0bab 0000 3000 0f00 0000 0000  ........0.......

0000060: 0000 0000 6933 0900                      ....i3..
└─[$] <> ll 《白鹿原》.ebk2

-rwxrwxrwx 2 root root 603750 Oct 25 08:39 《白鹿原》.ebk2*

                                       0a30 7d76  ....h...f6...0}v

0000010: 7f9e 9f53 0b30 0000 0000 0000 0000 0000  ...S.0..........

0000020: 0000 0000 0000 0000 0000 0000 0000 0000  ................

0000030: 0000 0000 0000 0000 0000 0000 0000 0000  ................

0000040: 0000 0000 0000 0000 0000 0000
└─[$] <> ll 《白鹿原》.ebk2.txt

-rwxrwxrwx 1 root root 931570 Nov  3 16:57 《白鹿原》.ebk2.txt*
 +-------+---+-----------------------------+----------------------------------------+


   |0 - 3  |4  |  book_id                    |一般为全0                               |

   +-------+---+-----------------------------+----------------------------------------+

   |4 - 5  |2  |  head_data_size             |ebk2文件的head大小,一般为104字节       |

   +-------+---+-----------------------------+----------------------------------------+

   |6 - 7  |2  |  ebk_version                |ebk文件的版本                           |

   +-------+---+-----------------------------+----------------------------------------+

   |8 -11  |4  |  ebk_size                   |ebk2文件大小                            |

   +-------+---+-----------------------------+----------------------------------------+

   |12-75  |64 |  book_name                  |书名                                    |

   +-------+---+-----------------------------+----------------------------------------+

   |76-79  |4  |  file_size                  |解压后txt文件的大小(包括章节名和内容) |

   +-------+---+-----------------------------+----------------------------------------+

   |80-83  |4  |  head_compress_size         |章节信息索引表的大小(压缩后的)        |

   +-------+---+-----------------------------+----------------------------------------+

   |84-87  |4  |  first_compress_block_size  |第一个压缩块的大小                      | 

   +-------+---+-----------------------------+----------------------------------------+

   |88-89  |2  |  chapter_count              |章节数                                  |

   +-------+---+-----------------------------+----------------------------------------+

   |90-91  |2  |  compress_block_count       |小说内容压缩段的数量                    |

   +-------+---+-----------------------------+----------------------------------------+

   |92-95  |4  |  media_count                |媒体数量                                |

   +-------+---+-----------------------------+----------------------------------------+

   |96-99  |4  |  media_data_length          |媒体数据长度                            |

   +-------+---+-----------------------------+----------------------------------------+

   |100-103|4  |  txt_compress_size          |压缩后的小说正文内容大小                |

   +-------+---+-----------------------------+----------------------------------------+
struct ebk_chapter_info_tag

{

    unsinged char chapter_name[大小未知];

    unsigned int length;

    unsigned int offset;

};
struct ebk_compress_block_data_tag

{

    unsigned int length;

    unsigned int offset;

};

[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!

上传的附件:
收藏
免费 6
支持
分享
最新回复 (11)
雪    币: 190
活跃值: (40)
能力值: ( LV3,RANK:20 )
在线值:
发帖
回帖
粉丝
2
貌似不错,顶个,以后再看
2012-11-10 23:12
0
雪    币: 55
活跃值: (519)
能力值: ( LV6,RANK:80 )
在线值:
发帖
回帖
粉丝
3
果断收藏。
123456
2012-11-10 23:33
0
雪    币: 114
活跃值: (180)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
V5,支持~~
2012-11-11 00:03
0
雪    币: 82
活跃值: (291)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
smali完全不懂.lz功力深厚.
2012-11-19 09:21
0
雪    币: 146
活跃值: (95)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
6
不错 果断的收藏一下
2012-11-20 00:06
0
雪    币: 240
活跃值: (11)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
7
介绍ebk2格式的,学习一下
2013-1-3 19:29
0
雪    币: 341
活跃值: (143)
能力值: ( LV7,RANK:110 )
在线值:
发帖
回帖
粉丝
8
牛掰。。。http://e.dangdang.com/datasvr/permissionAuth.do?bookUid=bb.132584588115452082&pageNo=1


偶遇这个http://e.dangdang.com/datasvr/admin/   
当当网Reader.swf
dangdangReader.rar
上传的附件:
2013-4-19 06:23
0
雪    币: 406
活跃值: (164)
能力值: ( LV12,RANK:250 )
在线值:
发帖
回帖
粉丝
9
这个swf文件你从中找可利用的地方没有?
2013-4-19 09:52
0
雪    币: 259
活跃值: (289)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
10
怪客。。。明显就是。。。intrude
2013-4-19 11:11
0
雪    币: 341
活跃值: (143)
能力值: ( LV7,RANK:110 )
在线值:
发帖
回帖
粉丝
11
嘿嘿..暂时没看.打游戏了....
2013-4-19 12:04
0
雪    币: 18
活跃值: (25)
能力值: ( LV3,RANK:20 )
在线值:
发帖
回帖
粉丝
12
现在不用这么麻烦了,下载iReader for Windows Phone, ebk2和ebk3立破!
2015-5-20 13:29
0
游客
登录 | 注册 方可回帖
返回
//