Skip to content

Commit

Permalink
log 调整
Browse files Browse the repository at this point in the history
  • Loading branch information
ywolf committed Jan 31, 2019
1 parent 38dce67 commit 0a0b16e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func Scan(task Task) (result []map[string]interface{}) {
// GO插件
for n, pluginList := range GoPlugins {
if strings.Contains(strings.ToLower(task.Target), strings.ToLower(n)) || task.Target == "all" {
util.Logger.Info("启动Go插件集:",n)
util.Logger.Info("run go plugins:",n)
for _, plugin := range pluginList {
plugin.Init()
if len(task.Meta.PassList) == 0 {
Expand All @@ -73,7 +73,7 @@ func Scan(task Task) (result []map[string]interface{}) {
continue
}
for _, res := range plugin.GetResult() {
util.Logger.Info("命中插件:",res.Name)
util.Logger.Info("hit plugin:",res.Name)
result = append(result, util.Struct2Map(res))
}
}
Expand All @@ -86,10 +86,10 @@ func Scan(task Task) (result []map[string]interface{}) {
util.Logger.Info("JSON Plugin total: ",len(JSONPlugins))
for target, pluginList := range JSONPlugins {
if strings.Contains(strings.ToLower(task.Target), strings.ToLower(target)) || task.Target == "all" {
util.Logger.Info("启动JSON插件集: ",target)
util.Logger.Info("run go plugins:",target)
for _, plugin := range pluginList {
if yes, res := jsonCheck(task.Netloc, plugin); yes {
util.Logger.Info("命中插件: ",res.Name)
util.Logger.Info("hit plugin:",res.Name)
result = append(result, util.Struct2Map(res))
}
}
Expand Down

0 comments on commit 0a0b16e

Please sign in to comment.