networkscan

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 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"`
	Service     ServiceType       `json:"service" url:"service"`
	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 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 ServiceType

type ServiceType string
const (
	ServiceTypeHttp        ServiceType = "HTTP"
	ServiceTypeHttps       ServiceType = "HTTPS"
	ServiceTypeFtp         ServiceType = "FTP"
	ServiceTypeSftp        ServiceType = "SFTP"
	ServiceTypeSsh         ServiceType = "SSH"
	ServiceTypeTelnet      ServiceType = "TELNET"
	ServiceTypeSmtp        ServiceType = "SMTP"
	ServiceTypeSmtps       ServiceType = "SMTPS"
	ServiceTypePop3        ServiceType = "POP3"
	ServiceTypePop3S       ServiceType = "POP3S"
	ServiceTypeImap        ServiceType = "IMAP"
	ServiceTypeImaps       ServiceType = "IMAPS"
	ServiceTypeDns         ServiceType = "DNS"
	ServiceTypeSnmp        ServiceType = "SNMP"
	ServiceTypeKafka       ServiceType = "KAFKA"
	ServiceTypeMqtt3       ServiceType = "MQTT3"
	ServiceTypeMqtt5       ServiceType = "MQTT5"
	ServiceTypeRdp         ServiceType = "RDP"
	ServiceTypeRedis       ServiceType = "REDIS"
	ServiceTypeLdap        ServiceType = "LDAP"
	ServiceTypeLdaps       ServiceType = "LDAPS"
	ServiceTypeRsync       ServiceType = "RSYNC"
	ServiceTypeRpc         ServiceType = "RPC"
	ServiceTypePostgressql ServiceType = "POSTGRESSQL"
	ServiceTypeMysql       ServiceType = "MYSQL"
	ServiceTypeMssql       ServiceType = "MSSQL"
	ServiceTypeOracledb    ServiceType = "ORACLEDB"
	ServiceTypeVnc         ServiceType = "VNC"
	ServiceTypeModbus      ServiceType = "MODBUS"
	ServiceTypeSmb         ServiceType = "SMB"
	ServiceTypeIpsec       ServiceType = "IPSEC"
	ServiceTypeStun        ServiceType = "STUN"
	ServiceTypeRtsp        ServiceType = "RTSP"
	ServiceTypeDhcp        ServiceType = "DHCP"
	ServiceTypeNtp         ServiceType = "NTP"
	ServiceTypeOpenvpn     ServiceType = "OPENVPN"
	ServiceTypeUnknown     ServiceType = "UNKNOWN"
)

func NewServiceTypeFromString

func NewServiceTypeFromString(s string) (ServiceType, error)

func (ServiceType) Ptr

func (s ServiceType) Ptr() *ServiceType

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