mirror of
https://github.com/srozb/authenticode
synced 2026-01-02 04:44:46 +00:00
No description
| .github/workflows | ||
| src | ||
| tests | ||
| authenticode.nimble | ||
| config.nims | ||
| README.md | ||
Authenticode
PE Authenticode parser based on libyara implementation
Installation
nimble install authenticode
Usage
You'll probably want to parse PE file mapped into memory with
parse_authenticode function, like this:
import authenticode
import authenticode/parser
import std/memfiles
initialize_authenticode_parser()
var data = memfiles.open("path/to/pefile.exe", mode = fmReadWrite, mappedSize = -1)
let auth = parse_authenticode(cast[ptr uint8](data.mem), data.size.uint)
Consult tests/testParsing.nim file for detailed usage.