Subdominator icon indicating copy to clipboard operation
Subdominator copied to clipboard

Updated Verbose mode and implemented macOS build artefacts

Open topscoder opened this issue 1 year ago • 2 comments

Hi, I'm a fan of Subdominator. As I'm a macOS user, I've updated two parts:

  1. Verbose mode; I've changed Subdominator to output less information in default behaviour and moved it to (the already existing) verbose mode. This, so you can use Subdominator in a command chain and have it only output data if it found a vulnerable subdomain. For example: $ subdominator-macos -d target.com | notify

  2. macOS Artefact; I've updated the release GitHub Action to also build a macOS version upon release. For this I've changed the naming of the Linux binary, but left Subdominator.exe naming in tact. It's now:

  • Subdominator.exe
  • subdominator-linux
  • subdominator-macos

To show the result of the build artefacts, I've created a new release 1.66 for testing purposes on https://github.com/topscoder/Subdominator/releases

Would love to see these updates being migrated. I'm here to discuss and help.

topscoder avatar Jan 23 '24 17:01 topscoder

I love it, great work!

I agree it should be usable as an automated tool and some of the stats get in the way, but the default should probably remain as-is to prevent confusion from people who don't know much about the tool.

To accommodate less verbose output, we should have a -q (and --quiet) flag instead. This way there is a logical default, and a more/less verbose version for the people with special situations. If you can update the PR to do this I'll be happy to include it 😄

coj337 avatar Jan 29 '24 06:01 coj337

Cool! Implementing a -q --quiet (or -s --silent is more common in open source opsec tooling) flag is exactly what my first attempt was. Although rootCommand.SetHandler doesn't allow me to add another (ninth) parameter to it.

Error message: error CS1501: No overload for method 'SetHandler' takes 10 arguments

Maybe you can point me in the right direction how to fix it?

topscoder avatar Jan 29 '24 07:01 topscoder

5 months later

I have just worked around the SetHandler issue and made option assignment dynamic to make it easier for the future, this is (finally) live on main now along with the -q/--quiet flag 😄

coj337 avatar Jun 15 '24 16:06 coj337