Documentation
¶
Index ¶
Constants ¶
const DEFAULT_RAND_MAX int = 15
default value for the maximum length of randomly generated strings.
const DEFAULT_RAND_MIN int = 5
default value for the minimum length of randomly generated strings.
Variables ¶
This section is empty.
Functions ¶
func GenRandomName ¶
function designed to generate a random string with a length that falls within a designated range. this can be useful for generating random file names or unique usernames and passwords.
func ProxyGenerator ¶ added in v0.0.20
func ProxyGenerator(ps *proxyscrape.ProxyScraper, c chan string, wg *sync.WaitGroup, exit *bool) (err error)
function designed to continually feed proxies into a channel so the end-user can use them to make requests. this can allow a user to have a different IP address each request.
func SliceIterator ¶ added in v0.0.20
function designed to continually loop through a given slice and feed the current item into the channel.
Types ¶
type WordlistGenerator ¶ added in v0.0.18
type WordlistGenerator struct { // file to use as the wordlist. this will be read // line-by-line in the ReadWordlist function. Wordlist string // channel to pass the contents of the worlist on. CommsChan chan string // flag to indicate to stop reading the wordlist. // this will cause the ReadWordlist function to // break the Scan loop and return, closing the // comms channel. StopRead bool }
structure designed to outline a wordlist generator. this will be able to read a specified wordlist and return its contents line-by-line. this is useful in enumeration and brute-forcing.
func NewWordlistGenerator ¶ added in v0.0.18
func NewWordlistGenerator(wordlist string) (generator *WordlistGenerator, err error)
function designed to create and return a new instance of a wordlist generator. this will create a new comms channel and use the wordlist specified in the arguments.
func (*WordlistGenerator) ReadWordlist ¶ added in v0.0.18
func (w *WordlistGenerator) ReadWordlist() (err error)
function designed to go through the WordlistGenerator's designated wordlist line-by-line and feed each line to the comms channel.
when this function returns, the comms channel will close.