internal

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendTo added in v1.0.3

func AppendTo(filename string, data string) (string, error)

AppendTo append string to a file

func AsyncHTTPHead

func AsyncHTTPHead(urls []string, threads int, timeout int, details RequestDetails, output string)

func CheckSupportedCloud

func CheckSupportedCloud(org string, c *Config) (string, error)

func CloudDetectHTML added in v1.0.7

func CloudDetectHTML(domain string, c *Config, providerPath string) (string, error)

func CloudDetectIP added in v1.0.7

func CloudDetectIP(domain string, key string) (string, error)

func GenerateMutatedUrls

func GenerateMutatedUrls(wordListPath string, mode string, provider string, providerPath string, target string, environments []string) ([]string, error)

func HandleHTTPRequests

func HandleHTTPRequests(reqs, results chan string, quit chan int, bar *pb.ProgressBar, details *RequestDetails)

func ReadTextFile

func ReadTextFile(path string) ([]string, error)

func SelectRandomItem

func SelectRandomItem(agents []string) string

Types

type CloudConfig

type CloudConfig struct {
	Regions     []string `yaml:"regions"`
	APPUrls     []string `yaml:"app_urls"`
	StorageUrls []string `yaml:"storage_urls"`
	//RegionUrls  []string `yaml:"region_urls"`
	AppRegionUrls     []string `yaml:"app_region_urls"`
	StorageRegionUrls []string `yaml:"storage_region_urls"`
}

func InitCloudConfig

func InitCloudConfig(cloud string, modulePath string) (*CloudConfig, error)

type Config

type Config struct {
	Author       string   `yaml:"author"` //
	IPInfo       string   `yaml:"ipinfo"` // API KEY
	ProxyType    string   `yaml:"proxytype"`
	Providers    []string `yaml:"providers"`
	Environments []string `yaml:"Environments"`
}

func InitConfig

func InitConfig(path string) *Config

type RequestDetails

type RequestDetails struct {
	ProxyList   []string
	ProxyType   string
	RandomAgent []string
}

Jump to

Keyboard shortcuts

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