about summary refs log tree commit diff stats
path: root/miasm2/analysis/binary.py
diff options
context:
space:
mode:
authorCamille Mougey <camille.mougey@cea.fr>2014-11-03 18:05:49 +0100
committerCamille Mougey <camille.mougey@cea.fr>2014-11-03 18:05:49 +0100
commitbf08353e23940f9e83c85c17eafcf997710a40c9 (patch)
treed2a02a107b43f6613535d350bec41439fdff0ab7 /miasm2/analysis/binary.py
parent1c6b959a3a73580a74186f25e66d4844185f98d8 (diff)
downloadmiasm-bf08353e23940f9e83c85c17eafcf997710a40c9.tar.gz
miasm-bf08353e23940f9e83c85c17eafcf997710a40c9.zip
Container: update API with full words
Diffstat (limited to 'miasm2/analysis/binary.py')
-rw-r--r--miasm2/analysis/binary.py19
1 files changed, 18 insertions, 1 deletions
diff --git a/miasm2/analysis/binary.py b/miasm2/analysis/binary.py
index 5c506280..996ea4b9 100644
--- a/miasm2/analysis/binary.py
+++ b/miasm2/analysis/binary.py
@@ -60,4 +60,21 @@ class Container(object):
                                    PAGE_READ,
                                    data)
 
-        self.e, self.bs, self.ep = e, bs, ep
+        self._entry_point = ep
+        self._bin_stream = bs
+        self._executable = e
+
+    @property
+    def bin_stream(self):
+        "Return the BinStream instance corresponding to container content"
+        return self._bin_stream
+
+    @property
+    def executable(self):
+        "Return the abstract instance standing for parsed executable"
+        return self._executable
+
+    @property
+    def entry_point(self):
+        "Return the detected entry_point"
+        return self._entry_point