hacktivity

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 7 Imported by: 0

README

hacktivity Go Report

Go library for fetching HackerOne Hacktivity reports.

Install

go get github.com/daehee/hacktivity

Usage

The hacktivity package provides a Client for fetching Hacktivity reports:

// Init hacktivity client
client := NewClient()

// Get the 100 most recent Hacktivity reports
urls, err := client.GetLatestReports(100)

// Fetch a Hacktivity report by URL
hacktivity, err := client.GetHacktivity("https://hackerone.com/reports/1019891")

Returns API response as Hacktivity struct:

type Hacktivity struct {
    URL          string
    ReportID     int
    Title        string
    Description  string
    Severity     string
    Researcher   string
    Vendor       string
    VendorHandle string
    CVEs         []string
    SubmittedAt  string
    DisclosedAt  string
}

License

MIT License

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) GetHacktivity

func (c *Client) GetHacktivity(u string) (Hacktivity, error)

GetHacktivity scrapes json endpoint for given HackerOne report URL and returns response in Hacktivity struct

func (*Client) GetLatestReports

func (c *Client) GetLatestReports(reqCount int) ([]string, error)

type Hacktivity

type Hacktivity struct {
	URL          string
	ReportID     int
	Title        string
	Description  string
	Severity     string
	Researcher   string
	Vendor       string
	VendorHandle string
	CVEs         []string
	SubmittedAt  string
	DisclosedAt  string
}

Jump to

Keyboard shortcuts

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