models

package
v0.0.0-...-bd99aa7 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2018 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 Document

type Document struct {
	OffensiveSecurityID int64                 `sql:"type:bigint REFERENCES offensive_securities(id)" json:",omitempty"`
	ExploitUniqueID     string                `csv:"id" json:"exploit_unique_id"`
	DocumentURL         string                `csv:"file" json:"document_url"`
	Description         string                `csv:"description" json:"description"`
	Date                OffensiveSecurityTime `csv:"date" json:"date"`
	Author              string                `csv:"author" json:"author"`
	// docs local remote webapps
	Type     string `csv:"type" json:"type"`
	Platform string `csv:"platform" json:"palatform"`
	Port     string `csv:"port" json:"port"`
}

Document : https://github.com/offensive-security/exploitdb/tree/master/exploits

type Exploit

type Exploit struct {
	ID                int64              `json:",omitempty"`
	ExploitType       ExploitType        `json:"exploit_type"`
	ExploitUniqueID   string             `json:"exploit_unique_id"`
	URL               string             `json:"url"`
	Description       string             `json:"description"`
	CveID             string             `json:"cve_id"`
	OffensiveSecurity *OffensiveSecurity `json:"offensive_security"`
}

Exploit :

type ExploitType

type ExploitType string

ExploitType :

var (
	// OffensiveSecurityType : https://www.exploit-db.com/
	OffensiveSecurityType ExploitType = "OffensiveSecurity"
)

type GithubJSON

type GithubJSON struct {
	TotalCount int `json:"total_count"`
	Items      []struct {
		Name string `json:"name"`
		Path string `json:"path"`
	} `json:"items"`
}

GithubJSON :

type MitreXML

type MitreXML struct {
	Vulnerability []struct {
		CVE        string `xml:"CVE"`
		References []struct {
			// External, Self
			AttrType    string `xml:"Type,attr"`
			URL         string `xml:"URL"`
			Description string `xml:"Description"`
		} `xml:"References>Reference"`
	} `xml:"Vulnerability"`
}

MitreXML : http://cve.mitre.org/cve/cvrf.html

type OffensiveSecurity

type OffensiveSecurity struct {
	ID              int64      `json:",omitempty"`
	ExploitID       int64      `sql:"type:bigint REFERENCES exploits(id)" json:",omitempty"`
	ExploitUniqueID string     `json:"exploit_unique_id"`
	Document        *Document  `json:"document"`
	ShellCode       *ShellCode `json:"shell_code"`
	Paper           *Paper     `json:"paper"`
}

OffensiveSecurity : https://www.exploit-db.com/

type OffensiveSecurityTime

type OffensiveSecurityTime struct {
	time.Time
}

OffensiveSecurityTime :

func (*OffensiveSecurityTime) String

func (date *OffensiveSecurityTime) String() string

String : You could also use the standard Stringer interface

func (*OffensiveSecurityTime) UnmarshalCSV

func (date *OffensiveSecurityTime) UnmarshalCSV(csv string) (err error)

UnmarshalCSV : Convert the CSV string as internal date

type Paper

type Paper struct {
	OffensiveSecurityID int64                 `sql:"type:bigint REFERENCES offensive_securities(id)" json:",omitempty"`
	ExploitUniqueID     string                `csv:"id" json:"exploit_unique_id"`
	PaperURL            string                `csv:"file" json:"paper_url"`
	Description         string                `csv:"description" json:"description"`
	Date                OffensiveSecurityTime `csv:"date" json:"date"`
	Author              string                `csv:"author" json:"author"`
	Platform            string                `csv:"platform" json:"platform"`
	Language            string                `csv:"language" json:"language"`
}

Paper : https://github.com/offensive-security/exploitdb-papers

type ShellCode

type ShellCode struct {
	OffensiveSecurityID int64                 `sql:"type:bigint REFERENCES offensive_securities(id)" json:",omitempty"`
	ExploitUniqueID     string                `csv:"id" json:"exploit_unique_id"`
	ShellCodeURL        string                `csv:"file" json:"shell_code_url"`
	Description         string                `csv:"description" json:"description"`
	Date                OffensiveSecurityTime `csv:"date" json:"date"`
	Author              string                `csv:"author" json:"author"`
	Platform            string                `csv:"platform" json:"platform"`
}

ShellCode : https://github.com/offensive-security/exploitdb/tree/master/shellcodes

Jump to

Keyboard shortcuts

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