From 9adbbb771d946523f5fa140ec38e0292d5a76ee5 Mon Sep 17 00:00:00 2001 From: Ajax Date: Thu, 19 Mar 2015 10:05:47 +0100 Subject: Container: add a new property: `arch`, the guessed arch from the container --- miasm2/analysis/binary.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'miasm2/analysis/binary.py') diff --git a/miasm2/analysis/binary.py b/miasm2/analysis/binary.py index ff01cbc5..27ae9ce7 100644 --- a/miasm2/analysis/binary.py +++ b/miasm2/analysis/binary.py @@ -92,6 +92,7 @@ class Container(object): self._executable = None self._bin_stream = None self._entry_point = None + self._arch = None # Launch parsing self.parse(*args, **kwargs) @@ -111,6 +112,11 @@ class Container(object): "Return the detected entry_point" return self._entry_point + @property + def arch(self): + "Return the guessed architecture" + return self._arch + ## Format dependent classes class ContainerPE(Container): -- cgit 1.4.1