2025-05-17 10:37:04 -04:00
|
|
|
|
<div align="center">
|
|
|
|
|
|
<img src=.img/crowsnest.png style="width: 500px; height: auto" alt="Ar1ste1a" title="CrowsNest Logo">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2025-05-17 10:40:51 -04:00
|
|
|
|
### A CLI tool for seamless interaction with the Dehashed and Hunter.io APIs.
|
2025-05-14 22:00:38 -04:00
|
|
|
|
|
2025-05-15 21:11:24 -04:00
|
|
|
|
---
|
2025-05-14 22:00:38 -04:00
|
|
|
|
|
2025-05-15 21:11:24 -04:00
|
|
|
|
## 🌟 Features
|
|
|
|
|
|
- **Output Format Control**: JSON, YAML, XML, and TEXT support.
|
|
|
|
|
|
- **Regex & Wildcard Matching**: Flexible query options.
|
|
|
|
|
|
- **Local Database Storage**: Default or custom paths.
|
|
|
|
|
|
- **Database Querying**: Raw SQL and filtered queries.
|
|
|
|
|
|
- **Enhanced Logging**: Easy log parsing and rotation.
|
|
|
|
|
|
- **Error Handling**: Intelligent API error management.
|
|
|
|
|
|
- **WhoIs Lookups**: Domain, IP, MX, NS, and more.
|
|
|
|
|
|
- **Subdomain Scanning**: Identify subdomains.
|
|
|
|
|
|
- **Robust Logging**: Detailed logs for debugging.
|
|
|
|
|
|
- **API Key Management**: Securely store and manage API keys.
|
|
|
|
|
|
- **Formatted Output**: Easy to read and understand.
|
|
|
|
|
|
- **Intuitive Database Querying**: Query for specific information.
|
2025-05-17 10:40:51 -04:00
|
|
|
|
- **Person and Company Enrichment**: Retrieve detailed information about people and companies.
|
|
|
|
|
|
- **Email Verification**: Verify the existence and quality of email addresses.
|
2025-05-14 22:00:38 -04:00
|
|
|
|
|
2025-05-15 21:11:24 -04:00
|
|
|
|
---
|
|
|
|
|
|
|
2025-05-15 21:14:57 -04:00
|
|
|
|
## 🔰 Getting Started
|
2025-05-14 22:00:38 -04:00
|
|
|
|
|
|
|
|
|
|
To begin, clone the repository
|
|
|
|
|
|
``` bash-session
|
2025-05-17 10:37:04 -04:00
|
|
|
|
git clone https://github.com/Ar1ste1a/CrowsNest.git
|
|
|
|
|
|
cd crowsnest
|
|
|
|
|
|
go build crowsnest.go
|
2025-05-14 22:00:38 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
2025-05-17 10:37:04 -04:00
|
|
|
|
---
|
2025-05-15 21:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
## 🗄️ Database Configuration
|
2025-05-15 15:48:11 -04:00
|
|
|
|
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest supports two database storage options:
|
2025-05-15 15:48:11 -04:00
|
|
|
|
|
2025-05-17 10:37:04 -04:00
|
|
|
|
1. **Default Path** (default): Stores the database at `~/.local/share/crowsnest/db/dehashed.sqlite`
|
|
|
|
|
|
2. **Local Path**: Stores the database in the current directory as `./crowsnest.sqlite`
|
2025-05-15 15:48:11 -04:00
|
|
|
|
|
2025-05-15 21:11:24 -04:00
|
|
|
|
The **Local Path** option allows for separate databases for different projects or engagements.
|
|
|
|
|
|
|
2025-05-15 15:48:11 -04:00
|
|
|
|
To configure the database location:
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
# Use local database in current directory
|
2025-05-17 10:37:04 -04:00
|
|
|
|
./crowsnest set-local-db true
|
2025-05-15 15:48:11 -04:00
|
|
|
|
|
|
|
|
|
|
# Use default database path
|
2025-05-17 10:37:04 -04:00
|
|
|
|
./crowsnest set-local-db false
|
2025-05-15 15:48:11 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
2025-05-17 10:37:04 -04:00
|
|
|
|
---
|
2025-05-15 15:48:11 -04:00
|
|
|
|
|
2025-05-17 10:40:51 -04:00
|
|
|
|
## Dehashed
|
|
|
|
|
|
|
|
|
|
|
|
###️ Initial Setup
|
|
|
|
|
|
|
|
|
|
|
|
CrowsNest requires an API key from Dehashed. Set it up with:
|
|
|
|
|
|
```bash
|
|
|
|
|
|
ar1ste1a@kali:~$ crowsnest set-dehashed <redacted>
|
|
|
|
|
|
```
|
2025-05-15 15:48:11 -04:00
|
|
|
|
|
2025-05-15 21:11:24 -04:00
|
|
|
|
### Simple Query
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest can be used simply for example to query for credentials matching a given email domain.
|
2025-05-14 22:00:38 -04:00
|
|
|
|
``` go
|
2025-05-16 20:48:53 -04:00
|
|
|
|
# Provide credentials for domains matching target.com
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest api -D target.com -C
|
2025-05-14 22:00:38 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
2025-05-15 21:11:24 -04:00
|
|
|
|
### Simple Credentials Query
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest can also be used to return only credentials for a given query.
|
2025-05-14 22:00:38 -04:00
|
|
|
|
``` go
|
|
|
|
|
|
# Provide credentials for emails matching @target.com
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest api -E @target.com -C
|
2025-05-14 22:00:38 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
2025-05-15 21:11:24 -04:00
|
|
|
|
### Multiple Match Query
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest is capable of handling multiple queries for the same field.
|
2025-05-15 21:11:24 -04:00
|
|
|
|
This is useful for when you want to search for multiple domains, or multiple usernames.
|
2025-05-14 22:00:38 -04:00
|
|
|
|
``` go
|
2025-05-16 20:48:53 -04:00
|
|
|
|
# Provide credentials for domains matching target.com and target2.com, retrieving only credentials
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest api -D target.com,target2.com -C
|
2025-05-14 22:00:38 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
2025-05-15 21:11:24 -04:00
|
|
|
|
### Wildcard Query
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest is capable of handling wildcard queries.
|
2025-05-15 21:11:24 -04:00
|
|
|
|
A wildcard query cannot begin with a wildcard.
|
|
|
|
|
|
This is a limitation of the Dehashed API.
|
|
|
|
|
|
An asterisk can be used to denote multiple characters, and a question mark can be used to denote a single character.
|
2025-05-16 15:47:11 -04:00
|
|
|
|

|
2025-05-14 22:00:38 -04:00
|
|
|
|
``` go
|
2025-05-15 21:11:24 -04:00
|
|
|
|
# Provide credentials for emails matching @target.com and @target2.com
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest api -E @target?.com -C -W
|
2025-05-14 22:00:38 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
2025-05-16 20:48:53 -04:00
|
|
|
|
### Email Query
|
|
|
|
|
|
Dehashed has dictated that emails should be searched in the following format:
|
|
|
|
|
|
`email:target.name&domain:target.com`.
|
|
|
|
|
|
As such, to query an email, please use the following format (note, wildcard is not required but can be useful):
|
|
|
|
|
|
``` go
|
|
|
|
|
|
# Provide credentials for emails matching target.*@target.com
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest api -W -E 'target*' -D target.com
|
2025-05-16 20:48:53 -04:00
|
|
|
|
```
|
|
|
|
|
|
You may also query the domain and find emails as well
|
|
|
|
|
|
``` go
|
|
|
|
|
|
# Provide credentials for emails matching target.com
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest api -D target.com -C
|
2025-05-16 20:48:53 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
2025-05-15 21:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
### Regex Query
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest is capable of handling regex queries.
|
2025-05-15 21:11:24 -04:00
|
|
|
|
Simply denote regex queries with the `-R` flag.
|
|
|
|
|
|
Place all regex queries in quotes with the corresponding query flag in single quotes.
|
2025-05-14 22:00:38 -04:00
|
|
|
|
``` go
|
2025-05-15 21:11:24 -04:00
|
|
|
|
# Return matches for emails matching this given regex query
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest api -R -E '[a-zA-Z0-9]+(?:\.[a-zA-Z0-9]+)?@target.com'
|
2025-05-14 22:00:38 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
2025-05-15 21:11:24 -04:00
|
|
|
|
### Output Text (default JSON)
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest is capable of handling output formats.
|
2025-05-15 21:11:24 -04:00
|
|
|
|
The default output format is JSON.
|
|
|
|
|
|
To change the output format, use the `-f` flag.
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest currently supports JSON, YAML, XML, and TEXT output formats.
|
2025-05-14 22:00:38 -04:00
|
|
|
|
``` go
|
|
|
|
|
|
# Return matches for usernames exactly matching "admin" and write to text file 'admins_file.txt'
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest api -U admin -o admins_file -f txt
|
2025-05-14 22:00:38 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
2025-05-16 20:48:53 -04:00
|
|
|
|
---
|
2025-05-15 21:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
## 🌐 WhoIs Lookups
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest supports WHOIS lookups, history searches, reverse WHOIS searches, IP lookups, MX lookups, NS lookups, and subdomain scans.
|
2025-05-15 21:11:24 -04:00
|
|
|
|
The WhoIs Lookups require a separate API Credit from the Dehashed API.
|
|
|
|
|
|
|
|
|
|
|
|
### Domain Lookup
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest can perform a domain lookup for a given domain.
|
2025-05-16 15:47:11 -04:00
|
|
|
|
This provides a tree view of the domain's WHOIS information.
|
|
|
|
|
|

|
2025-05-15 21:11:24 -04:00
|
|
|
|
```bash
|
|
|
|
|
|
# Perform a WHOIS lookup for example.com
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest whois -d example.com
|
2025-05-14 22:00:38 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
2025-05-15 21:11:24 -04:00
|
|
|
|
### History Lookup
|
|
|
|
|
|
History Lookups require 25 credits.
|
|
|
|
|
|
This is a Dehashed API limitation.
|
2025-05-16 15:47:11 -04:00
|
|
|
|
The history lookup is immediately written to file and not displayed in the terminal or stored in the database.
|
2025-05-15 21:11:24 -04:00
|
|
|
|
```bash
|
|
|
|
|
|
# Perform a WHOIS history search for example.com
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest whois -d example.com -H
|
2025-05-15 21:11:24 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Reverse WHOIS Lookup
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest can perform a reverse WHOIS lookup for given criteria.
|
2025-05-16 15:47:11 -04:00
|
|
|
|
This provides a list of all domains that match the given query.
|
|
|
|
|
|
The reverse WHOIS lookup is immediately written to file and not displayed in the terminal or stored in the database.
|
2025-05-15 21:11:24 -04:00
|
|
|
|
```bash
|
|
|
|
|
|
# Perform a reverse WHOIS lookup for example.com
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest whois -I example.com
|
2025-05-15 21:11:24 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### IP Lookup
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest can perform a reverse IP lookup for a given IP address.
|
2025-05-16 15:47:11 -04:00
|
|
|
|
This provides a list of all domains that match the given query.
|
|
|
|
|
|

|
2025-05-15 21:11:24 -04:00
|
|
|
|
```bash
|
|
|
|
|
|
# Perform a reverse IP lookup for 8.8.8.8
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest whois -i 8.8.8.8
|
2025-05-15 21:11:24 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### MX Lookup
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest can perform an MX lookup for a given MX hostname.
|
2025-05-16 15:47:11 -04:00
|
|
|
|
This provides a list of all domains that match the given query.
|
|
|
|
|
|

|
2025-05-15 21:11:24 -04:00
|
|
|
|
```bash
|
|
|
|
|
|
# Perform a reverse MX lookup for google.com
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest whois -m google.com
|
2025-05-15 21:11:24 -04:00
|
|
|
|
```
|
|
|
|
|
|
### NS Lookup
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest can perform an NS lookup for a given NS hostname.
|
2025-05-16 15:47:11 -04:00
|
|
|
|
This provides a list of all domains that match the given query.
|
|
|
|
|
|
The picture below also includes the --debug global flag.
|
|
|
|
|
|

|
2025-05-15 21:11:24 -04:00
|
|
|
|
```bash
|
|
|
|
|
|
# Perform a reverse NS lookup for google.com
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest whois -n google.com
|
2025-05-14 22:00:38 -04:00
|
|
|
|
```
|
2025-05-15 21:11:24 -04:00
|
|
|
|
### Subdomain Scan
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest can perform a subdomain scan for a given domain.
|
2025-05-16 15:47:11 -04:00
|
|
|
|
This provides a list of all subdomains that match the given query.
|
|
|
|
|
|

|
2025-05-15 21:11:24 -04:00
|
|
|
|
```bash
|
|
|
|
|
|
# Perform a WHOIS subdomain scan for google.com
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest whois -d google.com -s
|
2025-05-15 21:11:24 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
2025-05-16 15:47:11 -04:00
|
|
|
|
---
|
2025-05-15 21:11:24 -04:00
|
|
|
|
|
2025-05-16 23:46:55 -04:00
|
|
|
|
## 🌐 Hunter.io
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest supports Hunter.io lookups.
|
2025-05-16 23:46:55 -04:00
|
|
|
|
Hunter.io lookups require a separate API Key from the Dehashed API.
|
|
|
|
|
|
This can be set using the `set-hunter` command.
|
|
|
|
|
|
```bash
|
|
|
|
|
|
# Set the Hunter.io API key
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest set-hunter <redacted>
|
2025-05-16 23:46:55 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Domain Search
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest can perform a domain search for a given domain.
|
2025-05-17 10:00:59 -04:00
|
|
|
|
This provides information about company including a description, social media information and any technologies in use.
|
2025-05-16 23:46:55 -04:00
|
|
|
|

|
|
|
|
|
|
```bash
|
|
|
|
|
|
# Perform a Hunter.io domain search for example.com
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest hunter -d example.com -D
|
2025-05-16 23:46:55 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Email Finder
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest can perform an email finder search for a given domain, first name, and last name.
|
2025-05-17 10:00:59 -04:00
|
|
|
|
This provides information about a user including a confidence score, and any social media accounts linked to a first name, last name and email.
|
2025-05-16 23:46:55 -04:00
|
|
|
|

|
|
|
|
|
|
```bash
|
|
|
|
|
|
# Perform a Hunter.io email finder search for example.com
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest hunter -d example.com -F John -L Doe -E
|
2025-05-16 23:46:55 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Email Verification
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest can perform an email verification search for a given email.
|
2025-05-17 10:00:59 -04:00
|
|
|
|
This provides a verification and score of a given email address.
|
2025-05-17 00:01:48 -04:00
|
|
|
|

|
2025-05-16 23:46:55 -04:00
|
|
|
|
```bash
|
|
|
|
|
|
# Perform a Hunter.io email verification search for example@target.com
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest hunter -e example@target.com -V
|
2025-05-16 23:46:55 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Company Enrichment
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest can perform a company enrichment search for a given domain.
|
2025-05-17 10:00:59 -04:00
|
|
|
|
This provides information about a company given its domain.
|
2025-05-17 00:01:48 -04:00
|
|
|
|

|
2025-05-16 23:46:55 -04:00
|
|
|
|
```bash
|
|
|
|
|
|
# Perform a Hunter.io company enrichment search for example.com
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest hunter -d example.com -C
|
2025-05-16 23:46:55 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Person Enrichment
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest can perform a person enrichment search for a given email.
|
2025-05-17 10:00:59 -04:00
|
|
|
|
This provides information about a user given an email address..
|
2025-05-17 00:01:48 -04:00
|
|
|
|

