scan

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Total    int
	Latest   int
	New      int
	LastSeen int64
	Results  []IPInfo
}

Data is used for display in the UI. It contains a summary of the number of items stored in the database as well as each result.

type IPInfo

type IPInfo struct {
	IP            string
	Port          int
	Proto         string
	FirstSeen     Time
	LastSeen      Time
	New           bool
	Gone          bool
	HasTraceroute bool
}

IPInfo is data retrieved from the database for display.

type Job

type Job struct {
	ID          int    `json:"id"`
	CIDR        string `json:"cidr"`
	Ports       string `json:"ports"`
	Proto       string `json:"proto"`
	RequestedBy string `json:"-"`
	Submitted   Time   `json:"-"`
	Received    Time   `json:"-"`
	Count       int64  `json:"-"`
}

Job represents a job to be sent to and received from scanning nodes,

type Port

type Port struct {
	Port    int    `json:"port"`
	Proto   string `json:"proto"`
	Status  string `json:"status"`
	Service struct {
		Name   string `json:"name"`
		Banner string `json:"banner"`
	} `json:"service"`
}

Port is a masscan port description.

type Result

type Result struct {
	IP    string `json:"ip"`
	Ports []Port `json:"ports"`
}

Result data posted from masscan.

type Submission

type Submission struct {
	Host string
	Job  int64
	Time Time
}

Submission is used for display in the UI to show when and which host last submitted results.

type Time

type Time struct {
	time.Time
}

Time wraps time.Time to implement a custom String method.

func (Time) String

func (t Time) String() string

Jump to

Keyboard shortcuts

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