Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added flag to avoid printing header #27

Merged
merged 2 commits into from
Apr 11, 2020
Merged

Added flag to avoid printing header #27

merged 2 commits into from
Apr 11, 2020

Conversation

CasperGN
Copy link
Contributor

When incoorporating Webanalyzer into scripts to enumerate several items of a target the non-optional header printing was inconvinient. Hence I've created the -silent bool flag to allow for disabling the header printing.

Compile + test with and without -silent option:

~/dev/webanalyze (optional_header) $ go build -o webanalyze cmd/webanalyze/main.go 
root@kali:~/dev/webanalyze (optional_header) $ ./webanalyze 
Usage of ./webanalyze:
  -apps string
    	app definition file. (default "apps.json")
  -crawl int
    	links to follow from the root page (default 0)
  -host string
    	single host to test
  -hosts string
    	filename with hosts, one host per line.
  -output string
    	output format (stdout|csv|json) (default "stdout")
  -search
    	searches all urls with same base domain (i.e. example.com and sub.example.com) (default true)
  -silent
    	avoid printing header (default false)
  -update
    	update apps file
  -worker int
    	number of worker (default 4)
~/dev/webanalyze (optional_header) $ ./webanalyze -update
2020/04/10 03:46:52 app definition file updated from  https://raw.githubusercontent.com/AliasIO/Wappalyzer/master/src/apps.json
~/dev/webanalyze (optional_header) $ ./webanalyze -host robinverton.de -crawl 1
 :: webanalyze        : v1.0
 :: workers           : 4
 :: apps              : apps.json
 :: crawl count       : 1
 :: search subdomains : true

http://robinverton.de (0.4s):
    Netlify,  (PaaS, CDN)
~/dev/webanalyze (optional_header) $ ./webanalyze -host robinverton.de -crawl 1 -silent
http://robinverton.de (0.4s):
    Netlify,  (PaaS, CDN)

@rverton rverton merged commit 92f42cc into rverton:master Apr 11, 2020
@rverton
Copy link
Owner

rverton commented Apr 11, 2020

Thanks for your contribution!

@CasperGN
Copy link
Contributor Author

My pleasure - thanks for PR acceptance and a great project!

@CasperGN CasperGN deleted the optional_header branch April 11, 2020 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants