changed append to write

This commit is contained in:
Pin
2022-04-03 23:25:18 -04:00
parent de9feed536
commit 963db705d9

View File

@@ -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()