2023-05-19 09:55:41 +00:00
|
|
|
# 🔼 Subdomain Takeover
|
|
|
|
|
2023-06-20 07:38:37 +00:00
|
|
|
<figure><img src=".gitbook/assets/image (1) (1).png" alt=""><figcaption></figcaption></figure>
|
2023-05-19 09:55:41 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
#!/bin/sh
|
|
|
|
filename=$1
|
|
|
|
while read url; do
|
|
|
|
echo "Subfinder"
|
|
|
|
subfinder -d $url -o $url.txt
|
|
|
|
echo "Assetfinder"
|
|
|
|
assetfinder --subs-only $url | tee -a $url.txt
|
|
|
|
sort -u $url.txt -o $url.txt
|
|
|
|
echo "Subjack"
|
|
|
|
subjack -w $url.txt -o $url_takeover.txt
|
|
|
|
done < $filename
|
|
|
|
```
|
2023-06-29 10:56:23 +00:00
|
|
|
|
|
|
|
## Using nuclei for subdomain takeover
|
|
|
|
|
|
|
|
```
|
|
|
|
nuclei -l path/to/subdomains.txt -t /home/parrot/nuclei-templates-main/takeovers/detect-all-takeovers.yaml
|
|
|
|
```
|