5 Commits

Author SHA1 Message Date
Evan Hosinski 84f3becdf2 Fixed root.go branding 2025-05-22 10:47:10 -04:00
KrakenTech a2358d0714 Update Makefile 2025-05-21 09:26:35 -04:00
Evan Hosinski ded3e4ae71 Altered Dehasher to CrowsNest
! WARNING !

This will break older versions of CrowsNest. The database file will no longer be compatible
2025-05-21 09:14:56 -04:00
Evan Hosinski fbe1eda8e9 Altered Dehasher to CrowsNest
! WARNING !

This will break older versions of CrowsNest. The database file will no longer be compatible
2025-05-21 09:12:20 -04:00
Evan Hosinski 63f302604f Changed output directory to be CrowsNest 2025-05-21 09:08:07 -04:00
8 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
# Makefile for Dehasher
# Makefile for CrowsNest
# Go command
GO=go
@@ -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.3.1")
VERSION=$(shell git describe --tags 2>/dev/null || echo "v1.3.3")
.PHONY: all clean build build-all
+1 -1
View File
@@ -39,7 +39,7 @@ go build crowsnest.go
CrowsNest supports two database storage options:
1. **Default Path** (default): Stores the database at `~/.local/share/crowsnest/db/dehashed.sqlite`
1. **Default Path** (default): Stores the database at `~/.local/share/crowsnest/db/crowsnest.sqlite`
2. **Local Path**: Stores the database in the current directory as `./crowsnest.sqlite`
The **Local Path** option allows for separate databases for different projects or engagements.
+1 -1
View File
@@ -77,7 +77,7 @@ var (
// Validate credentials
if key == "" {
fmt.Println("API key is required. Set the key with the \"set-key\" command. [dehasher set-key <api_key>]")
fmt.Println("API key is required. Set the key with the \"set-key\" command. [crowsnest set-key <api_key>]")
return
}
+3 -3
View File
@@ -16,8 +16,8 @@ var (
// rootCmd is the base command for the CLI.
rootCmd = &cobra.Command{
Use: "dehasher",
Short: `Dehasher is a cli tool for querying the dehashed api.`,
Use: "crowsnest",
Short: `CrowsNest is a cli tool for querying the common OSINT api's.`,
Long: fmt.Sprintf(
"%s\n",
`
@@ -94,7 +94,7 @@ var setHunterKeyCmd = &cobra.Command{
var setLocalDb = &cobra.Command{
Use: "local-db [true|false]",
Short: "Set dehasher to use a local database path instead of the default path",
Short: "Set crowsnest to use a local database path instead of the default path",
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
var useLocalDatabase bool
+1 -1
View File
@@ -59,7 +59,7 @@ var (
// Validate credentials
if key == "" {
fmt.Println("API key is required. Set the key with the \"set-key\" command. [dehasher set-key <api_key>]")
fmt.Println("API key is required. Set the key with the \"set-key\" command. [crowsnest set-key <api_key>]")
return
}
+2 -2
View File
@@ -21,7 +21,7 @@ var (
)
func init() {
basePath = filepath.Join(os.Getenv("HOME"), ".local", "share", "Dehasher")
basePath = filepath.Join(os.Getenv("HOME"), ".local", "share", "CrowsNest")
logPath = filepath.Join(basePath, "logs")
storePath = filepath.Join(basePath, "keystore")
// dbPath will be set in main() after badger is initialized
@@ -82,7 +82,7 @@ func main() {
useLocalDB := badger.GetUseLocalDB()
if useLocalDB {
// Use local database in current directory
dbPath = "./dehasher.sqlite"
dbPath = "./crowsnest.sqlite"
zap.L().Info("Using local database", zap.String("path", dbPath))
} else {
// Use default database path
+1 -1
View File
@@ -45,7 +45,7 @@ func GetHardwareEntropy() []byte {
username,
osInfo,
// You could add a static salt here for additional security
"Dehasher-static-salt-value",
"CrowsNest-static-salt-value",
}, ":")
// Hash the fingerprint to get a 32-byte key
+1 -1
View File
@@ -29,7 +29,7 @@ func InitDB(dbPath string) (*gorm.DB, error) {
zap.L().Error("Failed to create database directory", zap.Error(err))
return nil, fmt.Errorf("failed to create database directory: %w", err)
}
finalDbPath = filepath.Join(dbPath, "dehashed.sqlite")
finalDbPath = filepath.Join(dbPath, "crowsnest.sqlite")
} else {
// Treat as file path
// Ensure the directory exists