mirror of
https://github.com/lunchcat/sif.git
synced 2026-06-12 19:11:25 -07:00
c3a755f934
adds an httpx-style -probe scanner reporting liveness, final status, page title, server header and the redirect chain, plus -sarif/-markdown export flags that serialize the collected run after the scan loop. the report serializers live in a decoupled internal/report package consuming a raw-json result model so they never import scan types.
27 lines
1.5 KiB
Go
27 lines
1.5 KiB
Go
/*
|
|
·━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━·
|
|
: :
|
|
: █▀ █ █▀▀ · Blazing-fast pentesting suite :
|
|
: ▄█ █ █▀ · BSD 3-Clause License :
|
|
: :
|
|
: (c) 2022-2026 vmfunc, xyzeva, :
|
|
: lunchcat alumni & contributors :
|
|
: :
|
|
·━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━·
|
|
*/
|
|
|
|
// Package report serializes collected scan results to sarif and markdown. it's
|
|
// deliberately decoupled from the scan package: callers map their own results
|
|
// into report.Result, so report never imports a scanner type.
|
|
package report
|
|
|
|
import "encoding/json"
|
|
|
|
// Result is one module's output for one target. Data is whatever the scanner
|
|
// returned, carried as raw json so report stays free of scan types.
|
|
type Result struct {
|
|
Target string
|
|
Module string
|
|
Data json.RawMessage
|
|
}
|