Files
iris-context/commands/sys/nmap.go
VERSE ebde9ba68f refactor(commands): separate commands and its core into two folders (#32)
- I think it would be better if one for commands only, one for the spec
handling core logic so people won't be confused by the core logic inside
the commands folder (cleaner I guess)
- Regen docs
2026-07-05 11:27:30 +07:00

36 lines
1.4 KiB
Go

package sys
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "nmap",
Description: "Network exploration tool and security / port scanner",
Options: []spec.Option{
{Name: "-iR", Description: "Choose random targets"},
{Name: "--exclude", Description: "Excluide hosts/networks"},
{Name: "--excludefile", Description: "Exclude list from file"},
{Name: "-sT", Description: "TCP scan"},
{Name: "-sA", Description: "TCP ACK scan"},
{Name: "-sW", Description: "TCP Window scan"},
{Name: "-sM", Description: "TCP Maimon scan"},
{Name: "-sU", Description: "UDP scan"},
{Name: "-sP", Description: "Ping scan"},
{Name: "-sN", Description: "TCP Null scan"},
{Name: "-sF", Description: "FIN scan"},
{Name: "-sX", Description: "Xmas scan"},
{Name: "-sO", Description: "IP protocol scan"},
{Name: "-p", Description: "Scan specified ports"},
{Name: "-v", Description: "Increase verbosity level"},
{Name: "--osscan-limit", Description: "Limit OS detection to promising targets"},
{Name: "-6", Description: "Enable IPV6 scanning"},
{Name: "-V", Description: "Print version number"},
{Name: "-privileged", Description: "Assume that user is fully privileges"},
{Name: "-unprivileged", Description: "Assume that user lacks raw socket privileges"},
{Name: "--help", Description: "Show help for nmap"},
},
})
}