Module pwntools::connection
source · [−]Expand description
Give you an easy interaction with an executable launched as a child process.
Example
use pwntools::connection::Process;
use pwntools::connection::Connection;
let mut conn = Process::new(&"./some_binary")?;
conn.send(&b"x".repeat(32)).await?;
conn.send(&0x1337beef_u64.to_le_bytes()).await?;
conn.interactive().await?;