|
2025-05-16 23:46:55 -04:00
|
|
|
|
```bash
|
|
|
|
|
|
# Perform a Hunter.io person enrichment search for example@target.com
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest hunter -e example@target.com -P
|
2025-05-16 23:46:55 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Combined Enrichment
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest can perform a combined enrichment search for a given email.
|
2025-05-17 10:00:59 -04:00
|
|
|
|
This is a combination of the company and person enrichments given an email address.
|
2025-05-17 00:01:48 -04:00
|
|
|
|

|
|
|
|
|
|

|
2025-05-16 23:46:55 -04:00
|
|
|
|
```bash
|
|
|
|
|
|
# Perform a Hunter.io combined enrichment search for example@target.com
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest hunter -e example@target.com -B
|
2025-05-16 23:46:55 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
---
|
2025-05-15 21:11:24 -04:00
|
|
|
|
## 📊 Database Querying
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest stores query results in a local database.
|
2025-05-15 21:11:24 -04:00
|
|
|
|
This database can be queried for previous results.
|
2025-05-16 20:50:43 -04:00
|
|
|
|
This is useful for when you want to query for specific information.
|
2025-05-15 21:11:24 -04:00
|
|
|
|
This database also includes WhoIs Information and Subdomain Scan results, but does **not** include historical lookups.
|
|
|
|
|
|
|
|
|
|
|
|
## Simple Query
|
2025-05-16 20:48:53 -04:00
|
|
|
|
#### It's possible to query the database using shorthand and without knowing any SQL at all.
|
|
|
|
|
|
#### The following queries the results table where username is not null, only showing the username, email and password columns.
|
2025-05-15 21:22:21 -04:00
|
|
|
|

|
2025-05-16 20:48:53 -04:00
|
|
|
|
#### You may also add in a simple query using the `-q` flag. The following displays a 'LIKE' clause on the email column.
|
|
|
|
|
|
#### Note the '%\<clause\>%' is still required.
|
|
|
|
|
|

