Documentation ¶
Index ¶
- Variables
- func ExtractBodyEndpoints(data string) []string
- func ExtractRelativeEndpoints(data string) []string
- func FormInputFillSuggestions(inputs []FormInput) map[string]string
- func IsURL(url string) bool
- func ParseLinkTag(value string) []string
- func ParseRefreshTag(value string) string
- func ParseSRCSetTag(value string) []string
- func WebUserAgent() string
- type FormFillData
- type FormInput
Constants ¶
This section is empty.
Variables ¶
var DefaultFormFillData = FormFillData{ Email: fmt.Sprintf("%s@katanacrawler.io", xid.New().String()), Color: "#e66465", Password: "katanaP@assw0rd1", PhoneNumber: "2124567890", Placeholder: "katana", }
Functions ¶
func ExtractBodyEndpoints ¶
ExtractBodyEndpoints extracts body endpoints from a data item
func ExtractRelativeEndpoints ¶
ExtractRelativeEndpoints extracts relative endpoints from a data item
func FormInputFillSuggestions ¶
FormInputFillSuggestions returns a list of form filling suggestions for inputs returning the specified recommended values.
func ParseLinkTag ¶
ParseLinkTag parses link tag values returning found urls
Inspired from: https://github.com/tomnomnom/linkheader
func ParseRefreshTag ¶
ParseRefreshTag parses refresh tag values returning found urls
func ParseSRCSetTag ¶
ParseSRCSetTag parses srcset tag returning found URLs
Types ¶
type FormFillData ¶
type FormFillData struct { Email string `yaml:"email"` Color string `yaml:"color"` Password string `yaml:"password"` PhoneNumber string `yaml:"phone"` Placeholder string `yaml:"placeholder"` }
FormFillData contains suggestions for form filling
var FormData FormFillData
FormData is the global form fill data instance
type FormInput ¶
FormInput is an input for a form field
func ConvertGoquerySelectionToFormInput ¶
ConvertGoquerySelectionToFormInput converts goquery selection to form input