Method and device for bundling files in host file

A technology for hosting files and bundling files, applied in the field of communication, can solve the problems of inability to bundle large files, small redundant space capacity of PE file structure, discontinuity, etc., and achieve the effect of being less prone to error reporting

CN102930005BActive Publication Date: 2015-11-25三六零数字安全科技集团有限公司
2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2015-11-25

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method for binding a file in a host file. The host file comprises a plurality of nodes which are used for storing data and arranged in a certain order. The method comprises the following steps of: converting the file to be bound to a binding file corresponding to the host file in format and generating configuration information of the binding file; storing the binding file and the configuration information in the last node of the host file; and altering structure information of the last node of the host file and structure information of the host file according to the binding file and the configuration information. According to the method and corresponding device for binding the file in the host file provided in the invention, the file with any length can be bound in the last node of the host file, so that the problems that scattered small files can be bound only and excessively concentrated information at the head of the host file can result in report errors in the prior art are solved, and the beneficial effects that great files with any length can be bound and the report errors are not easy to occur are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the communication field, in particular to a method and device for bundling files in a host file. Background technique

[0002] File bundling can also be called file hiding. The specific method is to bundle other files in one file to achieve the effect of reducing the number of files or hiding some files. Wherein, the file bundled with other files is called a host file, and the file bundled into the host file is called a bundled file.

[0003] Because there is a lot of redundant space in the PE file structure itself, PE files are often used as host files, in which other files are bundled. The usually relatively large free space in the PE file is: (1) the redundant space generated by data alignment between adjacent section tables; (2) the redundancy generated by data alignment after the last section table of the PE file space. (3) The DOSStub in the PE structure is reserved for DOS programs, and it will only play a real role w...

Examples

Embodiment Construction

[0026] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0027] figure 2 A method for bundling files in a host file provided by an embodiment of the present invention is shown. Specifically, the host file may be a PE file, or other files having a similar structure to the PE file. In the following description, the host file is a PE file as an example for description.

[0028] In order to facilitate understanding, first briefly introduce the structure of the PE file. A PE file mainly i...