port

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostScanDetails

type HostScanDetails struct {
	Host  string             `json:"host" url:"host"`
	Ip    string             `json:"ip" url:"ip"`
	Ports []*PortScanDetails `json:"ports,omitempty" url:"ports,omitempty"`
	// contains filtered or unexported fields
}

func (*HostScanDetails) GetExtraProperties

func (h *HostScanDetails) GetExtraProperties() map[string]interface{}

func (*HostScanDetails) String

func (h *HostScanDetails) String() string

func (*HostScanDetails) UnmarshalJSON

func (h *HostScanDetails) UnmarshalJSON(data []byte) error

type HostValidateDetails

type HostValidateDetails struct {
	Host        string                 `json:"host" url:"host"`
	Ip          string                 `json:"ip" url:"ip"`
	PortDetails []*PortValidateDetails `json:"portDetails,omitempty" url:"portDetails,omitempty"`
	// contains filtered or unexported fields
}

func (*HostValidateDetails) GetExtraProperties

func (h *HostValidateDetails) GetExtraProperties() map[string]interface{}

func (*HostValidateDetails) String

func (h *HostValidateDetails) String() string

func (*HostValidateDetails) UnmarshalJSON

func (h *HostValidateDetails) UnmarshalJSON(data []byte) error

type HttpRequest

type HttpRequest struct {
	Url          string  `json:"url" url:"url"`
	Method       string  `json:"method" url:"method"`
	ResponseCode *int    `json:"responseCode,omitempty" url:"responseCode,omitempty"`
	ResponseBody *string `json:"responseBody,omitempty" url:"responseBody,omitempty"`
	Error        *string `json:"error,omitempty" url:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*HttpRequest) GetExtraProperties

func (h *HttpRequest) GetExtraProperties() map[string]interface{}

func (*HttpRequest) String

func (h *HttpRequest) String() string

func (*HttpRequest) UnmarshalJSON

func (h *HttpRequest) UnmarshalJSON(data []byte) error

type PortScanDetails

type PortScanDetails struct {
	Port     int    `json:"port" url:"port"`
	Protocol string `json:"protocol" url:"protocol"`
	// contains filtered or unexported fields
}

func (*PortScanDetails) GetExtraProperties

func (p *PortScanDetails) GetExtraProperties() map[string]interface{}

func (*PortScanDetails) String

func (p *PortScanDetails) String() string

func (*PortScanDetails) UnmarshalJSON

func (p *PortScanDetails) UnmarshalJSON(data []byte) error

type PortScanReport

type PortScanReport struct {
	Hosts  []*HostScanDetails `json:"hosts,omitempty" url:"hosts,omitempty"`
	Errors []string           `json:"errors,omitempty" url:"errors,omitempty"`
	// contains filtered or unexported fields
}

func (*PortScanReport) GetExtraProperties

func (p *PortScanReport) GetExtraProperties() map[string]interface{}

func (*PortScanReport) String

func (p *PortScanReport) String() string

func (*PortScanReport) UnmarshalJSON

func (p *PortScanReport) UnmarshalJSON(data []byte) error

type PortScanValidateConfig added in v0.0.17

type PortScanValidateConfig struct {
	Target        string   `json:"target" url:"target"`
	Ports         *string  `json:"ports,omitempty" url:"ports,omitempty"`
	Topports      *string  `json:"topports,omitempty" url:"topports,omitempty"`
	Threads       int      `json:"threads" url:"threads"`
	Scantype      ScanType `json:"scantype" url:"scantype"`
	Timeout       int      `json:"timeout" url:"timeout"`
	SkipTlsVerify bool     `json:"skipTLSVerify" url:"skipTLSVerify"`
	// contains filtered or unexported fields
}

func (*PortScanValidateConfig) GetExtraProperties added in v0.0.17

func (p *PortScanValidateConfig) GetExtraProperties() map[string]interface{}

func (*PortScanValidateConfig) String added in v0.0.17

func (p *PortScanValidateConfig) String() string

func (*PortScanValidateConfig) UnmarshalJSON added in v0.0.17

func (p *PortScanValidateConfig) UnmarshalJSON(data []byte) error

type PortScanValidateReport

type PortScanValidateReport struct {
	Hosts  []*HostValidateDetails  `json:"hosts,omitempty" url:"hosts,omitempty"`
	Config *PortScanValidateConfig `json:"config,omitempty" url:"config,omitempty"`
	Errors []string                `json:"errors,omitempty" url:"errors,omitempty"`
	// contains filtered or unexported fields
}

func (*PortScanValidateReport) GetExtraProperties

func (p *PortScanValidateReport) GetExtraProperties() map[string]interface{}

func (*PortScanValidateReport) String

func (p *PortScanValidateReport) String() string

func (*PortScanValidateReport) UnmarshalJSON

func (p *PortScanValidateReport) UnmarshalJSON(data []byte) error

type PortValidateDetails

type PortValidateDetails struct {
	Port        int          `json:"port" url:"port"`
	IpRequest   *HttpRequest `json:"IpRequest,omitempty" url:"IpRequest,omitempty"`
	HostRequest *HttpRequest `json:"HostRequest,omitempty" url:"HostRequest,omitempty"`
	// contains filtered or unexported fields
}

func (*PortValidateDetails) GetExtraProperties

func (p *PortValidateDetails) GetExtraProperties() map[string]interface{}

func (*PortValidateDetails) String

func (p *PortValidateDetails) String() string

func (*PortValidateDetails) UnmarshalJSON

func (p *PortValidateDetails) UnmarshalJSON(data []byte) error

type ScanType added in v0.0.17

type ScanType string
const (
	ScanTypeSyn     ScanType = "SYN"
	ScanTypeConnect ScanType = "CONNECT"
)

func NewScanTypeFromString added in v0.0.17

func NewScanTypeFromString(s string) (ScanType, error)

func (ScanType) Ptr added in v0.0.17

func (s ScanType) Ptr() *ScanType

Jump to

Keyboard shortcuts

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