No description
Find a file
2022-10-06 09:50:42 +02:00
.github/workflows gh actions improvement 2022-09-30 14:34:08 +02:00
src fix ubuntu build 2 2022-10-06 09:50:02 +02:00
tests strip nimterop pragmas 4/4 2022-09-06 14:42:47 +02:00
.gitignore some tests added 2022-08-12 11:52:29 +02:00
libpe.nimble fix ubuntu build 2 2022-10-06 09:50:42 +02:00
LICENSE license change to GPL-3.0 2022-09-09 10:37:45 +02:00
README.md Improved test ccov 2022-09-05 13:11:16 +02:00

nim-libpe

Nim rewrite of merces/libpe PE library.

This library is used by my PE multitool Peni.

Usage

Minimal working example based on the original one from Author's GH readme, would be:


import libpe
import libpe/pe
import libpe/error

var ctx: pe_ctx_t

assert pe_load_file(addr ctx, "path_to_file".cstring) == LIBPE_E_OK
assert pe_parse(addr ctx) == LIBPE_E_OK
assert pe_is_pe(addr ctx)

echo $ctx.pe.entrypoint

For more info consult the test file.