requests

package
v0.0.0-...-a19100d Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Token = ""
View Source
var Urls = []string{

	"https://platform.synack.com/api/targets?filter%5Bprimary%5D=unregistered&filter%5Bsecondary%5D=all&filter%5Bcategory%5D=all&filter%5Bindustry%5D=all&sorting%5Bfield%5D=dateUpdated&sorting%5Bdirection%5D=desc",

	"https://platform.synack.com/api/tasks/v2/tasks?perPage=20&viewed=true&page=1&status=PUBLISHED&sort=AMOUNT&sortDir=desc",

	"https://platform.synack.com/api/targets?filter%5Bprimary%5D=all&filter%5Bsecondary%5D%5B%5D=a&filter%5Bsecondary%5D%5B%5D=l&filter%5Bsecondary%5D%5B%5D=l&filter%5Bsecondary%5D%5B%5D=quality_period&filter%5Bcategory%5D=all&filter%5Bindustry%5D=all&sorting%5Bfield%5D=dateUpdated&sorting%5Bdirection%5D=desc",

	"https://platform.synack.com/api/tasks/v2/tasks?perPage=20&viewed=true&page=1&status=CLAIMED",

	"https://platform.synack.com/api/tasks/v2/tasks/",

	"https://login.synack.com/api/authenticate",

	"https://platform.synack.com/api/tasks/v2/researcher/claimed_amount",

	"https://platform.synack.com/api/launchpoint",
}

Functions

func ConnectToTarget

func ConnectToTarget(listing string) (int, io.ReadCloser)

func DoGetRequest

func DoGetRequest(target string) (int, io.ReadCloser)

func DoGrantTokenRequest

func DoGrantTokenRequest(target string) (int, io.ReadCloser)

func DoLoginGetRequest

func DoLoginGetRequest(target string) (int, io.ReadCloser, http.Header)

func DoLoginPostRequest

func DoLoginPostRequest(target string, jsonStr []byte, token string, cookie string) (int, io.ReadCloser)

func DoPostRequest

func DoPostRequest(target string, jsonStr []byte) (int, io.ReadCloser)

func SetGrantTokenHeaders

func SetGrantTokenHeaders(req *http.Request)

func SetHeaders

func SetHeaders(req *http.Request)

func SetLoginHeaders

func SetLoginHeaders(req *http.Request, token string, cookie string)

func VerifyOptimusDownload

func VerifyOptimusDownload() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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