slowloris

package
v0.0.0-...-690656a Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClosingLine

func ClosingLine() string

ClosingLine sends a closing line for a HTTP request

func Dialer

func Dialer(url *url.URL, secure bool) (net.Conn, error)

Dialer creates either non-secure or TLS secured TCP connection to send data to target server

func GetRequestLine

func GetRequestLine(path string) string

GetRequestLine returns HTTP request line for GET request

func Header(key, val string) string

func Header formats header key and value

func RandomHeader

func RandomHeader() string

RandomHeader generates a random HTTP header to send as part of the slowloris attack

func Slowloris

func Slowloris(ctx context.Context, index int64, options Options) error

Slowloris performs single threaded slow loris attack. If you want to run distributed attack, just run multiple calls of the function over the same URL.

func SlowlorisUrl

func SlowlorisUrl(rawURL string, count int64, interval time.Duration, timeout time.Duration) error

func Zoo

func Zoo(o Options) error

Zoo performs a distributed slowloris attack based on the given parameters

Types

type Options

type Options struct {
	URL       *url.URL
	UserAgent string
	Secure    bool
	Count     int64
	Interval  time.Duration
	Timeout   time.Duration
}

Options holds configuration for slowloris attack workers

Jump to

Keyboard shortcuts

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