Skip to content

srozb/nim-libpe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Nim wrapper for libpe library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages