nmap

package
v0.0.0-...-656a664 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	Status Status `xml:"status"`
	Ports  []Port `xml:"ports>port"`
}

type Nmap

type Nmap struct {
}

func NewNmap

func NewNmap() *Nmap

func (*Nmap) Description

func (m *Nmap) Description() string

func (*Nmap) Name

func (m *Nmap) Name() string

func (*Nmap) ResourceURLs

func (m *Nmap) ResourceURLs() []common.ModuleResource

func (*Nmap) Run

func (m *Nmap) Run(ctx *common.ModuleContext) error

func (*Nmap) Slug

func (m *Nmap) Slug() string

type NmapExecution

type NmapExecution struct {
	Hosts []Host `xml:"host"`
}

func RunNmapScan

func RunNmapScan(nmapPath string, nmapArgs []string) (*NmapExecution, error)

type Port

type Port struct {
	PortId  int     `xml:"portid,attr"`
	State   State   `xml:"state"`
	Service Service `xml:"service"`
}

type Service

type Service struct {
	Name string `xml:"name,attr"`
}

type State

type State struct {
	State string `xml:"state,attr"`
}

type Status

type Status struct {
	State string `xml:"state,attr"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL