Skip to content

Commit

Permalink
Merge pull request #4 from 0x4f53/visual-enhancements
Browse files Browse the repository at this point in the history
Visual enhancements
  • Loading branch information
0x4f53 authored Aug 18, 2024
2 parents c5528da + a5df449 commit 164d482
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 16 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dnscovery
dnsservices

# If you prefer the allow list template instead of the deny list, see community template:
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Define the program name and version
PROGRAM_NAME="dnsservices"
PROGRAM_NAME="dnscovery"
VERSION="1.0.0"

# Define the operating systems and architectures you want to build for
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module dnsservices
module dnscovery

go 1.22.3

Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
set -o pipefail

bin_name="dnsservices"
bin_name="dnscovery"

resolvers_file="resolvers.yaml"
signatures_file="signatures.yaml"
Expand Down
7 changes: 4 additions & 3 deletions sniffer.go → main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ var (
)

var rootCmd = &cobra.Command{
Use: "dnsservices <domain1> <domain2>...",
Short: "dnsservices",
Long: "dnsservices - discover service-related information from DNS records.",
Use: "dnscovery <domain1> <domain2>...",
Short: "dnscovery",
Long: "dnscovery - discover service-related information from DNS records.",
Args: cobra.MinimumNArgs(1),
Run: func(cmd *cobra.Command, args []string) {
input = args
Expand Down Expand Up @@ -131,6 +131,7 @@ func main() {
fmt.Print("\nChecking if online...")

if !CheckInternet() {
fmt.Println()
ErrorLog.Println("Couldn't connect to the internet. Please check your connection and try again!")
os.Exit(-2)
}
Expand Down
Binary file modified preview.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 16 additions & 9 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@

[![Golang](https://img.shields.io/badge/Golang-fff.svg?style=flat-square&logo=go)](https://go.dev)
[![License](https://img.shields.io/badge/License-MIT-purple?style=flat-square&logo=libreoffice)](LICENSE)
[![Latest Version](https://img.shields.io/github/v/tag/0x4f53/dnsservices?label=Version&style=flat-square&logo=semver)](https://github.com/0x4f53/dnsservices/releases)
[![Latest Version](https://img.shields.io/github/v/tag/0x4f53/dnscovery?label=Version&style=flat-square&logo=semver)](https://github.com/0x4f53/dnscovery/releases)
[![Binaries](https://img.shields.io/badge/Binaries-Click%20Here-blue?style=flat-square&logo=dropbox)](.build/binaries/)

# 🌐 DNSservices
# 🌐 Dnscovery

<img src = preview.gif alt="subs preview" width = "500dp">
<img src = preview.gif alt="dnscovery preview" width = "500dp">

A lightning-fast Golang tool to discover services embedded into DNS records

## 🚀 Features

- Takes just 2 seconds to resolve a domain**
- Queries multiple DNS servers concurrently
- More than 100 service signatures supported
Expand All @@ -23,7 +24,7 @@ _** - depending on factors like internet speed, DNS server availability etc._

```bash
Usage:
dnsservices <domain1> <domain2>... [flags]
dnscovery <domain1> <domain2>... [flags]

Flags:
-o, --output string Save output to file (in JSON format)
Expand All @@ -32,18 +33,23 @@ Flags:
### Examples
- Trying one domain
```bash
❯ ./dnsservices 0x4f.in
❯ ./dnscovery 0x4f.in

Checking if online... [ ✓ ONLINE ]
Looking up '0x4f.in'... [ 7 resolvers found! ]

Found services: OpenAI Domain, Ethereum Name Service, Cloudflare Mail, Google Workspace
```
- JSON output
```bash
❯ ./dnsservices 0x4f.in -o=output.json
❯ ./dnscovery 0x4f.in -o=output.json

Checking if online... [ ✓ ONLINE ]
Looking up '0x4f.in'... [ 7 resolvers found! ]

Output saved to 'output.json'

❯ cat output.json
{
"Host": "0x4f.in",
Expand All @@ -66,7 +72,7 @@ Output saved to 'output.json'
- Trying multiple domains
```bash
❯ ./dnsservices 0x4f.in blackhat.com
❯ ./dnscovery 0x4f.in blackhat.com
Checking if online... [ ✓ ONLINE ]

Looking up '0x4f.in'... [ 7 resolvers found! ]
Expand All @@ -78,11 +84,12 @@ Found services: Google Search Console, Microsoft Office 365, Twilio SendGrid, Go
- Verbose mode
```bash
❯ ./dnsservices 0x4f.in -v
❯ ./dnscovery 0x4f.in -v

Checking if online... [ ✓ ONLINE ]
Looking up '0x4f.in'... [ 7 resolvers found! ]

DNS providers containing with this host:
DNS providers with this host:
1. Quad9 (9.9.9.9)
2. Google (8.8.4.4)
4. Cloudflare (1.1.1.1)
Expand Down
2 changes: 1 addition & 1 deletion uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
set -o pipefail

bin_name="dnsservices"
bin_name="dnscovery"

resolvers_file="resolvers.yaml"
signatures_file="signatures.yaml"
Expand Down

0 comments on commit 164d482

Please sign in to comment.