Skip to main content

PyPeLoader Logo

PyPeLoader

Description

This package implements a basic PE loader in python to load executable in memory (used to create packer, loader from internet or to impact a process context).

Requirements

This package require:

  • python3
  • python3 Standard Library

Installation

Pip

python3 -m pip install PyPeLoader

Git

git clone "https://github.com/mauricelambert/PyPeLoader.git"
cd "PyPeLoader"
python3 -m pip install .

Wget

wget https://github.com/mauricelambert/PyPeLoader/archive/refs/heads/main.zip
unzip main.zip
cd PyPeLoader-main
python3 -m pip install .

cURL

curl -O https://github.com/mauricelambert/PyPeLoader/archive/refs/heads/main.zip
unzip main.zip
cd PyPeLoader-main
python3 -m pip install .

Usages

Command line

PyPeLoader              # Using CLI package executable
python3 -m PyPeLoader   # Using python module
python3 PyPeLoader.pyz  # Using python executable
PyPeLoader.exe          # Using python Windows executable

PyPeLoader.exe "C:\Windows\System32\net1.exe" "net user"

Python script

from PyPeLoader import load, get_peb, modify_process_informations, modify_executable_path_name, set_command_lines

full_path = r"C:\Windows\System32\net1.exe"
module_name = "net1.exe"
command_line = "net user"

peb = get_peb()

modify_process_informations(peb, full_path, command_line)
modify_executable_path_name(peb, module_name, full_path)
set_command_lines(command_line)

with open(full_path, 'rb') as file:
    load(file) # for 32 bits python version use: C:\Windows\SysWOW64\net1.exe

License

Licensed under the GPL, version 3.

Metadata

Release files for PyPeLoader 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyPeLoader 1.0.0
File Size Uploaded Provenance Actions
pypeloader-1.0.0.tar.gz 25.8 kB Without provenance Details for pypeloader-1.0.0.tar.gz

Release files / pypeloader-1.0.0.tar.gz

Download URL pypeloader-1.0.0.tar.gz
Size 25.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b273b3891b18d6fba8e573afe0f70f35ab742b0f9ed13d37467b3ad02b75be6c
BLAKE2b-256 checksum
How to use checksums
89c8c3287c016e3689249ebb289af5cf0ef3ea7078e8aed996e2414a195ff095
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for PyPeLoader 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page