package
0.2.1
Repository: https://github.com/ritchies/ctftool.git
Documentation: pkg.go.dev

# Functions

ExtractCSRF takes in an http response, extracts the CSRF token from the body of the response and returns it as a string.
FetchAndSubmitForm takes in an http client, a url string, and a function that sets values for the form.
NewClient returns a new instance of the Client struct with a specified transport.
NewTransport returns a new http.RoundTripper that wraps the provided http.RoundTripper and sets the TLSClientConfig to the value returned by getTLSConfig().
ParseForms takes in an html node and returns a slice of htmlForm structs.

# Structs

Client struct stores the http client, base url and credentials used to communicate with the server.
Credentials struct stores the username and password used for authentication.