arnaucube
arnaucube/goNmapTelegramBotPublic Self-hosted repository
goNmapTelegramBot/nmap.go
nmap.goRaw
 1package main
 2
 3import (
 4	"fmt"
 5	"os/exec"
 6)
 7
 8func nmap(ip string) string {
 9	out, err := exec.Command("nmap", "-T4", "F", ip).Output()
10	if err != nil {
11		fmt.Println(err)
12	}
13
14	fmt.Println(string(out))
15	return string(out)
16}