135 Commits

Author SHA1 Message Date
Romain Thomas
237611f859 Expose the Dynamic symbol command 2018-03-28 16:14:56 +02:00
Romain Thomas
6676d6c91d Fix typo 2018-03-27 21:26:52 +02:00
Romain Thomas
5a6448c00d Explicit is better than implicit:
Add api to specify if the virtual address given to
LIEF::Binary::patch_address or
LIEF::Binary::get_content_from_virtual_address
is relative or absolute
2018-03-27 15:36:08 +02:00
Romain Thomas
4969a4c55a Expose MachO SymbolCommand (LC_SYMTAB) 2018-03-19 16:46:48 +01:00
Romain Thomas
46fa0e9747 Fix #139
API added:
  * PE::ResourceDialog::lang
  * PE::ResourceDialog::sub_lang
2018-03-18 18:16:19 +01:00
Romain Thomas
4e3e87eea4 Fix #136 2018-03-18 18:15:21 +01:00
Romain Thomas
3b17aba10e Refactor some parts of the Architecture:
* JSON visitor are located in the format namespace
  * Visitor are *real* visitor
  * Visitable class has been renamed to Object
  * Due to a bug in Visual Studio 2015, we move to VS2017
2018-03-13 16:49:02 +01:00
Romain Thomas
df3d269e23 Enhance ELF symbols 2018-03-07 12:51:28 +01:00
Romain Thomas
5d56141061 Show Mach-O opcodes and export-trie 2018-03-02 09:24:59 +01:00
Romain Thomas
a40da3e3b4 Enable to export and create dynamic symbols
New API:

  * Binary::{has_dynamic_symbol, has_static_symbol}
  * Binary::{get_dynamic_symbol, get_static_symbol}
  * Binary::add_exported_function
  * Binary::export_symbol

  * Symbol::visibility
  * SymbolVersion::local / SymbolVersion::global

Resolve #112
2018-02-28 16:18:33 +01:00
Romain Thomas
d13db18214 Support the '.note.android.ident' section 2018-02-28 15:45:46 +01:00
Romain Thomas
1418272c2c Expose item iterator 2018-02-19 09:32:01 +01:00
Romain Thomas
eab4a7614f Parse PE Code View (PDB 7.0)
Resolve: #138
2018-02-17 12:50:10 +01:00
Peter
2fca982c8d
Added FreeBSD references to solve install issues
Added FreeBSD as possible target OS. Python3.6 install --user was throwing error about unknown OS. 
these fixes worked on my end.
2018-02-09 10:28:28 +01:00
Romain Thomas
9d93cc5ec4 Update API for MachO RPath. Related to 27575527db50d8c340d94b01e7501c22273654ee 2018-01-18 14:41:48 +01:00
Jakob Rieck
196994dc08 Parse the MachO LC_RPATH command 2017-12-15 00:14:00 +01:00
Romain Thomas
ae4c2a95ee Fix #126 2017-12-11 08:55:40 +01:00
Romain Thomas
1c722d9ff2 Add new ELF relocations 2017-11-25 11:42:00 +01:00
Romain Thomas
4e38d9cf99 Fix #117 2017-11-21 16:59:39 +01:00
Romain Thomas
404e0ecca3 Enhance LIEF 'modules' separation 2017-11-18 18:07:14 +01:00
Romain Thomas
ba7dfeab39 Update doc 2017-11-01 20:34:20 +01:00
Romain Thomas
aa70e07791 Handle Python BytesIO, TextIO for LIEF' parsers
Resolve: #49
2017-11-01 16:44:39 +01:00
Romain Thomas
49fdb8dc8f Add 'shell' and 'breakp' for the Python API
* 'lief.shell()' spawns an IPython interpreter with the current
     context
  * 'lief.breakp()' launchs pdb.set_trace()
