pyrasite – Inject Code Into Running Python Processes

usage: pyrasite [h] [gdbprefix GDB_PREFIX] [verbose] [output OUTPUT_TYPE] pid [filepath|payloadname]

       pyrasite listpayloads

pyrasite inject code into a running python process

positional arguments:

  pid                   The ID of the process to inject code into

  filepath|payloadname  The second argument must be a path to a

                        file that will be sent as a payload to the

                        target process or it must be the name of

                        an existing payload (see listpayloads).

optional arguments:

  h, help            show this help message and exit

  gdbprefix GDB_PREFIX

                        GDB prefix (if specified during installation)

  verbose             Verbose mode

  output OUTPUT_TYPE  This option controls where the output from

                        the executed payload will be printed. If

                        the value is ‘procstreams’ (the default) then

                        the output is sent to the stdout/stderr of the

                        process. If the value is ‘localterm’ then the

                        output is piped back and printed on the local

                        terminal where pyrasite is being run.

  listpayloads       List payloads that are delivered by pyrasite

For updates, visit https://github.com/lmacken/pyrasite

Leave a Reply

Your email address will not be published.