An open API service indexing awesome lists of open source software.

https://github.com/qw3rtty/gocrt

gocrt is a command line client for crt.sh written in golang.
https://github.com/qw3rtty/gocrt

golang

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# gocrt
`gocrt` is a command line client for [crt.sh](https://crt.sh/) written in golang.
```text
$ 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](https://gitlab.com/qwertty/gocrt/releases) 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:
```bash
$ 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:
```bash
$ go get -u gitlab.com/qwertty/gocrt
```

## Usage
Get domain from `command line`:
```bash
$ gocrt example.com
```

Get domain from `stdin`:
```bash
$ cat domains.txt | gocrt
# OR
$ gocrt < domains.txt
```

Pipe found subdomains to other tools:
```bash
$ 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:
```bash
$ cat domains.txt | gocrt -o my-custom-dir
# OR
$ gocrt --output my-custom-dir < domains.txt
```

## Get Help
```text
$ 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

```