mix

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mix used to mix payload with different rules and scopes

Index

Constants

View Source
const (
	FilterNumeric mixFilter = iota + 1
	FilterString
	FilterIP
	FilterDomain
	FilterURI
	FilterEmail
)

Variables

View Source
var DefaultScopes = []Scope{ScopeQuery, ScopeFragment}

Functions

func Payloads

func Payloads(u url.URL, payloads []string, rules []Rule, scopes []Scope) []url.URL

Types

type Rule

type Rule int
const (
	// RuleAppendPrefix appends the payload to the beginning of the string
	RuleAppendPrefix Rule = iota + 1
	// RuleAppendSuffix appends the payload to the end of the string
	RuleAppendSuffix
	// RuleReplace replaces the string with the payload
	RuleReplace
)

type Scope

type Scope int
const (
	ScopeQuery Scope = iota + 1
	ScopePath
	ScopeFragment
)

Jump to

Keyboard shortcuts

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