Magic Number



One way to include metadata, often associated with Unix and its derivatives, is just to keep the "magic number" in the file itself. Basically the term is used for a particular set of 2-byte identifier at the beginning of the file, each sequence can be regarded as undecoded binary numbers, for it is a feature of a unique file format distinguishes it could be used for identification.

Many types of files, for example, HTML files, for example, can be started with the string <html> or corresponding document type definition that starts with <DOCTYPE,! Or, for XHTML, XML identifier, which starts with <? Xml. all files can also be started with HTML comments, random text.

magic number to have a better guarantee for the format will be identified correctly, and are usually able to determine more accurate information about the file. although quite reliable, effective file should still be tested against every possibility of the other side database.pada a valid magic number does not guarantee that the file is not corrupted.

Line of the events referred to in the script file is a special case of magic numbers. So, the magic number is a human-readable text that identifies the specific command interpreter and the option to be passed to the command interpreter.

I think the magic number is like that, and not sure about the truth, anyone can give enlightenment?

Comments

Popular posts from this blog

EXE file structure

Filesystem Structure

Introduction Maltego