Documentation ¶
Index ¶
- func AltResolveDetection(detections []string, target map[string]string) []string
- func AltResolveHeader(headers []map[string]string, target map[string]string) []map[string]string
- func AltResolveRequest(req *libs.Request)
- func AltResolveVariable(format string, data map[string]string) string
- func Analyze(options libs.Options, record *libs.Record)
- func Background(options libs.Options)
- func Base64Encode(raw string) string
- func Between(value string, left string, right string) string
- func Body(req libs.Request, arguments []otto.Value) []libs.Request
- func ChooseOrigin(record libs.Record, index int) libs.Record
- func CommonError(component string) (string, bool)
- func Cookie(req libs.Request, arguments []otto.Value) []libs.Request
- func Encoder(encodeString string, data string) string
- func Execution(cmd string) string
- func Fuzz(req libs.Request, arguments []otto.Value) []libs.Request
- func GenActiveReport(options libs.Options) error
- func GenPassiveReport(options libs.Options) error
- func Generators(req libs.Request, sign libs.Signature) []libs.Request
- func GetComponent(record libs.Record, component string) string
- func GetPassives(options libs.Options) []libs.Passive
- func Header(req libs.Request, arguments []otto.Value) []libs.Request
- func Host2IP(rawURL string) map[string]string
- func InitConfig(options *libs.Options)
- func InputCmd(Cmd string) string
- func InvokeCmd(rec *libs.Record, rawCmd string) string
- func Method(req libs.Request, arguments []otto.Value) []libs.Request
- func MiddleWare(rec *libs.Record, options libs.Options)
- func MoreVariables(target map[string]string, sign libs.Signature, options libs.Options) map[string]string
- func ParseBurpRequest(raw string) (req libs.Request)
- func ParseBurpResponse(rawReq string, rawRes string) (res libs.Response)
- func ParseFuzzRequest(record libs.Record, sign libs.Signature) []libs.Request
- func ParseHeaders(rawHeaders map[string][]string) []map[string]string
- func ParseInputFormat(raw string) map[string]string
- func ParseOrigin(req libs.Request, sign libs.Signature, _ libs.Options) libs.Request
- func ParseParams(rawParams []string) map[string]string
- func ParsePassive(passiveFile string) (passive libs.Passive, err error)
- func ParsePayloads(sign libs.Signature) []string
- func ParseRawHeaders(rawHeaders []string) map[string]string
- func ParseRequest(req libs.Request, sign libs.Signature, options libs.Options) []libs.Request
- func ParseRequestFromServer(record *libs.Record, req libs.Request, _ libs.Signature)
- func ParseSign(signFile string) (sign libs.Signature, err error)
- func ParseTarget(raw string) map[string]string
- func ParseVariable(sign libs.Signature) []map[string]string
- func PassiveAnalyze(options libs.Options, record libs.Record)
- func Path(req libs.Request, arguments []otto.Value) []libs.Request
- func PickupLog(options libs.Options)
- func PollCollab(record libs.Record, analyzeString string) (string, bool)
- func PollingLog()
- func Query(req libs.Request, arguments []otto.Value) []libs.Request
- func RandomNumber(n int) string
- func RandomString(n int) string
- func RegexCount(component string, analyzeString string) int
- func RegexGrep(realRec libs.Record, arguments []otto.Value) string
- func RegexSearch(component string, analyzeString string) (string, bool)
- func RegexSelect(realRec libs.Record, arguments []otto.Value) map[string]string
- func ReplaceMe(req libs.Request, arguments []otto.Value) []libs.Request
- func ResolveDetection(detections []string, target map[string]string) []string
- func ResolveHeader(headers []map[string]string, target map[string]string) []map[string]string
- func ResolveVariable(format string, data map[string]string) string
- func RunConclude(concludeScript string, record libs.Record, sign *libs.Signature)
- func RunConclusions(record libs.Record, sign *libs.Signature)
- func RunDetector(record libs.Record, detectionString string) (string, bool)
- func RunGenerator(req libs.Request, genString string) []libs.Request
- func RunVariables(variableString string) []string
- func SelectSign(signName string) []string
- func SingleSign(signName string) []string
- func SplitLines(raw string) []string
- func StoreOutput(rec libs.Record, options libs.Options) string
- func StorePassiveOutput(record libs.Record, rule libs.Rule, detectionString string, ...) string
- func StringCount(component string, analyzeString string) int
- func StringSearch(component string, analyzeString string) bool
- func TurboIntruder(rec *libs.Record) string
- func URLEncode(raw string) string
- func UpdatePlugins(options libs.Options)
- func UpdateSignature(options libs.Options)
- type ReportData
- type VulnData
- type Vulnerability
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AltResolveDetection ¶
AltResolveDetection resolve detection part in YAML signature file
func AltResolveHeader ¶
AltResolveHeader resolve headers part in YAML signature file
func AltResolveRequest ¶
AltResolveRequest resolve all request but look for [[ ]] delimiter
func AltResolveVariable ¶
AltResolveVariable just like ResolveVariable but looking for [[.var]]
func Background ¶
Background main function to call other background task
func ChooseOrigin ¶
ChooseOrigin choose origin to compare
func CommonError ¶
CommonError shortcut for common error
func Fuzz ¶
// Usage: Fuzz('{{.payload}}'), Fuzz('{{.payload}}11', 'ANOTHER_FUZZ') Fuzz gen request with fuzz keyword
func GenActiveReport ¶
GenActiveReport generate report file
func GenPassiveReport ¶
GenPassiveReport generate report file
func Generators ¶
Generators run multiple generator
func GetComponent ¶
GetComponent get component to run detection
func GetPassives ¶
GetPassives get all passives rule
func MiddleWare ¶
MiddleWare is main function for middleware
func MoreVariables ¶
func MoreVariables(target map[string]string, sign libs.Signature, options libs.Options) map[string]string
MoreVariables get more options to render in sign template
func ParseBurpRequest ¶
ParseBurpRequest parse burp style request
func ParseBurpResponse ¶
ParseBurpResponse parse burp style response
func ParseFuzzRequest ¶
ParseFuzzRequest parse request receive in API server
func ParseHeaders ¶
ParseHeaders parse header for sending method
func ParseInputFormat ¶
ParseInputFormat format input
func ParseOrigin ¶
ParseOrigin parse origin request
func ParseParams ¶
ParseParams parse more params from cli
func ParsePassive ¶
ParsePassive parsing YAML passive file
func ParsePayloads ¶
ParsePayloads parse payload to replace
func ParseRawHeaders ¶
ParseRawHeaders parse more headers from cli
func ParseRequest ¶
ParseRequest parse request part in YAML signature file
func ParseRequestFromServer ¶
ParseRequestFromServer parse request receive from API server
func ParseTarget ¶
ParseTarget parsing target and some variable for template
func ParseVariable ¶
ParseVariable parse variable in YAML signature file
func PassiveAnalyze ¶
PassiveAnalyze do passive analyzer based on default passive signature
func PollCollab ¶
PollCollab polling burp collab with secret from DB
func RegexCount ¶
RegexCount count regex string in component
func RegexSearch ¶
RegexSearch search regex string in component
func RegexSelect ¶
RegexSelect get regex string from component
func ResolveDetection ¶
ResolveDetection resolve detection part in YAML signature file
func ResolveHeader ¶
ResolveHeader resolve headers part in YAML signature file
func ResolveVariable ¶
ResolveVariable resolve template from signature file
func RunConclude ¶
RunConclude run conclusion script
func RunConclusions ¶
RunConclusions set new value for next request
func RunDetector ¶
RunDetector is main function for detections
func RunGenerator ¶
RunGenerator is main function for generator
func RunVariables ¶
RunVariables is main function for detections
func SelectSign ¶
SelectSign select signature by multiple selector
func SingleSign ¶
SingleSign select signature by single selector
func StoreOutput ¶
StoreOutput store vulnerable request to a file
func StorePassiveOutput ¶
func StorePassiveOutput(record libs.Record, rule libs.Rule, detectionString string, options libs.Options) string
StorePassiveOutput store passive output found
func StringCount ¶
StringCount count string literal in component
func StringSearch ¶
StringSearch search string literal in component
func TurboIntruder ¶
TurboIntruder execute Turbo Intruder CLI
func UpdatePlugins ¶
UpdatePlugins update latest UI and Plugins from default repo
func UpdateSignature ¶
UpdateSignature update latest UI from UI repo
Types ¶
type ReportData ¶
type ReportData struct {
Vulnerabilities []Vulnerability
}
type Vulnerability ¶
type Vulnerability struct { SignID string SignPath string URL string Risk string Confidence string ReportPath string ReportFile string Status string Length string Words string Time string }
func ParsePassiveVuln ¶
func ParsePassiveVuln(options libs.Options) []Vulnerability
ParsePassiveVuln parse vulnerbility based on
func ParseVuln ¶
func ParseVuln(options libs.Options) []Vulnerability
ParseVuln parse vulnerbility based on