File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ func readConfig() {
294
294
295
295
options .UpdateNuclei = false
296
296
options .UpdateTemplates = false
297
- options .TemplatesDirectory = " "
297
+ options .TemplatesDirectory = pwd + "/config/nuclei-templates "
298
298
// 嵌入式集成私人版本nuclei-templates 共3744个YAML POC
299
299
if "true" == pkg .GetVal ("enablEmbedYaml" ) {
300
300
options .Templates = []string {pwd + "/config/nuclei-templates" }
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ func (r *Runner) prepareInput() {
342
342
343
343
err := r .stats .Start (makePrintCallback (), time .Duration (r .options .StatsInterval )* time .Second )
344
344
if err != nil {
345
- gologger .Warning ().Msgf ("Could not create statistics: %s\n " , err )
345
+ gologger .Warning ().Msgf ("Could not create statistics: %s \n " , err )
346
346
}
347
347
}
348
348
}
@@ -487,7 +487,7 @@ func makePrintCallback() func(stats clistats.StatisticsClient) {
487
487
builder .WriteRune ('%' )
488
488
builder .WriteRune (')' )
489
489
490
- builder .WriteRune ('\n ' )
490
+ builder .WriteRune ('\r ' )
491
491
492
492
fmt .Fprintf (os .Stderr , "%s" , builder .String ())
493
493
builder .Reset ()
Original file line number Diff line number Diff line change @@ -412,6 +412,10 @@ func (r *Runner) ShowScanResultOnExit() {
412
412
func (r * Runner ) Close () {
413
413
os .RemoveAll (r .targetsFile )
414
414
r .scanner .IPRanger .Hosts .Close ()
415
+ r .scanner .State = scan .Done
416
+ //r.scanner.CleanupHandlers()
417
+ //r.scanner.Close()
418
+ //r.wgscan
415
419
}
416
420
417
421
// PickIP randomly
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ import (
9
9
10
10
"github.com/google/gopacket"
11
11
"github.com/google/gopacket/layers"
12
+ "github.com/hktalent/scan4all/pkg/naabu/v2/pkg/privileges"
13
+ "github.com/hktalent/scan4all/pkg/naabu/v2/pkg/result"
12
14
"github.com/phayes/freeport"
13
15
"github.com/projectdiscovery/cdncheck"
14
16
"github.com/projectdiscovery/gologger"
15
17
"github.com/projectdiscovery/ipranger"
16
18
"github.com/projectdiscovery/networkpolicy"
17
- "github.com/hktalent/scan4all/pkg/naabu/v2/pkg/privileges"
18
- "github.com/hktalent/scan4all/pkg/naabu/v2/pkg/result"
19
19
"golang.org/x/net/icmp"
20
20
"golang.org/x/net/ipv4"
21
21
"golang.org/x/net/proxy"
You can’t perform that action at this time.
0 commit comments