149 Commits

Author SHA1 Message Date
Romain Thomas
4ef1bb845f Add new formats: OAT, DEX, VDEX, ART 2018-05-04 12:46:28 +02:00
yd0b0N
0bbeaa81e9 Add applies_to field to Relocation
The field contains a pointer to the Section object
the OBJECT Relocation applies to.
2018-05-03 07:34:46 +02:00
yd0b0N
08b514191f Add support for PPC32/64 relocations 2018-05-02 15:15:33 +02:00
Romain Thomas
4ef839c3d8 Enhance BinaryStream Interface 2018-04-15 08:55:23 +02:00
Romain Thomas
a16e1c4d13 Expose DataInCode 2018-04-02 08:21:15 +02:00
Romain Thomas
9cadce30e7 Expose basic structure of code signature 2018-04-02 08:21:15 +02:00
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
30544b095b Fix #151 2018-03-20 17:37:31 +01: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
9125b146cd Disable lief logger by default and export C API for logger
C API Changes (Added):
  * lief_logging_disable
  * lief_logging_enable
  * lief_logging_set_level
  * lief_logging_set_verbose_level
2017-11-30 16:58: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
fe6168d319 Add PE Import and ImportEntry in the C API
API Changes (C / PE):

  * Pe_Import_t      - Added
  * Pe_ImportEntry_t - Added
2017-09-24 11:27:37 +02:00