From bf08353e23940f9e83c85c17eafcf997710a40c9 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 3 Nov 2014 18:05:49 +0100 Subject: Container: update API with full words --- miasm2/analysis/binary.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'miasm2/analysis/binary.py') 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 -- cgit 1.4.1