about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--miasm2/analysis/binary.py6
1 files changed, 6 insertions, 0 deletions
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):