lib

package
v2.5.4 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(target Target, options Options) model.Options

Initialize is init for model.Options

Types

type Options

type Options struct {
	UniqParam        []string `json:"param"`
	Cookie           string   `json:"cookie"`
	Header           []string `json:"header"`
	BlindURL         string   `json:"blind"`
	CustomAlertValue string   `json:"custom-alert-value"`
	CustomAlertType  string   `json:"custom-alert-type"`
	Data             string   `json:"data"`
	UserAgent        string   `json:"user-agent"`
	ProxyAddress     string   `json:"proxy"`
	Grep             string   `json:"grep"`
	IgnoreReturn     string   `json:"ignore-return"`
	Trigger          string   `json:"trigger"`
	Timeout          int      `json:"timeout"`
	Concurrence      int      `json:"worker"`
	Delay            int      `json:"delay"`
	OnlyDiscovery    bool     `json:"only-discovery"`
	FollowRedirect   bool     `json:"follow-redirects"`
	Mining           bool     `json:"mining-dict"`
	FindingDOM       bool     `json:"mining-dom"`
	NoBAV            bool     `json:"no-bav"`
	NoGrep           bool     `json:"skip-grepping"`
	RemotePayloads   string
	RemoteWordlists  string
}

Options is dalfox options for lib

type Result

type Result struct {
	Logs      []string
	PoCs      []model.PoC
	Duration  time.Duration
	StartTime time.Time
	EndTime   time.Time
}

Result is struct for library and cli application

func NewScan

func NewScan(target Target) (Result, error)

NewScan is dalfox single scan in lib

func (*Result) IsFound

func (c *Result) IsFound() bool

IsFound is check for result

type Target

type Target struct {
	URL     string
	Method  string
	Options Options
}

Target is target object

Jump to

Keyboard shortcuts

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