pocscan

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

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PocScanWithChannel

func PocScanWithChannel(ctx context.Context, params chan *PocParam, options ...PocScanOptions) (chan *PocScanResponse, error)

Types

type HttpFlow

type HttpFlow struct {
	HttpRequest  string
	HttpResponse string
}

type PocParam

type PocParam struct {
	PocId  string
	Target string
}

type PocScanConfig

type PocScanConfig struct {
	Proxy   []string
	Thread  int
	Timeout int
	Field   string
}

type PocScanOptions

type PocScanOptions func(config *PocScanConfig)

func WithField

func WithField(field string) PocScanOptions

func WithProxy

func WithProxy(proxy []string) PocScanOptions

func WithThread

func WithThread(thread int) PocScanOptions

func WithTimeout

func WithTimeout(timeout int) PocScanOptions

type PocScanResponse

type PocScanResponse struct {
	PocId   string
	Target  string
	Runtime float64
	Status  bool
	Flow    []HttpFlow
}

func PocScan

func PocScan(pocId string, target string, timeout int, proxy []string) (*PocScanResponse, error)

Jump to

Keyboard shortcuts

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