nmap

package
v0.0.0-...-308c33c Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nmap

type Nmap struct {
	SystemPath  string
	Args        []string
	Ports       string
	Exclude     string
	HostTimeOut string
	IP          string
	Result      []byte
}

func New

func New() *Nmap

func (*Nmap) AppendSingleParma

func (n *Nmap) AppendSingleParma(parma string)

func (*Nmap) Parse

func (n *Nmap) Parse() ([]NmapResult, error)

func (*Nmap) Run

func (n *Nmap) Run() error

func (*Nmap) SetArgs

func (n *Nmap) SetArgs(arg ...string)

func (*Nmap) SetHostTimeOut

func (n *Nmap) SetHostTimeOut(hostTimeOut string)

func (*Nmap) SetIpPorts

func (n *Nmap) SetIpPorts(ip string, ports string)

func (*Nmap) SetSystemPath

func (n *Nmap) SetSystemPath(systemPath string)

type NmapResult

type NmapResult struct {
	Ip        string
	StartTime string
	EndTime   string
	PortId    int
	Protocol  string
	Service   string
	Product   string
	Version   string
}

type Os

type Os struct {
	Name     string
	Accuracy int
}

type Ports

type Ports struct {
	Protocol string
	PortId   int
	State    string
	Service  string
	Product  string
	Reason   string
	Version  string
}

Jump to

Keyboard shortcuts

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