package binsec

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

This module is a simple extension to the loaders of binsec where it is allowed to rewrite parts of the binary.

The extension is non-destructive.

type t
val create : Loader.Img.t -> PatchMap.t -> t
val create_from_files : executable:string -> patch_file:string -> unit -> t

create_from_files ~executable ~patch_file creates a writable loader from a binary file and a series of patches read from a given file

val get : int -> t -> Loader_types.u8

get addr t gets the byte stored at address addr

val dim : t -> int

dim t gives the size of the loaded image in bytes

val pp_to_file : filename:string -> t -> unit

pp_to_file ~filename w writes the contents of the image to the file filename

OCaml

Innovation. Community. Security.