mit neuen venv und exe-Files

This commit is contained in:
2024-11-03 17:26:54 +01:00
parent 07c05a338a
commit 0c373ff593
15115 changed files with 1998469 additions and 0 deletions

View File

@@ -0,0 +1 @@
pip

View File

@@ -0,0 +1,157 @@
Metadata-Version: 2.1
Name: lief
Version: 0.15.1
Summary: Library to instrument executable formats
Keywords: parser,elf,pe,macho,reverse-engineering
Home-page: https://lief-project.github.io/
Author-Email: Romain Thomas <contact@lief.re>
License: Apache License 2.0
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: C++
Classifier: Topic :: Software Development :: Libraries
Project-URL: Homepage, https://lief-project.github.io/
Project-URL: Documentation, https://lief-project.github.io/doc/latest/
Project-URL: Repository, https://github.com/lief-project/LIEF
Project-URL: Changelog, https://lief-project.github.io/doc/latest/changelog.html
Project-URL: Funding, https://github.com/sponsors/lief-project
Project-URL: Tracker, https://github.com/lief-project/LIEF/issues
Requires-Python: >=3.8
Description-Content-Type: text/x-rst
About
=====
The purpose of this project is to provide a cross platform library that can parse, modify and
abstract ELF, PE and MachO formats.
Main features:
* **Parsing**: LIEF can parse ELF, PE, MachO, OAT, DEX, VDEX, ART and provides an user-friendly API to access to format internals.
* **Modify**: LIEF enables to modify some parts of these formats
* **Abstract**: Three formats have common features like sections, symbols, entry point... LIEF factors them.
* **API**: LIEF can be used in C, C++ and Python
Downloads / Install
===================
First, make sure to have an updated version of setuptools:
.. code-block:: console
$ pip install setuptools --upgrade
To install the latest **version** (release):
.. code-block:: console
$ pip install lief
To install nightly build:
.. code-block:: console
$ pip install [--user] --index-url https://lief.s3-website.fr-par.scw.cloud/latest lief
Getting started
===============
Python
------
.. code-block:: python
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)
C++
---
.. code-block:: cpp
#include <LIEF/LIEF.hpp>
int main(int argc, char** argv) {
// ELF
try {
std::unique_ptr<LIEF::ELF::Binary> elf = LIEF::ELF::Parser::parse("/bin/ls");
std::cout << *elf << '\n';
} catch (const LIEF::exception& err) {
std::cerr << err.what() << '\n';
}
// PE
try {
std::unique_ptr<LIEF::PE::Binary> pe = LIEF::PE::Parser::parse("C:\\Windows\\explorer.exe");
std::cout << *pe << '\n';
} catch (const LIEF::exception& err) {
std::cerr << err.what() << '\n';
}
// Mach-O
try {
std::unique_ptr<LIEF::MachO::FatBinary> macho = LIEF::MachO::Parser::parse("/bin/ls");
std::cout << *macho << '\n';
} catch (const LIEF::exception& err) {
std::cerr << err.what() << '\n';
}
return 0;
}
C (Limited API)
----------------
.. code-block:: cpp
#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;
}
Documentation
=============
* `Main documentation <https://lief-project.github.io/doc/latest/index.html>`_
* `Tutorial <https://lief-project.github.io/doc/latest/tutorials/index.html>`_
* `API <https://lief-project.github.io/doc/latest/api/index.html>`_
* `Doxygen <https://lief-project.github.io/doc/latest/doxygen/index.html>`_
Contact
=======
* **Mail**: contact at lief.re
* **Gitter**: `lief-project <https://gitter.im/lief-project>`_
Authors
=======
Romain Thomas `@rh0main <https://twitter.com/rh0main>`_ - `Quarkslab <https://www.quarkslab.com>`_
----
LIEF is provided under the `Apache 2.0 license <https://github.com/lief-project/LIEF/blob/0.12.3/LICENSE>`_

View File

@@ -0,0 +1,23 @@
lief-0.15.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
lief-0.15.1.dist-info/METADATA,sha256=xjs8qKGJLKSXO6mx2BZvX9Y60BegUUcN00vmaMwGsYU,3987
lief-0.15.1.dist-info/RECORD,,
lief-0.15.1.dist-info/WHEEL,sha256=raYSa41uyR3RTepDjt2zOjIhE3VDFqzbUhfN84nsytA,105
lief/ART.pyi,sha256=okrdxoGK3rdKCV-WISRQAvfyGPrAUjPN_D4RyD-qYvk,2376
lief/Android.pyi,sha256=0Sy9vgnifJFc8VJ2KyDlDzcyeHNct0qcAsMuDx9dzRg,1102
lief/DEX.pyi,sha256=NLOpH2wHo__KRhsDkx0nntpvAIPyPNTPo-Bkhzjz3H8,14056
lief/ELF.pyi,sha256=St7QpXiMVHsWqddda2rdZBIpYoAzkgbd3j9n6cdAbIc,148550
lief/MachO.pyi,sha256=7r6AWobJ3eUJ2j_4yNqBKjeCwQL52M6adKodCm5xeEU,69567
lief/OAT.pyi,sha256=ro8E1XU6Jhium5ecvoxLp0TNxQfWvv1yOkzMUpg433s,9821
lief/PE.pyi,sha256=aQanWqgeCmRE3XqoGA9EMJa3D9bor8Zo09_As8KxB5g,121268
lief/VDEX.pyi,sha256=VStSPLoR-Vhs50e17YDDSls_VYUkzzt7oXKNRJtQHhw,1538
lief/__init__.py,sha256=lBwJw2tZUxUz7pdrhptJpjj9BkXV2bWqCpTsvPmMjQ0,520
lief/__init__.pyi,sha256=10H07vSY1qjAGQyGdMtjQMMYRNyBSN7umE0s0e-4WHI,14570
lief/__pycache__/__init__.cpython-312.pyc,,
lief/_lief.pyd,sha256=E6005HV3H9ZWynVbsFtqx-TKXJbMrkOgUqgpmPzrqVs,6911488
lief/dwarf/__init__.pyi,sha256=m0-zG9BTNBDVuRbaDsxchhfLK49y1MlVAnhwJEaym1E,6983
lief/dwarf/types.pyi,sha256=5crWFL1XzgBlw_yYcAj17ZTO8kGem12ugGHGk127aZs,2527
lief/logging.pyi,sha256=HFlBKdZvcpowG8rY_Dk_H60yeZ76XWBBDV-bRWa1TAI,850
lief/objc.pyi,sha256=Vi9Ss2SutQlnstL21o90wwdKdRMz8S0WgC5TkJ27YXQ,2088
lief/pdb/__init__.pyi,sha256=PC6MdB3HOf4LX1oBxJZGkpT0sf7UuPYtY2rqeS0GkW0,2853
lief/pdb/types.pyi,sha256=gBIbdm_tPCu3XtMWQ0oCZPv0ZdjwaWGm1JmvAMUhoMI,1917
lief/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0

View File

@@ -0,0 +1,5 @@
Wheel-Version: 1.0
Generator: scikit-build-core 0.9.8
Root-Is-Purelib: false
Tag: cp312-cp312-win_amd64