PyQBDIPreload consists of two main components:
The QBDIPreload script included in the PyQBDI library. It will load the Python runtime and execute the user script in order to instrument the target.
An injector script called pyqbdipreload.py that sets up the environment variables to inject the library and the Python runtime.
PyQBDIPreload has the same limitations as QBDIPreload and PyQBDI.
The Python interpreter and the preloaded script are loaded while executing
You can use pyqbdipreload.py as follows:
$ python3 -m pyqbdipreload <script> <target> [<args> ...]
script: The Python script
target: The binary you are targeting
args: Argument(s) to be passed to the binary (if any)