Projects STRLCPY scan4all Commits 48f9926c
🤬
  • 为分布式pro版本提供扩展接口 2022-07-26

  • Loading...
  • 51pwn committed 2 years ago
    48f9926c
    1 parent 2c3f6f08
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    pkg/naabu/v2/pkg/runner/runner.go
    skipped 7 lines
    8 8   "github.com/hktalent/scan4all/lib/util"
    9 9   "github.com/hktalent/scan4all/pkg/fingerprint"
    10 10   "github.com/hktalent/scan4all/projectdiscovery/nuclei_Yaml"
     11 + runner2 "github.com/hktalent/scan4all/projectdiscovery/nuclei_Yaml/nclruner/runner"
    11 12   "github.com/projectdiscovery/fileutil"
    12 13   "github.com/projectdiscovery/retryablehttp-go"
    13 14   "log"
    skipped 45 lines
    59 60   //log.Println("httpxrunner.Naabubuffer = ", httpxrunner.Naabubuffer.String())
    60 61   //Naabubuffer1 := bytes.Buffer{}
    61 62   //Naabubuffer1.Write(httpxrunner.Naabubuffer.Bytes())
    62  - go nuclei_Yaml.RunNuclei(&httpxrunner.Naabubuffer, nucleiDone, nil)
     63 + var xx1 = make(chan *runner2.Runner, 3)
     64 + go nuclei_Yaml.RunNuclei(&httpxrunner.Naabubuffer, nucleiDone, nil, xx1)
     65 + select {
     66 + case <-xx1:
     67 + close(xx1)
     68 + case <-nucleiDone:
     69 + close(xx1)
     70 + default:
     71 + }
     72 + 
    63 73   httpxoptions := httpxrunner.ParseOptions()
    64 74   // 指纹去重复 请求路径
    65 75   if "" != fingerprint.FgDictFile {
    skipped 653 lines
  • ■ ■ ■ ■ ■ ■
    projectdiscovery/nuclei_Yaml/nuclei_yaml.go
    skipped 21 lines
    22 22   cfgFile string
    23 23  )
    24 24   
    25  -func RunNuclei(buf *bytes.Buffer, xx chan bool, oOpts *map[string]interface{}) {
     25 +func RunNuclei(buf *bytes.Buffer, xx chan bool, oOpts *map[string]interface{}, outNuclei chan<- *runner2.Runner) {
    26 26   options := &types.Options{}
    27 27   defer func() {
    28 28   xx <- true
    skipped 54 lines
    83 83   }
    84 84   //data, _ := json.Marshal(options)
    85 85   //log.Printf("%+v", string(data))
    86  - 
     86 + outNuclei <- nucleiRunner
    87 87   if err := nucleiRunner.RunEnumeration(); err != nil {
    88 88   if options.Validate {
    89 89   gologger.Fatal().Msgf("Could not validate templates: %s\n", err)
    skipped 291 lines
Please wait...
Page is in error, reload to recover