Skip to content

Commit

Permalink
Dirty, very dirty initial draft
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka committed Sep 13, 2019
1 parent 69fde6f commit 4bb25ea
Show file tree
Hide file tree
Showing 8 changed files with 5,063 additions and 0 deletions.
18 changes: 18 additions & 0 deletions oasis/dalvik
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"
12 changes: 12 additions & 0 deletions plugins/dalvik/dalvik.ml
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)

Loading

0 comments on commit 4bb25ea

Please sign in to comment.