networkscan

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 5 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

func Bool

func Bool(b bool) *bool

Bool returns a pointer to the given bool value.

func Byte

func Byte(b byte) *byte

Byte returns a pointer to the given byte value.

func Complex64

func Complex64(c complex64) *complex64

Complex64 returns a pointer to the given complex64 value.

func Complex128

func Complex128(c complex128) *complex128

Complex128 returns a pointer to the given complex128 value.

func Float32

func Float32(f float32) *float32

Float32 returns a pointer to the given float32 value.

func Float64

func Float64(f float64) *float64

Float64 returns a pointer to the given float64 value.

func Int

func Int(i int) *int

Int returns a pointer to the given int value.

func Int8

func Int8(i int8) *int8

Int8 returns a pointer to the given int8 value.

func Int16

func Int16(i int16) *int16

Int16 returns a pointer to the given int16 value.

func Int32

func Int32(i int32) *int32

Int32 returns a pointer to the given int32 value.

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to the given int64 value.

func MustParseDate

func MustParseDate(date string) time.Time

MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.

func MustParseDateTime

func MustParseDateTime(datetime string) time.Time

MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.

func Rune

func Rune(r rune) *rune

Rune returns a pointer to the given rune value.

func String

func String(s string) *string

String returns a pointer to the given string value.

func Time

func Time(t time.Time) *time.Time

Time returns a pointer to the given time.Time value.

func UUID

func UUID(u uuid.UUID) *uuid.UUID

UUID returns a pointer to the given uuid.UUID value.

func Uint

func Uint(u uint) *uint

Uint returns a pointer to the given uint value.

func Uint8

func Uint8(u uint8) *uint8

Uint8 returns a pointer to the given uint8 value.

func Uint16

func Uint16(u uint16) *uint16

Uint16 returns a pointer to the given uint16 value.

func Uint32

func Uint32(u uint32) *uint32

Uint32 returns a pointer to the given uint32 value.

func Uint64

func Uint64(u uint64) *uint64

Uint64 returns a pointer to the given uint64 value.

func Uintptr

func Uintptr(u uintptr) *uintptr

Uintptr returns a pointer to the given uintptr value.

Types

type BannerGrab

