DLL-Injector is a library for injecting DLLs into processes using Python.
Project description
DLL-Injector
DLL-Injector is a library that allows injecting DLLs into processes via Python.
Set up
Install
pip install DLL-Injector
Upgrade
pip install --upgrade DLL-Injector
Support
If you want to contact me for questions, bugs, or problems or other : lixnew2@gmail.com
Python version
DLL-Injector was written for Python 3.
Functions
Inject a DLL into a process
inject(dll_path: str, process_name: str = None, process_pid: int = None)
# Injects a DLL into a process specified by its name or PID.
# NOTE: You must specify at least one of the two arguments (process_name, process_pid).
args = dll_path, process_name (optional), process_pid (optional)
Function Documentation
inject
Injects a DLL into a specified process.
Arguments:
dll_path
(str): The path to the DLL file.process_name
(str, optional): The name of the process to inject the DLL into.process_pid
(int, optional): The process ID of the process to inject the DLL into.- WARNING: At least one of the two arguments (process_name, process_pid) must be specified.
Raises:
ValueError
: If the DLL path is not specified, does not exist, or is not a valid DLL file.ValueError
: If neither the process name nor the process ID is specified.ValueError
: If the process name is specified but the process does not exist.ValueError
: If the process ID is specified but does not exist.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dll_injector-1.0.2.tar.gz
(21.3 kB
view details)
Built Distribution
File details
Details for the file dll_injector-1.0.2.tar.gz
.
File metadata
- Download URL: dll_injector-1.0.2.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a91af08f73f53e321f8b227fb5e2177e89e1e3b3f1bf257f5aa8b08775f71fa |
|
MD5 | 84c3ca01bd47b60a1fff003658a9eba0 |
|
BLAKE2b-256 | 1f35b08062ac6f863d5d5c9057d8f6b4618530bc3313629fcddb769a00dcc642 |
File details
Details for the file DLL_Injector-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: DLL_Injector-1.0.2-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e02357d9b765e0aeb3dd6b77ce2541cf68efbc4661533b4bdc80a9f0470e63b |
|
MD5 | 08ae6fb9480422d9194445056312b14a |
|
BLAKE2b-256 | cd87b54a02bf277d4ee62e8a0c3dc1dca2bd9eff781e021a76bab5316622656e |