-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
5,063 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Flag mips | ||
Description: Build Dalvik/DEX lifter | ||
Default: true | ||
|
||
Library mips_plugin | ||
XMETADescription: provide Dalvik/DEX lifter | ||
Path: plugins/dalvik | ||
FindlibName: bap-plugin-dalvik | ||
Build$: flag(everything) || flag (dalvik) | ||
BuildDepends: bap, bap-abi, bap-c, bap-core-theory | ||
InternalModules: | ||
Dalvik, | ||
Dalvik_disasm, | ||
Dalvik_dex, | ||
Dalvik_java, | ||
Dalvik_lifter | ||
|
||
XMETAExtraLines: tags="dalvik,lifter,arch,abi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
open Core_kernel | ||
open Bap_core_theory | ||
open KB.Syntax | ||
|
||
let package = "dalvik" | ||
|
||
let () = Project.Input.register_loader "dex" @@ fun filename -> | ||
let empty = Memmap.empty in | ||
let prog = prog_of_dex filename in | ||
Project.Input.create `dalvik filename ~code:empty ~data:empty | ||
~finish:(fun proj -> Project.with_program prog) | ||
|
Oops, something went wrong.