models

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const LatestSchemaVersion = 2

LatestSchemaVersion manages the Schema version used in the latest go-msfdb.

Variables

This section is empty.

Functions

This section is empty.

Types

type Edb

type Edb struct {
	ID              int64  `json:"-"`
	MetasploitID    int64  `json:"-" gorm:"index:idx_edbs_metasploit_id"`
	ExploitUniqueID string `gorm:"index:idx_edbs_exploit_unique_id;type:varchar(255)"`
}

Edb has Exploit-ID

type FetchMeta added in v0.1.6

type FetchMeta struct {
	gorm.Model      `json:"-"`
	GoMsfdbRevision string
	SchemaVersion   uint
}

FetchMeta has meta information about fetched security tracker

func (FetchMeta) OutDated added in v0.1.6

func (f FetchMeta) OutDated() bool

OutDated checks whether last fetched feed is out dated

type Metasploit

type Metasploit struct {
	ID          int64  `json:"-"`
	Name        string `gorm:"type:varchar(255)"`
	Title       string `gorm:"type:varchar(255)"`
	Description string `gorm:"type:text"`
	CveID       string `gorm:"index:idx_metasploit_cve_id;type:varchar(255)"`
	Edbs        []Edb
	References  []Reference
}

Metasploit : https://www.rapid7.com/db/modules

type Reference

type Reference struct {
	ID           int64  `json:"-"`
	MetasploitID int64  `json:"-" gorm:"index:idx_references_metasploit_id"`
	Link         string `gorm:"type:text"`
}

Reference is Child model of Metasploit It holds reference information about the CVE

Jump to

Keyboard shortcuts

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