output

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version = "v0.1.1"
)

Variables

This section is empty.

Functions

func FormatJSON added in v0.0.2

func FormatJSON(input *ResultData) ([]byte, error)

FormatJSON returns the input as JSON string.

func JSONOutput added in v0.1.0

func JSONOutput(json *ResultData)

JSONOutput marshals and prints the JSON output.

func ShowBanner

func ShowBanner()

ShowBanner prints the banner.

Types

type Result

type Result struct {
	Map   map[string]struct{}
	Mutex *sync.RWMutex
}

Result is the struct handling the output.

func New

func New() Result

New returns a new Result object.

func (*Result) Printed

func (o *Result) Printed(result string) bool

Printed checks if a string was already printed.

type ResultData added in v0.1.0

type ResultData struct {
	// TargetURL is the original target URL.
	TargetURL string `json:"TargetURL,omitempty"`
	// ScanURL is the target URL + payload used for prototype pollution scan.
	ScanURL string `json:"ScanURL,omitempty"`
	// JSEvaluation is the JS result after prototype pollution scan
	// in the browser console.
	JSEvaluation string `json:"JSEvaluation,omitempty"`
	// ScanError is the error after prototype pollution scan (if present).
	ScanError string `json:"ScanError,omitempty"`
	// Fingerprint is the JS result after fingerprint scan
	// in the browser console.
	Fingerprint []string `json:"Fingerprint,omitempty"`
	// FingerprintError is the error after fingerprint scan (if present).
	FingerprintError string `json:"FingerprintError,omitempty"`
	// ExploitURLs are the URLs crafted to exploit the target URL (if present).
	ExploitURLs []string `json:"ExploitURLs,omitempty"`
	// ExploitError is the error after exploit scan (if present).
	ExploitError string `json:"ExploitError,omitempty"`
	// References are the links to read more on the vulnerable target exploitation.
	References []string `json:"References,omitempty"`
}

JSONData struct holds the JSON output data.

Jump to

Keyboard shortcuts

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