Projects STRLCPY afrog Commits a573a20f
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    cmd/afrog/main.go
    skipped 28 lines
    29 29   &cli.StringFlag{Name: "TargetFilePath", Aliases: []string{"T"}, Destination: &options.TargetsFilePath, Value: "", Usage: "path to file containing a list of target URLs/hosts to scan (one per line)"},
    30 30   &cli.StringFlag{Name: "PocsFilePath", Aliases: []string{"P"}, Destination: &options.PocsFilePath, Value: "", Usage: "poc.yaml or poc directory paths to include in the scan(no default `afrog-pocs` directory)"},
    31 31   &cli.StringFlag{Name: "Output", Aliases: []string{"o"}, Destination: &options.Output, Value: "", Usage: "output html report, eg: -o result.html "},
    32  - &cli.BoolFlag{Name: "Silent", Aliases: []string{"silent"}, Destination: &options.Silent, Value: false, Usage: "no progress, only results"},
     32 + &cli.BoolFlag{Name: "Silent", Aliases: []string{"s"}, Destination: &options.Silent, Value: false, Usage: "no progress, only results"},
    33 33   }
    34 34   
    35 35   app.Action = func(c *cli.Context) error {
    skipped 27 lines
    63 63   r.PrintColorResultInfoConsole()
    64 64   
    65 65   if len(r.Output) > 0 {
    66  - htemplate.Result = r
    67  - htemplate.Append()
     66 + go func() {
     67 + htemplate.AppendMutex.Lock()
     68 + htemplate.Result = r
     69 + htemplate.Append()
     70 + htemplate.AppendMutex.Unlock()
     71 + }()
    68 72   }
    69 73   }
    70 74   
    skipped 23 lines
  • pkg/html/html.go
    Unable to diff as some line is too long.
Please wait...
Page is in error, reload to recover