http_transparent_proxy

package
v0.0.0-...-5d1382d Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0, ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTransparentHTTPProxy

func CheckTransparentHTTPProxy(index int, host string, port uint16, targetHost string, targetPort uint16, timeout int) error

func RegisterModule

func RegisterModule()

Types

type Flags

type Flags struct {
	zgrab2.BaseFlags
	TargetHost     string `long:"target-host" description:"Target host to connect to" default:"ifconfig.me"`
	TargetPort     uint16 `long:"target-port" description:"Target port to connect to" default:"80"`
	RequestTimeout int    `long:"request-timeout" description:"Timeout in seconds" default:"16"`
}

func (*Flags) Help

func (flags *Flags) Help() string

Help returns module-specific help

func (*Flags) Validate

func (flags *Flags) Validate(args []string) error

Validate performs any needed validation on the arguments

type Module

type Module struct{}

func (*Module) Description

func (module *Module) Description() string

Description returns an overview of this module.

func (*Module) NewFlags

func (module *Module) NewFlags() interface{}

NewFlags returns an empty Flags object.

func (*Module) NewScanner

func (module *Module) NewScanner() zgrab2.Scanner

NewScanner returns a new instance Scanner instance.

type Result

type Result struct {
	Response *http.Response `json:"response,omitempty"`
}

type Scanner

type Scanner struct {
	Config *Flags
	Domain string
}

Scanner is the implementation of the zgrab2.Scanner interface.

func (*Scanner) GetName

func (s *Scanner) GetName() string

func (*Scanner) GetTrigger

func (s *Scanner) GetTrigger() string

func (*Scanner) Init

func (s *Scanner) Init(flags zgrab2.ScanFlags) error

func (*Scanner) InitPerSender

func (s *Scanner) InitPerSender(senderID int) error

func (*Scanner) Protocol

func (s *Scanner) Protocol() string

func (*Scanner) Scan

func (s *Scanner) Scan(t zgrab2.ScanTarget) (zgrab2.ScanStatus, interface{}, error)

Jump to

Keyboard shortcuts

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