From 6568d286aa49e205127c139fbeaf49d2c7e02702 Mon Sep 17 00:00:00 2001 From: Vomitblood Date: Fri, 24 Jan 2025 11:26:04 +0800 Subject: [PATCH] output from nc not displayed --- internal/listener/listener.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/listener/listener.go b/internal/listener/listener.go index 1758163..cc9b28a 100644 --- a/internal/listener/listener.go +++ b/internal/listener/listener.go @@ -8,14 +8,14 @@ import ( func startNetcatListener(lport string) { // Create the command to run netcat as a listener - cmd := exec.Command("nc", "-lvp", lport) + cli := exec.Command("nc", "-lvp", lport) // Set up the output to be printed to the console - cmd.Stdout = os.Stdout - cmd.Stderr = os.Stderr + cli.Stdout = os.Stdout + cli.Stderr = os.Stderr // Run the command - err := cmd.Run() + err := cli.Run() if err != nil { fmt.Println("Error starting netcat listener:", err) os.Exit(1)