Rebrand to CrowsNest
Added coffee rootCmd
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
GO=go
|
||||
|
||||
# Binary name
|
||||
BINARY_NAME=dehasher
|
||||
BINARY_NAME=crowsnest
|
||||
|
||||
# Build directory
|
||||
BUILD_DIR=build/bin
|
||||
@@ -16,7 +16,7 @@ PLATFORMS=linux darwin windows
|
||||
ARCHS=amd64 arm64
|
||||
|
||||
# Version info from git tag or default
|
||||
VERSION=$(shell git describe --tags 2>/dev/null || echo "v1.2.1")
|
||||
VERSION=$(shell git describe --tags 2>/dev/null || echo "v1.3.1")
|
||||
|
||||
.PHONY: all clean build build-all
|
||||
|
||||
|
||||
@@ -221,7 +221,7 @@ dehasher set-hunter <redacted>
|
||||
|
||||
### Domain Search
|
||||
Dehasher can perform a domain search for a given domain.
|
||||
This provides a list of all emails that match the given query.
|
||||
This provides information about company including a description, social media information and any technologies in use.
|
||||

|
||||
```bash
|
||||
# Perform a Hunter.io domain search for example.com
|
||||
@@ -230,7 +230,7 @@ dehasher hunter -d example.com -D
|
||||
|
||||
### Email Finder
|
||||
Dehasher can perform an email finder search for a given domain, first name, and last name.
|
||||
This provides a list of all emails that match the given query.
|
||||
This provides information about a user including a confidence score, and any social media accounts linked to a first name, last name and email.
|
||||

|
||||
```bash
|
||||
# Perform a Hunter.io email finder search for example.com
|
||||
@@ -239,7 +239,7 @@ dehasher hunter -d example.com -F John -L Doe -E
|
||||
|
||||
### Email Verification
|
||||
Dehasher can perform an email verification search for a given email.
|
||||
This provides a list of all emails that match the given query.
|
||||
This provides a verification and score of a given email address.
|
||||

|
||||
```bash
|
||||
# Perform a Hunter.io email verification search for example@target.com
|
||||
@@ -248,7 +248,7 @@ dehasher hunter -e example@target.com -V
|
||||
|
||||
### Company Enrichment
|
||||
Dehasher can perform a company enrichment search for a given domain.
|
||||
This provides a list of all emails that match the given query.
|
||||
This provides information about a company given its domain.
|
||||

|
||||
```bash
|
||||
# Perform a Hunter.io company enrichment search for example.com
|
||||
@@ -257,7 +257,7 @@ dehasher hunter -d example.com -C
|
||||
|
||||
### Person Enrichment
|
||||
Dehasher can perform a person enrichment search for a given email.
|
||||
This provides a list of all emails that match the given query.
|
||||
This provides information about a user given an email address..
|
||||

