{"_id":"pe-signature-offset","_rev":"3-5da8ae36bbfd55477b34dc33a5711485","name":"pe-signature-offset","description":"Get position of PE signature","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"pe-signature-offset","version":"1.0.0","description":"Get position of PE signature","license":"MIT","author":{"name":"Vincent Weevers"},"files":["index.js"],"scripts":{"test":"node test.js"},"dependencies":{"fs-read-exactly":"~1.0.0"},"devDependencies":{"tape":"~4.6.3"},"repository":{"type":"git","url":"git+https://github.com/vweevers/pe-signature-offset.git"},"bugs":{"url":"https://github.com/vweevers/pe-signature-offset/issues"},"homepage":"https://github.com/vweevers/pe-signature-offset","keywords":["executable","pe","pe-coff","portable-executable","windows"],"engines":{"node":">=4.0.0","npm":">=2.0.0"},"gitHead":"3feb687117296f244de95bd5724c9bf8d581cd1e","_id":"pe-signature-offset@1.0.0","_shasum":"d7ac5bfa8f22d7a8a4783e473f610fb5f4a2ddfc","_from":".","_npmVersion":"4.0.3","_nodeVersion":"6.8.0","_npmUser":{"name":"vweevers","email":"dev@vincentweevers.nl"},"maintainers":[{"name":"vweevers","email":"dev@vincentweevers.nl"}],"dist":{"shasum":"d7ac5bfa8f22d7a8a4783e473f610fb5f4a2ddfc","tarball":"https://registry.npmjs.org/pe-signature-offset/-/pe-signature-offset-1.0.0.tgz","integrity":"sha512-abNFaH8lzqUmUtoyKb22UvvZRLV9Zd/b/ja/8bBvOlZfhaRlctxpgftggOqRYtRxno6LKteJIhrEbS2qIH5D0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHJtj0POcuWLEWxeV5pQXun5QCa+2pKYl0uJGCJ4om60AiEAs5rLsTaaC0uF6WtWy4aEkF/sn7JWrpD5Oq2oxLsfET8="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pe-signature-offset-1.0.0.tgz_1482183844416_0.8559873630292714"}}},"readme":"# pe-signature-offset\n\n**Get position of [PE](https://en.wikipedia.org/wiki/Portable_Executable) signature. As specified by [Microsoft PE and COFF Specification 9.3](https://download.microsoft.com/download/9/c/5/9c5b2167-8017-4bae-9fde-d599bac8184a/pecoff_v83.docx) <sup>[doc]</sup>, section 3.2:**\n\n> 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).\n\n[![npm status](http://img.shields.io/npm/v/pe-signature-offset.svg?style=flat-square)](https://www.npmjs.org/package/pe-signature-offset) [![node](https://img.shields.io/node/v/pe-signature-offset.svg?style=flat-square)](https://www.npmjs.org/package/pe-signature-offset) [![Travis build status](https://img.shields.io/travis/vweevers/pe-signature-offset.svg?style=flat-square&label=travis)](http://travis-ci.org/vweevers/pe-signature-offset) [![AppVeyor build status](https://img.shields.io/appveyor/ci/vweevers/pe-signature-offset.svg?style=flat-square&label=appveyor)](https://ci.appveyor.com/project/vweevers/pe-signature-offset) [![Dependency status](https://img.shields.io/david/vweevers/pe-signature-offset.svg?style=flat-square)](https://david-dm.org/vweevers/pe-signature-offset)\n\n## example\n\n```js\nconst getOffset = require('pe-signature-offset')\n\ngetOffset('file.exe', function (err, offset) {\n  console.log(offset)\n})\n```\n\n## `getOffset(mixed, callback)`\n\nWhere `mixed` is either a filename or a file descriptor.\n\n## related\n\n- [pe-signature](https://github.com/vweevers/pe-signature)\n\n## install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install pe-signature-offset\n```\n\n## license\n\n[MIT](http://opensource.org/licenses/MIT) © Vincent Weevers\n","maintainers":[{"name":"vweevers","email":"dev@vincentweevers.nl"}],"time":{"modified":"2022-06-23T16:56:39.648Z","created":"2016-12-19T21:44:06.270Z","1.0.0":"2016-12-19T21:44:06.270Z"},"homepage":"https://github.com/vweevers/pe-signature-offset","keywords":["executable","pe","pe-coff","portable-executable","windows"],"repository":{"type":"git","url":"git+https://github.com/vweevers/pe-signature-offset.git"},"author":{"name":"Vincent Weevers"},"bugs":{"url":"https://github.com/vweevers/pe-signature-offset/issues"},"license":"MIT","readmeFilename":"readme.md"}