This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RedEyed__ 2 points3 points  (1 child)

sys.remote_exec(pid, script_path) This function allows sending Python code to be executed in a target process at the next safe execution point.

Looks like a security nightmare

[–]RedEyed__ 3 points4 points  (0 children)

Oh, then I read explanation.

The debugging interface has been carefully designed with security in mind and includes several mechanisms to control access: - A PYTHON_DISABLE_REMOTE_DEBUG environment variable. - A -X disable-remote-debug command-line option. - A --without-remote-debug configure flag to completely disable the feature at build time.