output fix

master
Mzack9999 2021-02-19 20:07:49 +01:00
parent ef8c9c717f
commit 812fc9abd5
3 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ func (a *Agent) EnumerateSubdomains(domain string, keys *subscraping.Keys, timeo
wg.Wait() wg.Wait()
for source, data := range timeTaken { for source, data := range timeTaken {
gologger.Verbose().Msgf(data, source) gologger.Verbose().Lable(source).Msg(data)
} }
close(results) close(results)

View File

@ -65,7 +65,7 @@ func (r *Runner) EnumerateSingleDomain(ctx context.Context, domain, output strin
// Log the verbose message about the found subdomain per source // Log the verbose message about the found subdomain per source
if _, ok := sourceMap[subdomain][result.Source]; !ok { if _, ok := sourceMap[subdomain][result.Source]; !ok {
gologger.Verbose().Msgf("[%s] %s\n", result.Source, subdomain) gologger.Verbose().Lable(result.Source).Msg(subdomain)
} }
sourceMap[subdomain][result.Source] = struct{}{} sourceMap[subdomain][result.Source] = struct{}{}

View File

@ -69,7 +69,7 @@ func (s *Source) enumerate(ctx context.Context, searchURL string, domainRegexp *
if token.RetryAfter > 0 { if token.RetryAfter > 0 {
if len(tokens.pool) == 1 { if len(tokens.pool) == 1 {
gologger.Verbose().Msgf("GitHub Search request rate limit exceeded, waiting for %d seconds before retry... \n", s.Name(), token.RetryAfter) gologger.Verbose().Lable(s.Name()).Msgf("GitHub Search request rate limit exceeded, waiting for %d seconds before retry... \n", token.RetryAfter)
time.Sleep(time.Duration(token.RetryAfter) * time.Second) time.Sleep(time.Duration(token.RetryAfter) * time.Second)
} else { } else {
token = tokens.Get() token = tokens.Get()