[Python] How to write data to a specific fd using Python Pwntools

Discussão em 'Python' iniciado por Stack, Abril 17, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to use pwntools's process and to write a string to stdin and stderr

    I want to learn what is the correct way to achieve this behavior instead of trying to find weirds ways to do this myself (running a differnet process that writes to the pipe or something like that) Thanks!

    In the documentation there is a parameter to process of stdin and stdout but I do not understand how to use it correctly, I tried using open("<named pipe">) since I saw in the documentation that a file object is a valid argument, but then rememeberd that it will not work since writing is blocked until someone starts reading.

    Continue reading...

Compartilhe esta Página