diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-10-11 07:49:51 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-10-11 08:20:21 +0200 |
| commit | fcac5724b1c9df6e58750b890bb0d872908bf589 (patch) | |
| tree | f80d3c749ec8a3b71dc3b7b1c8c27d3086f46967 /miasm2/analysis/binary.py | |
| parent | 3cd3675165cd96c030401fbb1e6392898507a71b (diff) | |
| download | focaccia-miasm-fcac5724b1c9df6e58750b890bb0d872908bf589.tar.gz focaccia-miasm-fcac5724b1c9df6e58750b890bb0d872908bf589.zip | |
Bin_stream: add get_u8/u16/u32/u64
Diffstat (limited to 'miasm2/analysis/binary.py')
| -rw-r--r-- | miasm2/analysis/binary.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/analysis/binary.py b/miasm2/analysis/binary.py index 21e5c356..6dfef92a 100644 --- a/miasm2/analysis/binary.py +++ b/miasm2/analysis/binary.py @@ -156,7 +156,7 @@ class ContainerPE(Container): # Build the bin_stream instance and set the entry point try: - self._bin_stream = bin_stream_pe(self._executable.virt) + self._bin_stream = bin_stream_pe(self._executable) ep_detected = self._executable.Opthdr.AddressOfEntryPoint self._entry_point = self._executable.rva2virt(ep_detected) except Exception, error: @@ -200,7 +200,7 @@ class ContainerELF(Container): # Build the bin_stream instance and set the entry point try: - self._bin_stream = bin_stream_elf(self._executable.virt) + self._bin_stream = bin_stream_elf(self._executable) self._entry_point = self._executable.Ehdr.entry + addr except Exception, error: raise ContainerParsingException('Cannot read ELF: %s' % error) |