diff options
| author | Camille Mougey <commial@gmail.com> | 2018-10-21 11:56:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-21 11:56:16 +0200 |
| commit | 1a9a56806a654654824cc79d0d215e09ac1b85ac (patch) | |
| tree | a5037e326d2b606c90409a2d154682d4bb3fcddf /miasm2/analysis/binary.py | |
| parent | 794a2ef09a55eb040aff6a5408433c71ccb93729 (diff) | |
| parent | fcac5724b1c9df6e58750b890bb0d872908bf589 (diff) | |
| download | miasm-1a9a56806a654654824cc79d0d215e09ac1b85ac.tar.gz miasm-1a9a56806a654654824cc79d0d215e09ac1b85ac.zip | |
Merge pull request #866 from serpilliere/bs_get_int
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) |