My-Methodologies/subdomain-takeover.md

24 lines
571 B
Markdown
Raw Permalink Normal View History

2023-05-19 09:55:41 +00:00
# 🔼 Subdomain Takeover
<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
```
## Using nuclei for subdomain takeover
```
nuclei -l path/to/subdomains.txt -t /home/parrot/nuclei-templates-main/takeovers/detect-all-takeovers.yaml
```