model

package
v2.0.0-...-9108e55 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Issue

type Issue struct {
	Type  string `json:"type"`
	Param string `json:"param"`
	PoC   PoC    `json:"poc"`
}

Issue is struct of issue

type MassJob

type MassJob struct {
	Name string
	URLs []string
}

MassJob is list for mass

type Options

type Options struct {
	UniqParam         []string `json:"param,omitempty"`
	Cookie            string   `json:"cookie,omitempty"`
	Header            []string `json:"header,omitempty"`
	ConfigFile        string   `json:"config,omitempty"`
	BlindURL          string   `json:"blind,omitempty"`
	CustomPayloadFile string   `json:"custom-payload-file,omitempty"`
	CustomAlertValue  string   `json:"custom-alert-value,omitempty"`
	CustomAlertType   string   `json:"custom-alert-type,omitempty"`
	Data              string   `json:"data,omitempty"`
	UserAgent         string   `json:"user-agent,omitempty"`
	OutputFile        string   `json:"output,omitempty"`
	Format            string   `json:"format,omitempty"`
	FoundAction       string   `json:"found-action,omitempty"`
	FoundActionShell  string   `json:"found-action-shell,omitempty"`
	ProxyAddress      string   `json:"proxy,omitempty"`
	Grep              string   `json:"grep,omitempty"`
	IgnoreReturn      string   `json:"ignore-return,omitempty"`
	IgnoreParams      []string `json:"ignore-params,omitempty"`
	Trigger           string   `json:"trigger,omitempty"`
	Timeout           int      `json:"timeout,omitempty"`
	Concurrence       int      `json:"worker,omitempty"`
	Delay             int      `json:"delay,omitempty"`
	AllURLS           int
	NowURL            int
	Sequence          int  `json:"sequence,omitempty"`
	OnlyDiscovery     bool `json:"only-discovery,omitempty"`
	OnlyCustomPayload bool `json:"only-custom-payload,omitempty"`
	Silence           bool `json:"silence,omitempty"`
	IsAPI             bool `json:"is-api,omitempty"`
	IsLibrary         bool `json:"is-library,omitempty"`
	Mass              bool `json:"mass,omitempty"`
	MulticastMode     bool `json:"multicast-mode,omitempty"`
	Scan              map[string]Scan
	FollowRedirect    bool   `json:"follow-redirects,omitempty"`
	Mining            bool   `json:"mining-dict,omitempty"`
	FindingDOM        bool   `json:"mining-dom,omitempty"`
	MiningWordlist    string `json:"mining-dict-word,omitempty"`
	NoColor           bool   `json:"no-color,omitempty"`
	Method            string `json:"method,omitempty"`
	TriggerMethod     string `json:"trigger-method,omitempty"`
	NoSpinner         bool   `json:"no-spinner,omitempty"`
	NoBAV             bool   `json:"no-bav,omitempty"`
	ServerHost        string `json:"server-host,omitempty"`
	ServerPort        int    `json:"server-port,omitempty"`
	NoGrep            bool   `json:"skip-grepping,omitempty"`
	Debug             bool   `json:"debug,omitempty"`
	CookieFromRaw     string `json:"cookie-from-raw,omitempty"`
	ScanResult        Result
	SpinnerObject     *s.Spinner
	AuroraObject      a.Aurora
	StartTime         t.Time
	HarWriter         *har.Writer
	PathReflection    map[int]string
	RemotePayloads    string `json:"remote-payloads,omitempty"`
	RemoteWordlists   string `json:"remote-wordlists,omitempty"`
	UseHeadless       bool   `json:"use-headless,omitempty"`
	UseDeepDXSS       bool   `json:"use-deepdxss,omitempty"`
	OnlyPoC           string `json:"only-poc,omitempty"`
	OutputAll         bool   `json:"output-all,omitempty"`
	WAF               bool
	WAFEvasion        bool
	PoCType           string `json:"poc-type,omitempty"`
	Mutex             *sync.Mutex
	ReportFormat      string
	ReportBool        bool
	OutputRequest     bool `json:"output-request,omitempty"`
	OutputResponse    bool `json:"output-response,omitempty"`
}

Options is struct of options

type Param

type Param struct {
	Type    string
	Key     string
	Value   string
	Reflect bool
	SMap    string
}

Param is type of Parameters (Parameter analysis output)

type ParamResult

type ParamResult struct {
	Name           string
	Type           string
	Reflected      bool
	ReflectedPoint string
	ReflectedCode  string
	Chars          []string
}

type PoC

type PoC struct {
	Type            string `json:"type"`
	InjectType      string `json:"inject_type"`
	PoCType         string `json:"poc_type"`
	Method          string `json:"method"`
	Data            string `json:"data"`
	Param           string `json:"param"`
	Payload         string `json:"payload"`
	Evidence        string `json:"evidence"`
	CWE             string `json:"cwe"`
	Severity        string `json:"severity"`
	MessageID       int64  `json:"message_id,omitempty"`
	MessageStr      string `json:"message_str,omitempty"`
	RawHTTPRequest  string `json:"raw_request,omitempty"`
	RawHTTPResponse string `json:"raw_response,omitempty"`
}

PoC is PoC struct for Result

type Result

type Result struct {
	Logs      []string      `json:"logs"`
	PoCs      []PoC         `json:"pocs"`
	Params    []ParamResult `json:"params"`
	Duration  time.Duration `json:"duration"`
	StartTime time.Time     `json:"start_time"`
	EndTime   time.Time     `json:"end_time"`
}

Result is struct for library and cli application

type Scan

type Scan struct {
	URL     string
	ScanID  string
	Logs    []string
	Results []PoC
}

Scan is struct of scan

Jump to

Keyboard shortcuts

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