analysis

package
v0.0.0-...-5898ab7 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DorkRun func(ctx context.Context, cfg *core.Config, ext string) []string

DorkRun is injected by the runner to avoid importing the pipeline package here.

Functions

func AnalyzeDocumentForSensitiveInfo

func AnalyzeDocumentForSensitiveInfo(cfg *core.Config, ctx context.Context, url string)

func AnalyzeInlineJavaScript

func AnalyzeInlineJavaScript(cfg *core.Config, ctx context.Context, url string, body string) (string, error)

func AnalyzeResponseOnlyHandler

func AnalyzeResponseOnlyHandler(cfg *core.Config, ctx context.Context) error

func AnalyzeResponsesWithAI

func AnalyzeResponsesWithAI(cfg *core.Config, ctx context.Context, responsesFile string, urls []string) (map[string]string, error)

func CheckPasteSitesForLeaks

func CheckPasteSitesForLeaks(cfg *core.Config, ctx context.Context) error

func CollectHTTPResponses

func CollectHTTPResponses(cfg *core.Config, ctx context.Context, urls []string, responsesFile string) error

func ExtractDomainFromURL

func ExtractDomainFromURL(url string) string

func FilterDocumentAnalysisURLs

func FilterDocumentAnalysisURLs(urls []string) []string

func FilterResponseAnalysisURLs

func FilterResponseAnalysisURLs(urls []string) ([]string, []string)

func HighlightSensitiveFindings

func HighlightSensitiveFindings(summary string) string

func IsCVEHuntingIntent

func IsCVEHuntingIntent(prompt string) bool

func LoadNonSensitiveKeywords

func LoadNonSensitiveKeywords() ([]string, error)

LoadNonSensitiveKeywords loads non-sensitive document keywords from file, creating it with defaults if it doesn't exist

func NormalizeRAOutput

func NormalizeRAOutput(summary string) string

func RecordResponseFindings

func RecordResponseFindings(cfg *core.Config, analysis map[string]string)

func ShouldFilterDocument

func ShouldFilterDocument(docURL string, keywords []string) bool

ShouldFilterDocument checks if a document URL contains non-sensitive keywords and should be filtered out from analysis. Returns true if document should be SKIPPED.

Types

type Config

type Config core.Config

Config aliases the shared core.Config for package methods.

type InlineCodeAnalysisStats

type InlineCodeAnalysisStats struct {
	TotalURLs     int
	ScannedURLs   int
	FindingsCount int
}

InlineCodeAnalysisStats holds statistics for inline code analysis

func PerformInlineCodeAnalysis

func PerformInlineCodeAnalysis(cfg *core.Config, ctx context.Context, urls []string) *InlineCodeAnalysisStats

Jump to

Keyboard shortcuts

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