Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttackConfig ¶
type AttackConfig struct { base.StatefulAttackerConfig HTTPClient string URL string TLSConfig *tls.Config // AttackType the type of attack you wish to execute AttackType AttackType // Send the Flood using the QUIC protocol Quic bool // contains filtered or unexported fields }
AttackConfig enables one to configure an attack
func (*AttackConfig) Validate ¶
func (a *AttackConfig) Validate() (err error)
Validate allows us to validate the flags we got in
type AttackType ¶
type AttackType int
AttackType is our enum for attacks
const ( // GetFlood floods the server with GET requests GetFlood AttackType = iota // PostFlood Floods the server with POST requests PostFlood // Slowloris opens up connections and trickles bytes in Slowloris )
type Attacker ¶
type Attacker struct { Config *AttackConfig Target *base.Target Log *zap.SugaredLogger GetAttacker GetFloodAttack }
Attacker holds the information on our HTTPS attack
type FastHTTPGet ¶
type FastHTTPGet struct {
// contains filtered or unexported fields
}
FastHTTPGet implements our GetFloodAttack
func (*FastHTTPGet) SetAttacker ¶
func (f *FastHTTPGet) SetAttacker(a *Attacker)
SetAttacker sets the attacker and instantiates the client
type GetFloodAttack ¶
GetFloodAttack is our generic interface that allows us to execute a get flood
type RegHTTPGet ¶
type RegHTTPGet struct {
// contains filtered or unexported fields
}
RegHTTPGet implements our GET flood using the regular net/http
Click to show internal directories.
Click to hide internal directories.