type BannerGrab struct {
	Host        string            `json:"host" url:"host"`
	Ip          string            `json:"ip" url:"ip"`
	Port        int               `json:"port" url:"port"`
	Tls         bool              `json:"tls" url:"tls"`
	Version     string            `json:"version" url:"version"`
	Transport   TransportType     `json:"transport" url:"transport"`
	Protocol    ProtocolType      `json:"protocol" url:"protocol"`
	StatusCode  *string           `json:"statusCode,omitempty" url:"statusCode,omitempty"`
	Connection  *string           `json:"connection,omitempty" url:"connection,omitempty"`
	ContentType *string           `json:"contentType,omitempty" url:"contentType,omitempty"`
	SameSite    *SameSiteType     `json:"sameSite,omitempty" url:"sameSite,omitempty"`
	Metadata    map[string]string `json:"metadata,omitempty" url:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*BannerGrab) GetExtraProperties

func (b *BannerGrab) GetExtraProperties() map[string]interface{}

func (*BannerGrab) String

func (b *BannerGrab) String() string

func (*BannerGrab) UnmarshalJSON

func (b *BannerGrab) UnmarshalJSON(data []byte) error

type BannerGrabReport

type BannerGrabReport struct {
	Target      string        `json:"target" url:"target"`
	BannerGrabs []*BannerGrab `json:"bannerGrabs,omitempty" url:"bannerGrabs,omitempty"`
	Errors      []string      `json:"errors,omitempty" url:"errors,omitempty"`
	// contains filtered or unexported fields
}

func (*BannerGrabReport) GetExtraProperties

func (b *BannerGrabReport) GetExtraProperties() map[string]interface{}

func (*BannerGrabReport) String

func (b *BannerGrabReport) String() string

func (*BannerGrabReport) UnmarshalJSON

func (b *BannerGrabReport) UnmarshalJSON(data []byte) error

type CookieInfo

type CookieInfo struct {
	Data       string    `json:"data" url:"data"`
	Expiration time.Time `json:"expiration" url:"expiration"`
	Samesite   bool      `json:"samesite" url:"samesite"`
	// contains filtered or unexported fields
}

func (*CookieInfo) GetExtraProperties

func (c *CookieInfo) GetExtraProperties() map[string]interface{}

func (*CookieInfo) MarshalJSON

func (c *CookieInfo) MarshalJSON() ([]byte, error)

func (*CookieInfo) String

func (c *CookieInfo) String() string

func (*CookieInfo) UnmarshalJSON

func (c *CookieInfo) UnmarshalJSON(data []byte) error

type ProtocolType added in v0.0.10

type ProtocolType string
const (
	ProtocolTypeDns        ProtocolType = "DNS"
	ProtocolTypeDhcp       ProtocolType = "DHCP"
	ProtocolTypeEcho       ProtocolType = "ECHO"
	ProtocolTypeFtp        ProtocolType = "FTP"
	ProtocolTypeHttp       ProtocolType = "HTTP"
	ProtocolTypeHttps      ProtocolType = "HTTPS"
	ProtocolTypeHttp2      ProtocolType = "HTTP2"
	ProtocolTypeImap       ProtocolType = "IMAP"
	ProtocolTypeImaps      ProtocolType = "IMAPS"
	ProtocolTypeIpmi       ProtocolType = "IPMI"
	ProtocolTypeIpsec      ProtocolType = "IPSEC"
	ProtocolTypeJdwp       ProtocolType = "JDWP"
	ProtocolTypeKafka      ProtocolType = "KAFKA"
	ProtocolTypeLdap       ProtocolType = "LDAP"
	ProtocolTypeLdaps      ProtocolType = "LDAPS"
	ProtocolTypeModbus     ProtocolType = "MODBUS"
	ProtocolTypeMqtt       ProtocolType = "MQTT"
	ProtocolTypeMssql      ProtocolType = "MSSQL"
	ProtocolTypeMysql      ProtocolType = "MYSQL"
	ProtocolTypeNetbios    ProtocolType = "NETBIOS"
	ProtocolTypeNtp        ProtocolType = "NTP"
	ProtocolTypeOracle     ProtocolType = "ORACLE"
	ProtocolTypeOpenvpn    ProtocolType = "OPENVPN"
	ProtocolTypePop3       ProtocolType = "POP3"
	ProtocolTypePop3S      ProtocolType = "POP3S"
	ProtocolTypePostgresql ProtocolType = "POSTGRESQL"
	ProtocolTypeRdp        ProtocolType = "RDP"
	ProtocolTypeRpc        ProtocolType = "RPC"
	ProtocolTypeRedis      ProtocolType = "REDIS"
	ProtocolTypeRsync      ProtocolType = "RSYNC"
	ProtocolTypeRtsp       ProtocolType = "RTSP"
	ProtocolTypeSmb        ProtocolType = "SMB"
	ProtocolTypeSmtp       ProtocolType = "SMTP"
	ProtocolTypeSmtps      ProtocolType = "SMTPS"
	ProtocolTypeSnmp       ProtocolType = "SNMP"
	ProtocolTypeSsh        ProtocolType = "SSH"
	ProtocolTypeStun       ProtocolType = "STUN"
	ProtocolTypeTelnet     ProtocolType = "TELNET"
	ProtocolTypeVnc        ProtocolType = "VNC"
	ProtocolTypeUnknown    ProtocolType = "UNKNOWN"
)

func NewProtocolTypeFromString added in v0.0.10

func NewProtocolTypeFromString(s string) (ProtocolType, error)

func (ProtocolType) Ptr added in v0.0.10

func (p ProtocolType) Ptr() *ProtocolType

type SameSiteType

type SameSiteType string
const (
	SameSiteTypeNone    SameSiteType = "NONE"
	SameSiteTypeLax     SameSiteType = "LAX"
	SameSiteTypeStrict  SameSiteType = "STRICT"
	SameSiteTypeUnknown SameSiteType = "UNKNOWN"
)

func NewSameSiteTypeFromString

func NewSameSiteTypeFromString(s string) (SameSiteType, error)

func (SameSiteType) Ptr

func (s SameSiteType) Ptr() *SameSiteType

type TransportType

type TransportType string
const (
	TransportTypeTcp     TransportType = "TCP"
	TransportTypeUdp     TransportType = "UDP"
	TransportTypeUnknown TransportType = "UNKNOWN"
)

func NewTransportTypeFromString

func NewTransportTypeFromString(s string) (TransportType, error)

func (TransportType) Ptr

func (t TransportType) Ptr() *TransportType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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