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

7 years ago
  1. package main
  2. import (
  3. "fmt"
  4. "os/exec"
  5. )
  6. func nmap(ip string) string {
  7. out, err := exec.Command("nmap", "-T4", "F", ip).Output()
  8. if err != nil {
  9. fmt.Println(err)
  10. }
  11. fmt.Println(string(out))
  12. return string(out)
  13. }