assetnote / commonspeak2

Leverages publicly available datasets from Google BigQuery to generate content discovery and subdomain wordlists
Apache License 2.0
682 stars 96 forks source link

How to use commonspeak2 #14

Open 0xsanjaydas opened 4 years ago

0xsanjaydas commented 4 years ago

./commonspeak2 --project crunchbox-160315 --o subdomains.txt Incorrect Usage. flag provided but not defined: -o

NAME: Commonspeak 2 - Generate wordlists using BigQuery by analysing datasets that evolve constantly.

USAGE: commonspeak2 [global options] command [command options] [arguments...]

VERSION: 0.1.0

AUTHOR: Assetnote

COMMANDS: ext-wordlist Generate wordlists based on extensions provided by the user. subdomains Generates a list of subdomains from all available BigQuery public datasets. routes Generate wordlists based on routes extracted from popular frameworks. help, h Shows a list of commands or help for one command

GLOBAL OPTIONS: --project value, -p value The Google Cloud Project to use for the queries. --credentials value, -c value Refer to: https://cloud.google.com/bigquery/docs/reference/libraries#client-libraries-install-go [credentials.json] --verbose Enable verbose output. --silent, -s If this is set to true, the results will be written to a file but not to STDOUT. --test, -t If this is set to true, Commonspeak2 will execute queries against smaller, testing datasets. --help, -h show help --version, -v print the version 04:02:00 root kali /root/Desktop/commonspeak2_0.1.4_Linux_x86_64

./commonspeak2 --project crunchbox-160315 --o /root/Desktop/alive.txt

Incorrect Usage. flag provided but not defined: -o

NAME: Commonspeak 2 - Generate wordlists using BigQuery by analysing datasets that evolve constantly.

USAGE: commonspeak2 [global options] command [command options] [arguments...]

VERSION: 0.1.0

AUTHOR: Assetnote

COMMANDS: ext-wordlist Generate wordlists based on extensions provided by the user. subdomains Generates a list of subdomains from all available BigQuery public datasets. routes Generate wordlists based on routes extracted from popular frameworks. help, h Shows a list of commands or help for one command

GLOBAL OPTIONS: --project value, -p value The Google Cloud Project to use for the queries. --credentials value, -c value Refer to: https://cloud.google.com/bigquery/docs/reference/libraries#client-libraries-install-go [credentials.json] --verbose Enable verbose output. --silent, -s If this is set to true, the results will be written to a file but not to STDOUT. --test, -t If this is set to true, Commonspeak2 will execute queries against smaller, testing datasets. --help, -h show help --version, -v print the version

sebek88 commented 2 years ago

Sorry for answering two years late, just discovered this tool and better late than never anyway. Did you try removing the one hyphen before the -o output flag? It is common for abbreviated flags to have one hyphen (-), like -o filename.txt and for non-abbreviated parameters to have two hyphens (--), like --project projectname. Also as you can see from the project's readme file the correct syntax is -o subdomains.txt. That would be ./commonspeak2 --project crunchbox-160315 -o subdomains.txt in your case.