port

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 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) GetHost added in v0.0.25

func (h *HostScanDetails) GetHost() string

func (*HostScanDetails) GetIp added in v0.0.25

func (h *HostScanDetails) GetIp() string

func (*HostScanDetails) GetPorts added in v0.0.25

func (h *HostScanDetails) GetPorts() []*PortScanDetails

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) GetHost added in v0.0.25

func (h *HostValidateDetails) GetHost() string

func (*HostValidateDetails) GetIp added in v0.0.25

func (h *HostValidateDetails) GetIp() string

func (*HostValidateDetails) GetPortDetails added in v0.0.25

func (h *HostValidateDetails) GetPortDetails() []*PortValidateDetails

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) GetError added in v0.0.25

func (h *HttpRequest) GetError() *string

func (*HttpRequest) GetExtraProperties

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

func (*HttpRequest) GetMethod added in v0.0.25

func (h *HttpRequest) GetMethod() string

func (*HttpRequest) GetResponseBody added in v0.0.25

func (h *HttpRequest) GetResponseBody() *string

func (*HttpRequest) GetResponseCode added in v0.0.25

func (h *HttpRequest) GetResponseCode() *int

func (*HttpRequest) GetUrl added in v0.0.25

func (h *HttpRequest) GetUrl() string

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) GetPort added in v0.0.25

func (p *PortScanDetails) GetPort() int

func (*PortScanDetails) GetProtocol added in v0.0.25

func (p *PortScanDetails) GetProtocol() string

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) GetErrors added in v0.0.25

func (p *PortScanReport) GetErrors() []string

func (*PortScanReport) GetExtraProperties

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

func (*PortScanReport) GetHosts added in v0.0.25

func (p *PortScanReport) GetHosts() []*HostScanDetails

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) GetPorts added in v0.0.25

func (p *PortScanValidateConfig) GetPorts() *string

func (*PortScanValidateConfig) GetScantype added in v0.0.25

func (p *PortScanValidateConfig) GetScantype() ScanType

func (*PortScanValidateConfig) GetSkipTlsVerify added in v0.0.25

func (p *PortScanValidateConfig) GetSkipTlsVerify() bool

func (*PortScanValidateConfig) GetTarget added in v0.0.25

func (p *PortScanValidateConfig) GetTarget() string

func (*PortScanValidateConfig) GetThreads added in v0.0.25

func (p *PortScanValidateConfig) GetThreads() int

func (*PortScanValidateConfig) GetTimeout added in v0.0.25

func (p *PortScanValidateConfig) GetTimeout() int

func (*PortScanValidateConfig) GetTopports added in v0.0.25

func (p *PortScanValidateConfig) GetTopports() *string

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) GetConfig added in v0.0.25

func (*PortScanValidateReport) GetErrors added in v0.0.25

func (p *PortScanValidateReport) GetErrors() []string

func (*PortScanValidateReport) GetExtraProperties

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

func (*PortScanValidateReport) GetHosts added in v0.0.25

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) GetHostRequest added in v0.0.25

func (p *PortValidateDetails) GetHostRequest() *HttpRequest

func (*PortValidateDetails) GetIpRequest added in v0.0.25

func (p *PortValidateDetails) GetIpRequest() *HttpRequest

func (*PortValidateDetails) GetPort added in v0.0.25

func (p *PortValidateDetails) GetPort() int

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