2017-11-01 16:38:48 +01:00
Romain Thomas
5778bae34c Use Pybind11 C++ API instead of 'eval' 2017-11-01 16:38:03 +01:00
Romain Thomas
4cee3fa240 Some improvements in the CMake build
* cache dependencies in the 'third-party' directory.
  * Enhance Python 'find_library'
2017-11-01 10:12:05 +01:00
Romain Thomas
49c2d089dd Downgrade the setuptools requirement to 31.0.0 2017-10-30 15:34:53 +01:00
Romain Thomas
d421f12e32 Update doc for symbols 2017-10-30 15:34:53 +01:00
Romain Thomas
880b99aeef Provide MachO::ParserConfig to parametrize the parsing.
Resolve: #105
2017-10-30 15:34:53 +01:00
Romain Thomas
62e5825e27 Enforce setuptools version 2017-10-18 14:31:42 +02:00
Romain Thomas
b1c4c2db1e Fix bdist_egg errors 2017-10-17 11:38:09 +02:00
Romain Thomas
0234e3b8bb Parse the PE Load Configuration structure 2017-10-06 07:55:58 +02:00
Romain Thomas
721eeae9a2 Fix typo 2017-10-04 09:34:27 +02:00
Romain Thomas
d5d3d375d4 Upgrade pip in the Windows CI 2017-10-04 08:30:15 +02:00
Romain Thomas
2e4bd6d4c4 Improve Python packaging 2017-10-03 22:42:13 +02:00
Romain Thomas
3be9dd0ff5 Enable ELF notes modifications 2017-10-02 16:24:55 +02:00
Romain Thomas
ab160a88d6 Move to version 2.2.1 of Pybind11 2017-10-01 20:51:44 +02:00
Romain Thomas
3602643f5d Fix memory leaks in the MachO Python API and create FatBinary
API Changes:

LIEF::MachO::Parser won't return a 'std::vector' of MachO::Binary*
but a pointer to MachO::FatBinary object
It's a kind of wrapper on std::vector<MachO::Binary*>
2017-09-29 13:06:08 +02:00
Romain Thomas
cd0f1e03d8 Fix typo 2017-09-28 11:24:20 +02:00
Romain Thomas
7a0dc28ea2 Integration of llvm libFuzzer 2017-09-28 10:54:37 +02:00
Romain Thomas
7f6aeb0d0d Enable ASAN, TSAN, USAN and LSAN 2017-09-28 08:54:40 +02:00
Romain Thomas
051a452415 Use archives instead of all repos 2017-09-24 14:00:35 +02:00
Romain Thomas
e805669865 Update ELF API
Related to #66
2017-09-23 14:40:21 +02:00
Romain Thomas
9036a2405d Bug fix in dynamic symbols counting based on GnuHash
API Changes (ELF):

  * ELF::GnuHash::{check_bloom_filter, check_bucket, check}
2017-09-23 14:08:52 +02:00
Romain Thomas
accf47ebf2 Fix performances issues
Fix #94
2017-09-20 13:58:19 +02:00
Romain Thomas
23257830b2 Parse the MachO LC_THREAD/LC_UNIXTHREAD command
New object: MachO::ThreadCommand

Resolve: #89
2017-09-13 17:42:05 +02:00
Romain Thomas
81440ce00c Enhance ELF API the DynamicEntryArray 2017-09-12 15:37:32 +02:00
Romain Thomas
c375a47da7 Improve API for ELF RUN_PATH / RPATH 2017-09-12 15:05:30 +02:00
Romain Thomas
1e410e6c95 Add API to remove dynamic entries (ELF)
API Changes (Python / C++):

  * lief.ELF.Binary.remove(DynamicEntry / DYNAMIC_TAGS) - Added
  * lief.ELF.Binary.remove_library
2017-09-12 13:57:51 +02:00
Romain Thomas
8ecaab0a7c Resolve #88 2017-09-07 22:23:57 +02:00
Romain Thomas
a4c69f7868 Rename getter from get_XXX to XXX
related to #66
2017-09-07 14:45:41 +02:00