mirror of
https://github.com/xalgord/My-Methodologies.git
synced 2024-11-25 05:00:20 +00:00
23 lines
571 B
Markdown
23 lines
571 B
Markdown
# 🔼 Subdomain Takeover
|
|
|
|
<figure><img src=".gitbook/assets/image (1) (1).png" alt=""><figcaption></figcaption></figure>
|
|
|
|
```
|
|
#!/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
|
|
```
|