pe-signature-offset

2019-02-13 admin

pe-signature-offset是什么

什么是pe-signature-offset,Get position of PE signature

pe-signature-offset使用教程帮助文档

pe-signature-offset

Get position of PE signature. As specified by Microsoft PE and COFF Specification 9.3 <sup>[doc]</sup>, section 3.2:

After the MS-DOS stub, at the file offset specified at offset 0x3c, is a 4-byte signature that identifies the file as a PE format image file. This signature is PE\0\0 (the letters “P” and “E” followed by two null bytes).

npm status node Travis build status AppVeyor build status Dependency status

example

const getOffset = require('pe-signature-offset')

getOffset('file.exe', function (err, offset) {
  console.log(offset)
})

getOffset(mixed, callback)

Where mixed is either a filename or a file descriptor.

related

install

With npm do:

npm install pe-signature-offset

license

MIT © Vincent Weevers

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-53663.html

文章标题:pe-signature-offset

回到顶部