|
||||
```bash
|
||||
# Perform a Hunter.io person enrichment search for example@target.com
|
||||
@@ -266,7 +266,7 @@ dehasher hunter -e example@target.com -P
|
||||
|
||||
### Combined Enrichment
|
||||
Dehasher can perform a combined enrichment search for a given email.
|
||||
This provides a list of all emails that match the given query.
|
||||
This is a combination of the company and person enrichments given an email address.
|
||||

|
||||

|
||||
```bash
|
||||
|
||||
+4
-4
@@ -1,10 +1,10 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"dehasher/internal/badger"
|
||||
"dehasher/internal/debug"
|
||||
"dehasher/internal/dehashed"
|
||||
"dehasher/internal/sqlite"
|
||||
"crowsnest/internal/badger"
|
||||
"crowsnest/internal/debug"
|
||||
"crowsnest/internal/dehashed"
|
||||
"crowsnest/internal/sqlite"
|
||||
"fmt"
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"dehasher/internal/export"
|
||||
"dehasher/internal/files"
|
||||
"dehasher/internal/sqlite"
|
||||
"crowsnest/internal/export"
|
||||
"crowsnest/internal/files"
|
||||
"crowsnest/internal/sqlite"
|
||||
"fmt"
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
|
||||
+6
-6
@@ -1,12 +1,12 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"dehasher/internal/badger"
|
||||
"dehasher/internal/debug"
|
||||
"dehasher/internal/export"
|
||||
"dehasher/internal/files"
|
||||
hunter "dehasher/internal/hunter.io"
|
||||
"dehasher/internal/pretty"
|
||||
"crowsnest/internal/badger"
|
||||
"crowsnest/internal/debug"
|
||||
"crowsnest/internal/export"
|
||||
"crowsnest/internal/files"
|
||||
hunter "crowsnest/internal/hunter.io"
|
||||
"crowsnest/internal/pretty"
|
||||
"fmt"
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"dehasher/internal/easyTime"
|
||||
"dehasher/internal/pretty"
|
||||
"crowsnest/internal/easyTime"
|
||||
"crowsnest/internal/pretty"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"dehasher/internal/pretty"
|
||||
"dehasher/internal/sqlite"
|
||||
"crowsnest/internal/pretty"
|
||||
"crowsnest/internal/sqlite"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
+24
-22
@@ -1,8 +1,9 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"dehasher/internal/badger"
|
||||
"crowsnest/internal/badger"
|
||||
"fmt"
|
||||
"github.com/fatih/color"
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
"os"
|
||||
@@ -18,28 +19,14 @@ var (
|
||||
Use: "dehasher",
|
||||
Short: `Dehasher is a cli tool for querying the dehashed api.`,
|
||||
Long: fmt.Sprintf(
|
||||
"%s\n%s",
|
||||
"%s\n",
|
||||
`
|
||||
______ _______ _______ _______ _______ _______
|
||||
( __ \ ( ____ \|\ /|( ___ )( ____ \|\ /|( ____ \( ____ )
|
||||
| ( \ )| ( \/| ) ( || ( ) || ( \/| ) ( || ( \/| ( )|
|
||||
| | ) || (__ | (___) || (___) || (_____ | (___) || (__ | (____)|
|
||||
| | | || __) | ___ || ___ |(_____ )| ___ || __) | __)
|
||||
| | ) || ( | ( ) || ( ) | ) || ( ) || ( | (\ (
|
||||
| (__/ )| (____/\| ) ( || ) ( |/\____) || ) ( || (____/\| ) \ \__
|
||||
(______/ (_______/|/ \||/ \|\_______)|/ \|(_______/|/ \__/
|
||||
An Ar1ste1a Project
|
||||
`,
|
||||
`––•–√\/––√\/––•––––•–√\/––√\/––•––––•–√\/––√\/––•––√\/––•––––•–√\/––√\/––•––
|
||||
Dehasher can query the query API for:
|
||||
- Emails - Usernames - Password
|
||||
- Hashes - IP Addresses - Names
|
||||
- VINs - License Plates - Addresses
|
||||
- Phones - Social Media - Crypto Currency Addresses
|
||||
Dehasher supports:
|
||||
- Regex Matching
|
||||
- Exact Matching
|
||||
––•–√\/––√\/––•––––•–√\/––√\/––•––––•–√\/––√\/––•––√\/––•––––•–√\/––√\/––•––
|
||||
╔═╗┬─┐┌─┐┬ ┬┌─┐╔╗╔┌─┐┌─┐┌┬┐
|
||||
║ ├┬┘│ ││││└─┐║║║├┤ └─┐ │
|
||||
╚═╝┴└─└─┘└┴┘└─┘╝╚╝└─┘└─┘ ┴
|
||||
|
||||
Crow’s Nest OSINT Recon Suite
|
||||
⚓ A KrakenTech Intelligence Tool
|
||||
`,
|
||||
),
|
||||
Version: "v1.2.1",
|
||||
@@ -69,6 +56,7 @@ func init() {
|
||||
rootCmd.AddCommand(setDehashedKeyCmd)
|
||||
rootCmd.AddCommand(setHunterKeyCmd)
|
||||
rootCmd.AddCommand(setLocalDb)
|
||||
rootCmd.AddCommand(buyMeCoffeeCmd)
|
||||
}
|
||||
|
||||
// Command to set API key
|
||||
@@ -132,6 +120,20 @@ var setLocalDb = &cobra.Command{
|
||||
},
|
||||
}
|
||||
|
||||
var buyMeCoffeeCmd = &cobra.Command{
|
||||
Use: "coffee",
|
||||
Short: "Support the project by buying a coffee",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
fmt.Println(color.HiRedString(" ;)( ;"))
|
||||
fmt.Println(color.HiCyanString(" We Hope You Enjoy Our Product :----:"))
|
||||
fmt.Println(color.HiCyanString(" C|====|"))
|
||||
fmt.Println(color.HiCyanString(" | |"))
|
||||
fmt.Print(color.HiGreenString(" Support the project by buying a coffee: "))
|
||||
fmt.Print(color.BlueString("https://buymeacoffee.com/ehosinskiz "))
|
||||
fmt.Println(color.HiCyanString("`----'"))
|
||||
},
|
||||
}
|
||||
|
||||
// Helper functions to store API credentials
|
||||
func storeDehashedApiKey(key string) error {
|
||||
err := badger.StoreDehashedKey(key)
|
||||
|
||||
+6
-6
@@ -1,12 +1,12 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"dehasher/internal/debug"
|
||||
"dehasher/internal/export"
|
||||
"dehasher/internal/files"
|
||||
"dehasher/internal/pretty"
|
||||
"dehasher/internal/sqlite"
|
||||
"dehasher/internal/whois"
|
||||
"crowsnest/internal/debug"
|
||||
"crowsnest/internal/export"
|
||||
"crowsnest/internal/files"
|
||||
"crowsnest/internal/pretty"
|
||||
"crowsnest/internal/sqlite"
|
||||
"crowsnest/internal/whois"
|
||||
"fmt"
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"dehasher/cmd"
|
||||
"dehasher/internal/badger"
|
||||
"dehasher/internal/sqlite"
|
||||
"crowsnest/cmd"
|
||||
"crowsnest/internal/badger"
|
||||
"crowsnest/internal/sqlite"
|
||||
"fmt"
|
||||
"github.com/winking324/rzap"
|
||||
"go.uber.org/zap"
|
||||
|
||||
@@ -2,9 +2,9 @@ package dehashed
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"crowsnest/internal/debug"
|
||||
"crowsnest/internal/sqlite"
|
||||
"crypto/sha256"
|
||||
"dehasher/internal/debug"
|
||||
"dehasher/internal/sqlite"
|
||||
"encoding/hex"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package dehashed
|
||||
|
||||
import (
|
||||
"dehasher/internal/debug"
|
||||
"dehasher/internal/export"
|
||||
"dehasher/internal/sqlite"
|
||||
"crowsnest/internal/debug"
|
||||
"crowsnest/internal/export"
|
||||
"crowsnest/internal/sqlite"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"go.uber.org/zap"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package easyTime
|
||||
|
||||
import (
|
||||
"dehasher/internal/debug"
|
||||
"crowsnest/internal/debug"
|
||||
"fmt"
|
||||
"go.uber.org/zap"
|
||||
"os"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package export
|
||||
|
||||
import (
|
||||
"dehasher/internal/files"
|
||||
"dehasher/internal/sqlite"
|
||||
"crowsnest/internal/files"
|
||||
"crowsnest/internal/sqlite"
|
||||
"encoding/json"
|
||||
"encoding/xml"
|
||||
"errors"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package export
|
||||
|
||||
import (
|
||||
"dehasher/internal/files"
|
||||
"dehasher/internal/sqlite"
|
||||
"crowsnest/internal/files"
|
||||
"crowsnest/internal/sqlite"
|
||||
"encoding/json"
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package hunter_io
|
||||
|
||||
import (
|
||||
"dehasher/internal/debug"
|
||||
"dehasher/internal/sqlite"
|
||||
"crowsnest/internal/debug"
|
||||
"crowsnest/internal/sqlite"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"go.uber.org/zap"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package pretty
|
||||
|
||||
import (
|
||||
"dehasher/internal/sqlite"
|
||||
"crowsnest/internal/sqlite"
|
||||
"fmt"
|
||||
"github.com/charmbracelet/lipgloss"
|
||||
"github.com/charmbracelet/lipgloss/tree"
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
package sqlite
|
||||
|
||||
import (
|
||||
"dehasher/internal/files"
|
||||
"crowsnest/internal/files"
|
||||
"fmt"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type IString interface {
|
||||
String() string
|
||||
}
|
||||
|
||||
type DBOptions struct {
|
||||
Username string
|
||||
Email string
|
||||
|
||||
@@ -2,9 +2,9 @@ package whois
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"dehasher/internal/debug"
|
||||
"dehasher/internal/dehashed"
|
||||
"dehasher/internal/sqlite"
|
||||
"crowsnest/internal/debug"
|
||||
"crowsnest/internal/dehashed"
|
||||
"crowsnest/internal/sqlite"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
Reference in New Issue
Block a user