Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Lief | 3,850 | 97 | 43 | 2 days ago | 22 | June 17, 2023 | 81 | apache-2.0 | C++ | |
LIEF - Library to Instrument Executable Formats | ||||||||||
Ocrsdk.com | 467 | 2 years ago | 30 | apache-2.0 | Java | |||||
ABBYY Cloud OCR SDK | ||||||||||
Lib3mf | 199 | a month ago | 2 | August 25, 2021 | 58 | bsd-2-clause | C++ | |||
lib3mf is an implementation of the 3D Manufacturing Format file standard | ||||||||||
Xmp Toolkit Sdk | 161 | a month ago | 37 | bsd-3-clause | C++ | |||||
The XMP Toolkit allows you to integrate XMP functionality into your product or solution | ||||||||||
Enhance | 79 | 10 months ago | apache-2.0 | Java | ||||||
Add API information (since/deprecation) to Android source code as javadoc tags | ||||||||||
Sdk Android | 43 | 4 years ago | 16 | HTML | ||||||
SBK Demo Android | ||||||||||
Keystone Sdk | 43 | a year ago | 18 | other | C | |||||
SDK for Keystone Enclave - ABI/SBI libraries and sample apps | ||||||||||
Ids | 37 | a year ago | 16 | other | C | |||||
Interface for IDS machine vision cameras | ||||||||||
Iqm Exm | 27 | 2 years ago | 7 | unlicense | Python | |||||
IQM & EXM model format specs, Blender exporter, and LÖVE loader. | ||||||||||
Adinstruments_sdk_matlab | 22 | 2 months ago | 6 | mit | MATLAB | |||||
Implementation of AD Instruments SDK in Matlab - i.e. reads LabChart files |
Blog • Documentation • About
The purpose of this project is to provide a cross platform library which can parse, modify and abstract ELF, PE and MachO formats.
Main features:
First, make sure to have an updated version of setuptools:
pip install setuptools --upgrade
To install the latest version (release):
pip install lief
To install nightly build:
pip install [--user] --index-url https://lief.s3-website.fr-par.scw.cloud/latest lief==0.14.0.dev0
Here are guides to install or integrate LIEF:
import lief
# ELF
binary = lief.parse("/usr/bin/ls")
print(binary)
# PE
binary = lief.parse("C:\\Windows\\explorer.exe")
print(binary)
# Mach-O
binary = lief.parse("/usr/bin/ls")
print(binary)
#include <LIEF/LIEF.hpp>
int main(int argc, char** argv) {
// ELF
if (std::unique_ptr<const LIEF::ELF::Binary> elf = LIEF::ELF::Parser::parse("/bin/ls")) {
std::cout << *elf << '\n';
}
// PE
if (std::unique_ptr<const LIEF::PE::Binary> pe = LIEF::PE::Parser::parse("C:\\Windows\\explorer.exe")) {
std::cout << *pe << '\n';
}
// Mach-O
if (std::unique_ptr<LIEF::MachO::FatBinary> macho = LIEF::MachO::Parser::parse("/bin/ls")) {
std::cout << *macho << '\n';
}
return 0;
}
#include <LIEF/LIEF.h>
int main(int argc, char** argv) {
Elf_Binary_t* elf = elf_parse("/usr/bin/ls");
Elf_Section_t** sections = elf->sections;
for (size_t i = 0; sections[i] != NULL; ++i) {
printf("%s\n", sections[i]->name);
}
elf_binary_destroy(elf);
return 0;
}
Romain Thomas (@rh0main) - Quarkslab
LIEF is provided under the Apache 2.0 license.
@MISC {LIEF,
author = "Romain Thomas",
title = "LIEF - Library to Instrument Executable Formats",
howpublished = "https://lief.quarkslab.com/",
month = "apr",
year = "2017"
}