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"`
GitHubRepository *GitHubRepository `json:"github_repository"`
}
Exploit :
type ExploitType ¶
type ExploitType string
ExploitType :
var ( // OffensiveSecurityType : https://www.exploit-db.com/ OffensiveSecurityType ExploitType = "OffensiveSecurity" // GitHubRepositoryType : GitHubRepositoryType ExploitType = "GitHub" // AwesomePocType : AwesomePocType ExploitType = "AwesomePoc" )
type GitHubJSON ¶
type GitHubJSON struct {
TotalCount int `json:"total_count"`
Items []struct {
Name string `json:"name"`
Path string `json:"path"`
} `json:"items"`
}
GitHubJSON :
type GitHubRepoJSON ¶
type GitHubRepoJSON struct {
TotalCount int `json:"total_count"`
Items []struct {
Name string `json:"name"`
FullName string `json:"full_name"`
Description string `json:"description"`
URL string `json:"html_url"`
Star int `json:"stargazers_count"`
Fork int `json:"forks_count"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
} `json:"items"`
}
GitHubRepoJSON :
type GitHubRepository ¶
type GitHubRepository struct {
ID int64 `json:",omitempty"`
ExploitID int64 `sql:"type:bigint REFERENCES exploits(id)" json:",omitempty"`
ExploitUniqueID string `json:"exploit_unique_id"`
Star int `json:"star"`
Fork int `json:"fork"`
CreatedAt time.Time `json:"created_at"`
UpdatedA time.Time `json:"updated_at"`
}
GitHubRepository :
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"`
}
OffensiveSecurity : https://www.exploit-db.com/
type OffensiveSecurityTime ¶
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 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
Click to show internal directories.
Click to hide internal directories.