Update Recon.md

This commit is contained in:
Mehdi 2023-08-31 12:53:56 +03:30 committed by GitHub
parent c735f9348b
commit 98dfad7269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,28 @@ nuclei -l js.txt -t ~/nuclei-templates/exposures/ -o js_exposures_results.txt
``` ```
* [Hakrawler](https://github.com/hakluke/hakrawler)
web crawler for gathering URLs and JavaScript file locations
```bash
# Normal Install
go install github.com/hakluke/hakrawler@latest
# Single URL
echo https://google.com | hakrawler
# Multiple URLs
cat urls.txt | hakrawler
# Include subdomains
echo https://google.com | hakrawler -subs
# Get all subdomains of google, find the ones that respond to http(s), crawl them all
echo google.com | haktrails subdomains | httpx | hakrawler
```
### ASNs ### ASNs
```bash ```bash
@ -65,7 +87,7 @@ Did you know that we can find related domains and sub domains to our target by l
Simply said, favihash will allow us to discover domains that have the same favicon icon hash as our target. Simply said, favihash will allow us to discover domains that have the same favicon icon hash as our target.
* https://github.com/m4ll0k/Bug-Bounty-Toolz/blob/master/favihash.py * [favihash](https://github.com/m4ll0k/Bug-Bounty-Toolz/blob/master/favihash.py)
```bash ```bash
cat my_targets.txt | xargs -I %% bash -c 'echo "http://%%/favicon.ico"' > targets.txt cat my_targets.txt | xargs -I %% bash -c 'echo "http://%%/favicon.ico"' > targets.txt
@ -348,8 +370,11 @@ Exposed wp-config.php files containing database credentials.
# Install # Install
go get -u github.com/tomnomnom/assetfinder go get -u github.com/tomnomnom/assetfinder
# Usage # Usage (find only the subdomains associated)
assetfinder [--subs-only] <domain> assetfinder --subs-only domain.com
# Find both subdomains and domains associated
assetfinder domain.com
``` ```
@ -386,11 +411,6 @@ amass enum -d tesla.com | grep tesla.com # To just list subdomains
# Subfinder, use -silent to only have subdomains in the output # Subfinder, use -silent to only have subdomains in the output
./subfinder-linux-amd64 -d tesla.com [-silent] ./subfinder-linux-amd64 -d tesla.com [-silent]
```
* [assetfinder](https://github.com/tomnomnom/assetfinder)
```bash
assetfinder --subs-only <domain>
``` ```
* [crt.sh](https://crt.sh/) * [crt.sh](https://crt.sh/)
@ -407,9 +427,14 @@ crt tesla.com
* [massdns](https://github.com/blechschmidt/massdns) * [massdns](https://github.com/blechschmidt/massdns)
```bash ```bash
sed 's/$/.domain.com/' subdomains.txt > bf-subdomains.txt sed 's/$/.domain.com/' subdomains.txt > bf-subdomains.txt
./massdns -r resolvers.txt -w /tmp/results.txt bf-subdomains.txt massdns -r resolvers.txt -w /tmp/results.txt bf-subdomains.txt
grep -E "tesla.com. [0-9]+ IN A .+" /tmp/results.txt grep -E "tesla.com. [0-9]+ IN A .+" /tmp/results.txt
# running assetfinder tool for subdomains and massDNS tool for resolving
assetfinder domain.com subs-only | massdns -r resolvers.txt -o S -w resolved.txt
``` ```
* [gobuster](https://github.com/OJ/gobuster) * [gobuster](https://github.com/OJ/gobuster)
```bash ```bash
@ -423,6 +448,9 @@ shuffledns is a wrapper around massdns, written in go, that allows you to enumer
```bash ```bash
shuffledns -d example.com -list example-subdomains.txt -r resolvers.txt shuffledns -d example.com -list example-subdomains.txt -r resolvers.txt
# subdomains found passively by subfinder and resolves them with shuffledns returning only the unique and valid subdomains
subfinder -d example.com | shuffledns -d example.com -r resolvers.txt
``` ```
* [puredns](https://github.com/d3mondev/puredns) * [puredns](https://github.com/d3mondev/puredns)
@ -436,6 +464,10 @@ puredns bruteforce all.txt domain.com
```bash ```bash
cat subdomains.txt | dnsgen - cat subdomains.txt | dnsgen -
# Combination with massdns
cat domains.txt | dnsgen - | massdns -r /path/to/resolvers.txt -t A -o J --flush 2>/dev/null
``` ```
### VHosts / Virtual Hosts ### VHosts / Virtual Hosts
* OSINT * OSINT