|
2025-05-16 20:51:29 -04:00
|
|
|
|
|
2025-05-15 21:11:24 -04:00
|
|
|
|
```bash
|
|
|
|
|
|
# Query the database for all results containing the word 'admin' in the username
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest query -t results -q "username LIKE '%admin%'"
|
2025-05-15 21:11:24 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Raw SQL Queries
|
2025-05-15 21:22:21 -04:00
|
|
|
|

|
2025-05-15 21:11:24 -04:00
|
|
|
|
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest also supports raw SQL queries. This is useful for when you want to query for specific information.
|
2025-05-15 21:11:24 -04:00
|
|
|
|
```bash
|
|
|
|
|
|
# Query the database for all results containing the word 'admin' in the username
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest query -r "SELECT * FROM results WHERE username LIKE '%admin%'"
|
2025-05-15 21:11:24 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Query Options
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest supports a number of query options. These options can be used to filter the results of a query.
|
2025-05-15 21:11:24 -04:00
|
|
|
|
```bash
|
|
|
|
|
|
# Query the database for all results containing the word 'admin' in the username
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest query -t results -q "username LIKE '%admin%'" -n username,email,password
|
2025-05-15 21:11:24 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Listing Tables and Columns
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest supports listing all available tables and columns.
|
2025-05-15 21:11:24 -04:00
|
|
|
|
This is useful for when you want to query for specific information.
|
|
|
|
|
|
```bash
|
|
|
|
|
|
# List all available tables and columns
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest query -a
|
2025-05-15 21:11:24 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
The current tables available for query are:
|
|
|
|
|
|
- results
|
2025-05-16 16:29:33 -04:00
|
|
|
|
- Results from a dehashed query
|
2025-05-15 21:11:24 -04:00
|
|
|
|
- creds
|
2025-05-16 16:29:33 -04:00
|
|
|
|
- Credentials parsed from dehashed results
|
2025-05-15 21:11:24 -04:00
|
|
|
|
- whois
|
2025-05-16 16:29:33 -04:00
|
|
|
|
- Results from a whois record lookup
|
2025-05-15 21:11:24 -04:00
|
|
|
|
- subdomains
|
2025-05-16 16:29:33 -04:00
|
|
|
|
- Subdomains discovered in a whois subdomain scan
|
2025-05-15 21:11:24 -04:00
|
|
|
|
- runs
|
2025-05-16 16:29:33 -04:00
|
|
|
|
- Previous query runs to the dehashed API
|
|
|
|
|
|
- lookup
|
|
|
|
|
|
- Results of any Whois NS, MX, or IP lookup
|
2025-05-16 23:46:55 -04:00
|
|
|
|
- hunter_domain
|
|
|
|
|
|
- Results from a hunter.io domain search
|
|
|
|
|
|
- hunter_email
|
|
|
|
|
|
- Results extracted from a domain saerch and email finder.
|
2025-05-15 21:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
# Exporting Results
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest supports exporting results to a file.
|
2025-05-15 21:11:24 -04:00
|
|
|
|
This is useful for when you want to requery for specific information without touching the Dehashed API.
|
|
|
|
|
|
The export subcommand supports all the same options as the query subcommand.
|
|
|
|
|
|
The export subcommand also supports file naming and output format control.
|
|
|
|
|
|
```bash
|
|
|
|
|
|
# Export all results containing the word 'admin' in the username to a text file
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest export -t results -q "username LIKE '%admin%'" -o admins_file -f txt
|
2025-05-15 21:11:24 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## 🐛 Debugging
|
|
|
|
|
|
|
2025-05-17 10:37:04 -04:00
|
|
|
|
CrowsNest uses the `zap` logging library for logging. The logs are stored in `~/.local/share/crowsnest/logs`.
|
|
|
|
|
|
The logs can be easily queried from the crowsnest CLI.
|
2025-05-16 20:21:36 -04:00
|
|
|
|
|
|
|
|
|
|
### Logs Dates
|
2025-05-17 10:37:04 -04:00
|
|
|
|
#### crowsnest utilized 'easy time' to determine the appropriate time for a given query.
|
2025-05-16 20:21:36 -04:00
|
|
|
|

|
|
|
|
|
|
#### You may also used dates mixed with easy time to perform queries.
|
2025-05-16 20:54:16 -04:00
|
|
|
|

|
2025-05-16 20:21:36 -04:00
|
|
|
|
#### The following formats are supported:
|
|
|
|
|
|
- `last 24 hours`
|
|
|
|
|
|
- `last 2 days`
|
|
|
|
|
|
- `30 minutes ago`
|
|
|
|
|
|
- `45 seconds ago`
|
|
|
|
|
|
- `1 week ago`
|
|
|
|
|
|
- `05-01-2025`
|
|
|
|
|
|
- `05/01/2025`
|
|
|
|
|
|
- `05/01/25`
|
|
|
|
|
|
- `05-01-25`
|
|
|
|
|
|
- `May 01, 2025`
|
|
|
|
|
|
|
2025-05-16 20:53:53 -04:00
|
|
|
|
```bash
|
|
|
|
|
|
# Show the last 10 logs
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest logs -l 10
|
2025-05-16 20:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
# Show logs from the last 24 hours
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest logs -s "last 24 hours"
|
2025-05-16 20:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
# Show logs from the last 24 hours with a severity of error or fatal
|
2025-05-17 10:37:04 -04:00
|
|
|
|
crowsnest logs -s "05-01-2025" -v error,fatal
|
2025-05-16 20:53:53 -04:00
|
|
|
|
```
|
|
|
|
|
|
|
2025-05-15 21:11:24 -04:00
|
|
|
|
## 🎉 Sample Run
|
|
|
|
|
|
```bash
|
2025-05-17 10:37:04 -04:00
|
|
|
|
ar1ste1a@kali:~$ crowsnest api -D <redacted>.com -o <redacted> -f json
|
2025-05-15 21:11:24 -04:00
|
|
|
|
Making 3 Requests for 10000 Records (30000 Total)
|
|
|
|
|
|
[*] Querying Dehashed API...
|
|
|
|
|
|
[*] Performing Request...
|
|
|
|
|
|
[+] Retrieved 2740 Records
|
|
|
|
|
|
[-] Not Enough Entries, ending queries
|
|
|
|
|
|
[+] Discovered 10 Credentials
|
|
|
|
|
|
[*] Writing entries to file: <redacted>.json
|
|
|
|
|
|
[*] Success
|
|
|
|
|
|
[*] Completing Process
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## 🤝 Contributing
|
2025-05-17 10:37:04 -04:00
|
|
|
|
Contributions are welcome! Submit a pull request to help improve CrowsNest.
|
2025-05-15 21:11:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div align="center">
|
|
|
|
|
|
<img src="https://img.wanman.io/fUSu0/jUtovIFE52.png/raw" style="width: 350px; height: auto" alt="Ar1ste1a" title="Ar1ste1a Offensive Security">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
## **Release The Kraken**
|