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.4.tar.gz
(20.9 kB
view details)
Built Distribution
File details
Details for the file dll_injector-1.0.4.tar.gz
.
File metadata
- Download URL: dll_injector-1.0.4.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 046b1a39b5cb419fb436fa5e072a802be8cbdb852ec0dfda2900e9f110696547 |
|
MD5 | bbd08f826e1fabc01ce7f3e7b0c2552c |
|
BLAKE2b-256 | ebbc5700b6a946460670a4b97a622051ef59e6c9e51393adad676820e624bad1 |
File details
Details for the file DLL_Injector-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: DLL_Injector-1.0.4-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 | 1174258e33e1fbc8f01499a9dbe3aa77db7fa277b1b2972db073d3aaca287ee4 |
|
MD5 | 361e912d05c32bf7b7bb808025ad772f |
|
BLAKE2b-256 | 60938a78d0e91221750e8ceede4a548cbeb30d181e8f392dccc55b41e502854f |