-silent hides -stats and source errors

Open
#166 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
go
Domain
cli

Research direction

The bug is that the -silent flag also suppresses the -stats table and per-source errors, which should go to stderr. Start by finding where -silent gates output in the CLI and where the stats and source errors are printed, then run the reproduction urlfinder -d projectdiscovery.io -s alienvault -silent -stats. Done means that command prints the stats and the alienvault 429 error to stderr while stdout still contains only URLs.

Written by the indexing model from the issue text.

Description

Type: Bug
urlfinder version:

dev at bb6c1ff

Current Behavior:

With -silent, the -stats table and source errors are not shown, so a source that fails or returns nothing looks the same as one with no data. In pipelines (-silent -o) there is no way to see per-source results.

Expected Behavior:

-stats and source errors go to stderr regardless of -silent, which only keeps stdout clean.

Steps To Reproduce:

urlfinder -d projectdiscovery.io -s alienvault -silent -stats prints nothing, though alienvault returned a 429.

Dominant language
Go
Stars
925
Forks
72
Avg merge
3d 1h
Merged PRs (30d)
12

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from projectdiscovery/urlfinder

All issues in projectdiscovery/urlfinder

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.