diff options
| author | Ajax <commial@gmail.com> | 2015-03-19 10:05:47 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2015-03-19 10:05:47 +0100 |
| commit | 9adbbb771d946523f5fa140ec38e0292d5a76ee5 (patch) | |
| tree | 299e28ae7fd2e3b483ccb2f81977c3a22a84f6a0 /miasm2/analysis/binary.py | |
| parent | 1c9d151e718865adefd01d9c6668ef84c2890c59 (diff) | |
| download | miasm-9adbbb771d946523f5fa140ec38e0292d5a76ee5.tar.gz miasm-9adbbb771d946523f5fa140ec38e0292d5a76ee5.zip | |
Container: add a new property: `arch`, the guessed arch from the container
Diffstat (limited to 'miasm2/analysis/binary.py')
| -rw-r--r-- | miasm2/analysis/binary.py | 6 |
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): |