fuzzer

package
v0.0.0-...-76eb1ab Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2016 License: BSD-3-Clause Imports: 17 Imported by: 1

Documentation

Overview

Copyright 2015 Yahoo Inc. Licensed under the BSD license, see LICENSE file for terms. Written by Stuart Larsen http2fuzz - HTTP/2 Fuzzer

Copyright 2015 Yahoo Inc. Licensed under the BSD license, see LICENSE file for terms. Written by Stuart Larsen http2fuzz - HTTP/2 Fuzzer

Copyright 2015 Yahoo Inc. Licensed under the BSD license, see LICENSE file for terms. Written by Stuart Larsen http2fuzz - HTTP/2 Fuzzer

Copyright 2015 Yahoo Inc. Licensed under the BSD license, see LICENSE file for terms. Written by Stuart Larsen http2fuzz - HTTP/2 Fuzzer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client()

func Dial

func Dial(host string, isTLS bool) (net.Conn, error)

func FuzzConnection

func FuzzConnection(conn net.Conn)

func Server

func Server()

Types

type Connection

type Connection struct {
	Host           string
	IsTLS          bool
	IsPreface      bool
	IsSendSettings bool

	Raw net.Conn

	Framer *http2.Framer

	StreamID uint32
	HBuf     bytes.Buffer
	HEnc     *hpack.Encoder

	PeerSetting map[http2.SettingID]uint32
	HDec        *hpack.Decoder

	Err error
}

func NewConnection

func NewConnection(host string, isTLS, sendPreface, sendSettingsInit bool) *Connection

func NewConnectionRaw

func NewConnectionRaw(c net.Conn, tls bool) *Connection

func NewServerConnection

func NewServerConnection(c net.Conn, tls bool) *Connection

func (*Connection) SendInitSettings

func (conn *Connection) SendInitSettings()

func (*Connection) SendPing

func (conn *Connection) SendPing(data [8]byte) error

func (*Connection) SendPreface

func (conn *Connection) SendPreface() error

func (*Connection) SetupFramer

func (conn *Connection) SetupFramer()

func (*Connection) WriteContinuationFrame

func (conn *Connection) WriteContinuationFrame(streamID uint32, endStream bool, data []byte) error

func (*Connection) WriteDataFrame

func (conn *Connection) WriteDataFrame(streamID uint32, endStream bool, data []byte) error

func (*Connection) WritePriorityFrame

func (conn *Connection) WritePriorityFrame(streamId, streamDep uint32, weight uint8, exclusive bool) error

func (*Connection) WritePushPromiseFrame

func (conn *Connection) WritePushPromiseFrame(promise http2.PushPromiseParam) error

func (*Connection) WriteRawFrame

func (conn *Connection) WriteRawFrame(frameType, flags uint8, streamID uint32, payload []byte) error

func (*Connection) WriteResetFrame

func (conn *Connection) WriteResetFrame(streamId uint32, errorCode uint32) error

func (*Connection) WriteSettingsFrame

func (conn *Connection) WriteSettingsFrame(settings []http2.Setting) error

func (*Connection) WriteWindowUpdateFrame

func (conn *Connection) WriteWindowUpdateFrame(streamId, incr uint32) error

type Fuzzer

type Fuzzer struct {
	Mu   *sync.Mutex
	Conn *Connection

	RestartConnection bool
	Alive             bool
	RestartAttempts   int
}

func NewFuzzer

func NewFuzzer(c *Connection, restart bool) *Fuzzer

func (*Fuzzer) CheckConnection

func (fuzzer *Fuzzer) CheckConnection()

func (*Fuzzer) ContinuationFuzzer

func (fuzzer *Fuzzer) ContinuationFuzzer()

func (*Fuzzer) DataFuzzer

func (fuzzer *Fuzzer) DataFuzzer()

func (*Fuzzer) HeaderFuzzer

func (fuzzer *Fuzzer) HeaderFuzzer()

func (*Fuzzer) PingFuzzer

func (fuzzer *Fuzzer) PingFuzzer()

func (*Fuzzer) PriorityFuzzer

func (fuzzer *Fuzzer) PriorityFuzzer()

func (*Fuzzer) PushPromiseFuzzer

func (fuzzer *Fuzzer) PushPromiseFuzzer()

func (*Fuzzer) RawFrameFuzzer

func (fuzzer *Fuzzer) RawFrameFuzzer()

func (*Fuzzer) RawTCPFuzzer

func (fuzzer *Fuzzer) RawTCPFuzzer()

func (*Fuzzer) ResetFuzzer

func (fuzzer *Fuzzer) ResetFuzzer()

func (*Fuzzer) SettingsFuzzer

func (fuzzer *Fuzzer) SettingsFuzzer()

func (*Fuzzer) WindowUpdateFuzzer

func (fuzzer *Fuzzer) WindowUpdateFuzzer()

Jump to

Keyboard shortcuts

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