Skip to content
/ gocrt Public

💻 gocrt is a command line client for crt.sh written in golang.

License

Notifications You must be signed in to change notification settings

qw3rtty/gocrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gocrt

gocrt is a command line client for crt.sh written in golang.

$ gocrt -o gitlab-demo < domains.txt
Get subdomains from: test.de
Get subdomains from: example.com
Save subdomains from: test.de -> saved
Save subdomains from: example.com -> saved
[✓] Done

$ ls -ls gitlab-demo
drwxr-xr-x 2 qwertty qwertty 4096 16. Okt 14:29 .
drwxr-xr-x 5 qewrtty qwertty 4096 16. Okt 14:29 ..
-rw-r--r-- 1 qewrtty qwertty 133 16. Okt 14:29 example.com
-rw-r--r-- 1 qwertty qwertty 473 16. Okt 14:29 test.de

Installation

gocrt has no runtime dependencies. You can just download a binary for Linux, Mac, Windows or FreeBSD and run it. Put the binary in your $PATH (e.g. in /usr/local/bin) to make it easy to use:

$ tar xzf gocrt-linux-amd64-0.0.1.tgz
$ sudo mv gocrt /usr/local/bin/

If you've got Go installed and configured you can install gocrt with:

$ go get -u gitlab.com/qwertty/gocrt

Usage

Get domain from command line:

$ gocrt example.com

Get domain from stdin:

$ cat domains.txt | gocrt
# OR
$ gocrt < domains.txt 

Pipe found subdomains to other tools:

$ gocrt -s < domains.txt | httprobe
# OR
$ gocrt -s < domains.txt | tee combined.txt | httprobe
# OR
$ cat domains.txt | gocrt -s | httprobe
# OR
$ gocrt --stdout example.com | httprobe

Store subdomains to custom directory:

$ cat domains.txt | gocrt -o my-custom-dir 
# OR
$ gocrt --output my-custom-dir < domains.txt

Get Help

$ gocrt --help
gocrt is a command line client for crt.sh written in golang.

Usage:
  gocrt [OPTIONS] [FILE|URL|-]

Options:
  -h, --help       Print help/usage informations
  -o, --output     Custom output directory for all found subdomains of given domains, DEFAULT: 'subdomains'
  -c, --combine    Additionally combine output for all found subdomains of given domains in one file
  -s, --stdout     Print only subdomains to STDOUT so they can be piped directly to other tools, they will not be saved into files
      --version    Print version information

Examples:
  cat domains.txt | gocrt -o domains-crt
  gocrt -o domains-crt example.com 
  gocrt < domains.txt
  gocrt -s < domains.txt | tee combined.txt | httprobe
  gocrt example.com

About

💻 gocrt is a command line client for crt.sh written in golang.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages