From 7478b01ea8e6bdee47d3ecd67c7f233b1d18bd32 Mon Sep 17 00:00:00 2001 From: m4b Date: Mon, 17 Aug 2015 13:19:16 -0600 Subject: [PATCH] updated to 2.0.1, added meta, etc.; --- .gitignore | 6 +---- _oasis | 8 ++---- lib/META | 59 ++++++++++++++++++++++++++++++++++++++++++ lib/elf/META | 13 ++++++++++ lib/goblin/META | 13 ++++++++++ lib/mach/META | 13 ++++++++++ lib/utils/META | 12 +++++++++ opam/descr | 25 ++++++++++++++++++ opam/files/rdr.install | 4 +++ opam/findlib | 1 + opam/opam | 21 +++++++++++++++ setup.ml | 11 ++++---- src/META | 13 ++++++++++ 13 files changed, 183 insertions(+), 16 deletions(-) create mode 100644 lib/META create mode 100644 lib/elf/META create mode 100644 lib/goblin/META create mode 100644 lib/mach/META create mode 100644 lib/utils/META create mode 100644 opam/descr create mode 100644 opam/files/rdr.install create mode 100644 opam/findlib create mode 100644 opam/opam create mode 100644 src/META diff --git a/.gitignore b/.gitignore index 2893b5d..d21137e 100644 --- a/.gitignore +++ b/.gitignore @@ -17,8 +17,4 @@ darwin/* *.docdir setup.data -setup.log - -META -*.mldylib -*.mllib +setup.log \ No newline at end of file diff --git a/_oasis b/_oasis index c0e7150..67f8a77 100644 --- a/_oasis +++ b/_oasis @@ -1,17 +1,13 @@ OASISFormat: 0.4 Plugins: META (0.4), DevFiles (0.4) Name: rdr -Version: 2.0 +Version: 2.0.1 Synopsis: Lightweight, cross platform binary parsing and analysis library with no dependencies Authors: m4b Homepage: http://github.com/m4b/rdr Maintainers: License: BSD-3-clause -Description: Rdr is a cross-platform binary analysis and reverse engineering library, - utilizing a unique symbol map for global analysis. - - - `rdr` is an OCaml tool/library for doing cross-platform analysis of binaries, +Description:`rdr` is an OCaml tool/library for doing cross-platform analysis of binaries, by printing headers, locating entry points, showing import and export symbols, their binary offsets and size, etc. diff --git a/lib/META b/lib/META new file mode 100644 index 0000000..cfa6e4d --- /dev/null +++ b/lib/META @@ -0,0 +1,59 @@ +# OASIS_START +# DO NOT EDIT (digest: 19245a18a78bafcbdce567c9476d0a71) +version = "2.0.1" +description = +"Lightweight, cross platform binary parsing and analysis library with no dependencies" +requires = "rdr.goblin rdr.utils rdr.mach rdr.elf" +archive(byte) = "rdr.cma" +archive(byte, plugin) = "rdr.cma" +archive(native) = "rdr.cmxa" +archive(native, plugin) = "rdr.cmxs" +exists_if = "rdr.cma" +package "utils" ( + version = "2.0.1" + description = + "Lightweight, cross platform binary parsing and analysis library with no dependencies" + archive(byte) = "utils.cma" + archive(byte, plugin) = "utils.cma" + archive(native) = "utils.cmxa" + archive(native, plugin) = "utils.cmxs" + exists_if = "utils.cma" +) + +package "mach" ( + version = "2.0.1" + description = + "Lightweight, cross platform binary parsing and analysis library with no dependencies" + requires = "rdr.utils" + archive(byte) = "mach.cma" + archive(byte, plugin) = "mach.cma" + archive(native) = "mach.cmxa" + archive(native, plugin) = "mach.cmxs" + exists_if = "mach.cma" +) + +package "goblin" ( + version = "2.0.1" + description = + "Lightweight, cross platform binary parsing and analysis library with no dependencies" + requires = "rdr.utils rdr.mach rdr.elf" + archive(byte) = "goblin.cma" + archive(byte, plugin) = "goblin.cma" + archive(native) = "goblin.cmxa" + archive(native, plugin) = "goblin.cmxs" + exists_if = "goblin.cma" +) + +package "elf" ( + version = "2.0.1" + description = + "Lightweight, cross platform binary parsing and analysis library with no dependencies" + requires = "rdr.utils" + archive(byte) = "elf.cma" + archive(byte, plugin) = "elf.cma" + archive(native) = "elf.cmxa" + archive(native, plugin) = "elf.cmxs" + exists_if = "elf.cma" +) +# OASIS_STOP + diff --git a/lib/elf/META b/lib/elf/META new file mode 100644 index 0000000..c02f85f --- /dev/null +++ b/lib/elf/META @@ -0,0 +1,13 @@ +# OASIS_START +# DO NOT EDIT (digest: dc13e6ca3cd0fe7a183086218f6af14f) +version = "1.1" +description = +"Lightweight, cross platform binary parsing and analysis library with no dependencies" +requires = "goblin utils" +archive(byte) = "elf.cma" +archive(byte, plugin) = "elf.cma" +archive(native) = "elf.cmxa" +archive(native, plugin) = "elf.cmxs" +exists_if = "elf.cma" +# OASIS_STOP + diff --git a/lib/goblin/META b/lib/goblin/META new file mode 100644 index 0000000..817a667 --- /dev/null +++ b/lib/goblin/META @@ -0,0 +1,13 @@ +# OASIS_START +# DO NOT EDIT (digest: c06468a8578c3570ca857b0f4da94952) +version = "1.1" +description = +"Lightweight, cross platform binary parsing and analysis library with no dependencies" +requires = "utils" +archive(byte) = "goblin.cma" +archive(byte, plugin) = "goblin.cma" +archive(native) = "goblin.cmxa" +archive(native, plugin) = "goblin.cmxs" +exists_if = "goblin.cma" +# OASIS_STOP + diff --git a/lib/mach/META b/lib/mach/META new file mode 100644 index 0000000..7846332 --- /dev/null +++ b/lib/mach/META @@ -0,0 +1,13 @@ +# OASIS_START +# DO NOT EDIT (digest: 3a9fea97bc0f9f339ba064f211798e15) +version = "1.1" +description = +"Lightweight, cross platform binary parsing and analysis library with no dependencies" +requires = "utils goblin" +archive(byte) = "mach.cma" +archive(byte, plugin) = "mach.cma" +archive(native) = "mach.cmxa" +archive(native, plugin) = "mach.cmxs" +exists_if = "mach.cma" +# OASIS_STOP + diff --git a/lib/utils/META b/lib/utils/META new file mode 100644 index 0000000..18913bd --- /dev/null +++ b/lib/utils/META @@ -0,0 +1,12 @@ +# OASIS_START +# DO NOT EDIT (digest: e8a47bb4a2b8113d81482c5b08352e15) +version = "1.1" +description = +"Lightweight, cross platform binary parsing and analysis library with no dependencies" +archive(byte) = "utils.cma" +archive(byte, plugin) = "utils.cma" +archive(native) = "utils.cmxa" +archive(native, plugin) = "utils.cmxs" +exists_if = "utils.cma" +# OASIS_STOP + diff --git a/opam/descr b/opam/descr new file mode 100644 index 0000000..0d02ba6 --- /dev/null +++ b/opam/descr @@ -0,0 +1,25 @@ +Rdr is a cross-platform binary analysis and reverse engineering library, +utilizing a unique symbol map for global analysis. + +`rdr` is an OCaml tool/library for doing cross-platform analysis of binaries, +by printing headers, locating entry points, showing import and export +symbols, their binary offsets and size, etc. + +It also features a symbol map which allows fast lookups for arbitrary +symbols, and their associated data, on your system +(the default search location are binaries in /usr/lib). + +The latest release also makes `rdr` a package which you can link against +and use in your own projects. + +See the README at http://github.com/m4b/rdr for more details. + +Features: + +* 64-bit Linux and Mach-o binary analysis +* Searchable symbol-map of all the symbols on your system, including binary + offset, size, and exporting library +* Print imports and exports of binaries +* Make pretty graphs, at the binary or symbol map level +* Byte Coverage algorithm which marks byte sequences as understood (or not) + and provides other meta-data \ No newline at end of file diff --git a/opam/files/rdr.install b/opam/files/rdr.install new file mode 100644 index 0000000..8e31182 --- /dev/null +++ b/opam/files/rdr.install @@ -0,0 +1,4 @@ +bin: [ + "?_build/src/Rdr.byte" {"rdr"} + "?_build/src/Rdr.native" {"rdr"} +] diff --git a/opam/findlib b/opam/findlib new file mode 100644 index 0000000..cb29315 --- /dev/null +++ b/opam/findlib @@ -0,0 +1 @@ +rdr diff --git a/opam/opam b/opam/opam new file mode 100644 index 0000000..38b2e13 --- /dev/null +++ b/opam/opam @@ -0,0 +1,21 @@ +opam-version: "1.2" +name: "rdr" +version: "2.0.1" +maintainer: "" +authors: [ "m4b" ] +license: "BSD-3-clause" +homepage: "http://github.com/m4b/rdr" +build: [ + ["ocaml" "setup.ml" "-configure" "--prefix" prefix] + ["ocaml" "setup.ml" "-build"] +] +install: ["ocaml" "setup.ml" "-install"] +remove: [ + ["ocamlfind" "remove" "rdr"] +] +depends: [ + "ocamlfind" +] +depopts: [ + "base-unix" +] diff --git a/setup.ml b/setup.ml index 4e7f0ad..ee10080 100644 --- a/setup.ml +++ b/setup.ml @@ -1,7 +1,7 @@ (* setup.ml generated for the first time by OASIS v0.4.5 *) (* OASIS_START *) -(* DO NOT EDIT (digest: 1fc35b715026cea72f446cdddfe0aa84) *) +(* DO NOT EDIT (digest: 0ea9e89b8958ac74e5efeeee2e3deaea) *) (* Regenerated by OASIS v0.4.5 Visit http://oasis.forge.ocamlcore.org for more information and @@ -6673,7 +6673,7 @@ let setup_t = alpha_features = []; beta_features = []; name = "rdr"; - version = "2.0"; + version = "2.0.1"; license = OASISLicense.DEP5License (OASISLicense.DEP5Unit @@ -6693,7 +6693,7 @@ let setup_t = Some [ OASISText.Para - "Rdr is a cross-platform binary analysis and reverse engineering library, utilizing a unique symbol map for global analysis. `rdr` is an OCaml tool/library for doing cross-platform analysis of binaries, by printing headers, locating entry points, showing import and export symbols, their binary offsets and size, etc. It also features a symbol map which allows fast lookups for arbitrary symbols, and their associated data, on your system (the default search location are binaries in /usr/lib). The latest release also makes `rdr` a package which you can link against and use in your own projects. See the README at http://github.com/m4b/rdr for more details. Features: * 64-bit Linux and Mach-o binary analysis * Searchable symbol-map of all the symbols on your system, including binary"; + "`rdr` is an OCaml tool/library for doing cross-platform analysis of binaries, by printing headers, locating entry points, showing import and export symbols, their binary offsets and size, etc. It also features a symbol map which allows fast lookups for arbitrary symbols, and their associated data, on your system (the default search location are binaries in /usr/lib). The latest release also makes `rdr` a package which you can link against and use in your own projects. See the README at http://github.com/m4b/rdr for more details. Features: * 64-bit Linux and Mach-o binary analysis * Searchable symbol-map of all the symbols on your system, including binary"; OASISText.Verbatim " offset, size, and exporting library"; OASISText.Para "* Print imports and exports of binaries * Make pretty graphs, at the binary or symbol map level * Byte Coverage algorithm which marks byte sequences as understood (or not)"; @@ -7026,7 +7026,8 @@ let setup_t = }; oasis_fn = Some "_oasis"; oasis_version = "0.4.5"; - oasis_digest = Some "\018]\160\171\133\t\167\180\159*\012Xj\019\004\181"; + oasis_digest = + Some "\224p\218\230\235\135\236H\\\163\235\230\197\204\153>"; oasis_exec = None; oasis_setup_args = []; setup_update = false @@ -7034,6 +7035,6 @@ let setup_t = let setup () = BaseSetup.setup setup_t;; -# 7038 "setup.ml" +# 7039 "setup.ml" (* OASIS_STOP *) let () = setup ();; diff --git a/src/META b/src/META new file mode 100644 index 0000000..9f140a3 --- /dev/null +++ b/src/META @@ -0,0 +1,13 @@ +# OASIS_START +# DO NOT EDIT (digest: ba5008755c5582c056b0af13e4b5998d) +version = "2.0.1" +description = +"Lightweight, cross platform binary parsing and analysis library with no dependencies" +requires = "rdr.elf rdr.mach rdr.goblin rdr.utils str unix" +archive(byte) = "rdrutils.cma" +archive(byte, plugin) = "rdrutils.cma" +archive(native) = "rdrutils.cmxa" +archive(native, plugin) = "rdrutils.cmxs" +exists_if = "rdrutils.cma" +# OASIS_STOP +