You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
221 B

package main
import (
"fmt"
"os/exec"
)
func nmap(ip string) string {
out, err := exec.Command("nmap", "-T4", "F", ip).Output()
if err != nil {
fmt.Println(err)
}
fmt.Println(string(out))
return string(out)
}