package binsec
Install
dune-project
Dependency
Authors
-
AAdel Djoudi
-
BBenoit Boero
-
BBenjamin Farinier
-
CChakib Foulani
-
DDorian Lesbre
-
FFrédéric Recoules
-
GGuillaume Girol
-
JJosselin Feist
-
LLesly-Ann Daniel
-
MMahmudul Faisal Al Ameen
-
MManh-Dung Nguyen
-
MMathéo Vergnolle
-
MMatthieu Lemerre
-
NNicolas Bellec
-
OOlivier Nicole
-
RRichard Bonichon
-
RRobin David
-
SSébastien Bardin
-
SSoline Ducousso
-
TTa Thanh Dinh
-
YYaëlle Vinçont
-
YYanis Sellami
Maintainers
Sources
sha256=93f6fe439d486b166062ef6dd92c4ce3aa0947b5e18b1c3aa7de2fc3003aa6d9
sha512=98feb2b0a3f0a33fe912e9885311dd1c051768c707437f8ef038a8489fec019960142b588c6973eb8f726a14d9b2a1b4c765d915539911cb9f6ed6da9f1e51f2
doc/binsec_kernel_dba/Binsec_kernel_dba/Dhunk/index.html
Module Binsec_kernel_dba.DhunkSource
DBA hunks, aka dhunk
DBA blocks
A DBA block represents a set of DBA instructions with explicit links to the next one. The first instruction of the block always has id 0. Typically, DBA a block is the translation of one binary/assembly instruction.
A simple dhunk of one instruction jumping to the virtual address.
of_list l assumes the list is sorted in increasing order inside the block
of_list l assumes the list is sorted in increasing order inside the block, i.e. the labels are contiguous starting from 0.
unlink dh i skips the ith instruction. Its predecessors go to its successor.
view dh Visualize dot-rendered DBA hunk dh using cmd.
Default value for cmd is firefox.
optimize dh Performs some "compiler" optimizations and return the simplified block.
include Binsec_base.Sigs.PRINTABLE with type t := t
Dhunk properties
outer_jumps b computes the set of jumps to external addresses in hunk b. Due to dynamic jumps, this represents a syntactic under-approximation of the possible jumps from this block.
callees b computes the set of addresses this block may call
has_indirect_jump d returns true if the hunk contains an indirect jump instruction
type conditional = {condition : Dba.Expr.t;consequent : Binsec_base.Virtual_address.t;alternative : Binsec_base.Virtual_address.t;
}