misc CLI UI update

dev
sandeep 2021-09-01 02:01:55 +05:30
parent f0dcfa78fa
commit 605393d1a8
2 changed files with 5 additions and 4 deletions

View File

@ -399,10 +399,11 @@ func (r *Runner) RunEnumeration() error {
gologger.Info().Msgf("Using Interactsh Server %s", r.options.InteractshURL)
}
if len(store.Templates()) > 0 {
gologger.Info().Msgf("Templates loaded: %d (New: %d)", len(store.Templates()), r.countNewTemplates())
gologger.Info().Msgf("Templates added in last update: %d", r.countNewTemplates())
gologger.Info().Msgf("Templates loaded for scan: %d", len(store.Templates()))
}
if len(store.Workflows()) > 0 {
gologger.Info().Msgf("Workflows loaded: %d", len(store.Workflows()))
gologger.Info().Msgf("Workflows loaded for scan: %d", len(store.Workflows()))
}
// pre-parse all the templates, apply filters

View File

@ -101,8 +101,8 @@ func init() {
parsedTemplatesCache = cache.New()
stats.NewEntry(SyntaxWarningStats, "Got %d syntax warnings for the loaded templates")
stats.NewEntry(SyntaxErrorStats, "Got %d syntax errors for the loaded templates")
stats.NewEntry(SyntaxWarningStats, "Found %d templates with syntax warning (use -validate flag for further examination)")
stats.NewEntry(SyntaxErrorStats, "Found %d templates with syntax error (use -validate flag for further examination)")
}
// ParseTemplate parses a template and returns a *templates.Template structure