diff --git a/lib.go b/lib.go index e156a61..21d0e71 100644 --- a/lib.go +++ b/lib.go @@ -20,12 +20,13 @@ func lib() { logging.Logger = logging.New(conf.GlobalConfig.Debug, "", "Jie", true) conf.Init() conf.GlobalConfig.Http.Proxy = "" + conf.GlobalConfig.WebScan.Craw = "k" conf.GlobalConfig.WebScan.Poc = nil conf.GlobalConfig.Reverse.Host = "https://dig.pm/" conf.GlobalConfig.Passive.WebPort = "9088" conf.GlobalConfig.Passive.WebUser = "yhy" conf.GlobalConfig.Passive.WebPass = "123456" // 注意修改为强口令 - + // 全部插件开启 for k := range conf.Plugin { // if k == "nuclei" || k == "poc" { @@ -33,14 +34,14 @@ func lib() { // } conf.Plugin[k] = true } - + if conf.GlobalConfig.Passive.WebPort != "" { go SCopilot.Init() } - + // 初始化爬虫 crawler.NewCrawlergo(false) - + go func() { for v := range output.OutChannel { // SCopilot 显示 @@ -53,7 +54,7 @@ func lib() { msg := output.SCopilotData{ Target: v.VulnData.Target, } - + if v.Level == "Low" { msg.InfoMsg = []output.PluginMsg{ { diff --git a/pkg/mode/active.go b/pkg/mode/active.go index 96c799f..d9e94da 100644 --- a/pkg/mode/active.go +++ b/pkg/mode/active.go @@ -186,7 +186,7 @@ func Katana(target string, waf []string, t *task.Task, fingerprint []string) []s go t.Distribution(crawlResult) } - if conf.GlobalConfig.WebScan.Craw == "h" { + if conf.GlobalConfig.WebScan.Craw == "k" { crawler.Katana(target, false, false, out) } else { crawler.Katana(target, true, conf.GlobalConfig.WebScan.Show, out) @@ -304,8 +304,7 @@ func getOption() model.Options { if crawler.TaskConfig.ExtraHeadersString != "" { err := json.Unmarshal([]byte(crawler.TaskConfig.ExtraHeadersString), &crawler.TaskConfig.ExtraHeaders) if err != nil { - logging.Logger.Fatal("custom headers can't be Unmarshal.") - panic(err) + logging.Logger.Errorln("custom headers can't be Unmarshal.", err) } option.Headers = crawler.TaskConfig.ExtraHeaders }