Skip to main content

Inject code into a running Python process

Project description

https://img.shields.io/pypi/v/pyrasite-ng?style=flat

This package is a fork of https://github.com/lmacken/pyrasite containing several important fixes to make pyrasite work on modern systems.

Requirements

  • gdb (version 7.3+ (or RHEL5+))

On OS X you will need to have a codesigned gdb - see https://sourceware.org/gdb/wiki/BuildingOnDarwin if you get errors while running with –verbose which mention codesigning.

On Linux machines, run echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope before running pyrasite.

Compatibility

Pyrasite works with Python 2.4 and newer. Injection works between versions as well, so you can run Pyrasite under Python 3 and inject into 2, and vice versa.

pyrasite-gui

The graphical interface can be found here: https://github.com/lmacken/pyrasite-gui

Bugs

Report bug of this fork on GitHub: https://github.com/user202729/pyrasite-ng/issues

Alternatively, as a workaround while waiting for the bug to be fixed, it’s possible to use gdb to inject code into Python directly: https://stackoverflow.com/a/70312000/5267751

Authors

Created by Luke Macken with the help of David Malcolm and many other contributors. Logo by Adam Saunders.

Licenses

Code

https://www.gnu.org/graphics/gplv3-127x51.png

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

pyrasite-ng-2.0.2.tar.gz (43.3 kB view details)

Uploaded Source

Built Distribution

pyrasite_ng-2.0.2-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

Details for the file pyrasite-ng-2.0.2.tar.gz.

File metadata

  • Download URL: pyrasite-ng-2.0.2.tar.gz
  • Upload date:
  • Size: 43.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for pyrasite-ng-2.0.2.tar.gz
Algorithm Hash digest
SHA256 e7b392117e6ede0865758e8c65982074a9451e45ba2c3617cbaabb99e978d472
MD5 d8b71a3af8543c8338cc6d930f8430be
BLAKE2b-256 ce4966acb1294a61bb6533a2481d63c3b584ab2eb3bad65fede5ac9604320b52

See more details on using hashes here.

File details

Details for the file pyrasite_ng-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyrasite_ng-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 37.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for pyrasite_ng-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 79352f9a4684b23cb490a034dba645e09a2a5ec73827910c289d1dbc0dd5ef52
MD5 893c5accd7883b945cb9557a779e4ef6
BLAKE2b-256 d6c56b17270eed369973bed462132fadd33f75714ec92f40b2b570b65f86bbc2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page