Documentation ¶
Index ¶
- Constants
- Variables
- func HTTPCombination(mp map[modifier.Modifier][]byte) []byte
- func MustGenerator(expr string) regen.Generator
- type ByteMapModifier
- type ContentGen
- type ContentGenOpt
- type ContentModifier
- type DNSGen
- type DirectGen
- type Generator
- type HTTPGen
- type HTTPHeaderGen
- type ICMPGen
- type ModifierGenerator
- type RegexpModifier
- type TCPGen
- type UDPGen
Constants ¶
View Source
const Fallback modifier.Modifier = 1 << 20
Variables ¶
View Source
var ErrOverFlow = errors.New("bytemap too small")
Functions ¶
func MustGenerator ¶
Types ¶
type ByteMapModifier ¶
type ContentGen ¶
type ContentGen struct { Modifiers []ByteMapModifier Len int // contains filtered or unexported fields }
func (*ContentGen) Gen ¶
func (c *ContentGen) Gen() []byte
type ContentGenOpt ¶
type ContentGenOpt func(*ContentGen)
func WithNoise ¶
func WithNoise(noise noiseFunc) ContentGenOpt
func WithPostHandler ¶
func WithPostHandler(f func([]byte) []byte) ContentGenOpt
func WithPostModifier ¶
func WithPostModifier(mdf ByteMapModifier) ContentGenOpt
func WithTryLen ¶
func WithTryLen(Len int) ContentGenOpt
type ContentModifier ¶
type ContentModifier struct { NoCase bool Offset int Range int Relative bool Filter func(free []int, payload *bytemap.ByteMap, cm *ContentModifier) []int Content []byte }
ContentModifier define a method to modfiy content Content should be put at [Offset, Offset + Range] If Relative is true, Offset should be relative former one, Negetive value of Offset is used as the reverse order (can't use together with Relative and Rand).
type HTTPHeaderGen ¶
type HTTPHeaderGen []*ContentGen
func (*HTTPHeaderGen) Gen ¶
func (h *HTTPHeaderGen) Gen() []byte
type ModifierGenerator ¶
type ModifierGenerator interface {
Gen() []byte
}
type RegexpModifier ¶
Click to show internal directories.
Click to hide internal directories.