No description
Find a file
2022-10-05 11:28:47 +02:00
.github/workflows github action fix 4/ 2022-10-04 20:48:29 +02:00
src includes fix, readme improvement 2022-10-05 11:28:25 +02:00
tests Readme added 2022-10-04 22:20:23 +02:00
authenticode.nimble version bump 2022-10-05 11:28:47 +02:00
config.nims github action fix 6/ 2022-10-04 22:00:14 +02:00
README.md includes fix, readme improvement 2022-10-05 11:28:25 +02:00

Authenticode

run tests

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.