-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubdomain.yaml
70 lines (54 loc) · 2.07 KB
/
subdomain.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# author: leadlife
# get subdomain from subfinder, crt.sh (tls), rapiddns, hackerone api, ksubdomain brute force, alterx gen, dnsx validation
vars:
DOMAIN: "domains.txt"
USAGE: "rayder -w subdomain-mutli.yaml DOMAIN=domains.txt"
parallel: false
modules:
- name: subfinder
silent: true
cmds:
- cat {{DOMAIN}} | subfinder -silent -all | anew subfinder_output.txt
- name: TLS
silent: true
cmds:
- cat {{DOMAIN}} | parallel -j 4 'curl -s "https://crt.sh/?q=%.{}&output=json"' | jq -r '.[].name_value' | anew tls_output.txt
- name: rapiddns
silent: true
cmds:
- cat {{DOMAIN}} | parallel -j 4 'rapiddns -s {}' | anew rapiddns_output.txt
- name: hackerone
silent: true
cmds:
- cat {{DOMAIN}} | parallel -j 4 'curl -s "https://api.hackertarget.com/hostsearch/?q={}"' | anew | morefind -d | tee hackerone_output.txt
# active brute force subdomain
- name: ksubdomain
silent: true
cmds:
- ksubdomain e -dl {{DOMAIN}} -f ~/wordlists/subdoamin.txt --only-domain -o ksubdomain_output.txt
- name: alterx
silent: true
cmds:
- cat {{DOMAIN}} | alterx -silent | anew alterx_output.txt
- name: organize
silent: true
cmds:
- cat subfinder_output.txt tls_output.txt rapiddns_output.txt hackerone_output.txt alterx_output.txt ksubdomain_output.txt | anew subdomain_output.txt
- name: dnsx
silent: true
cmds:
- cat subdomain_output.txt | dnsx -silent | tee subdomain_result.txt
- name: get cname for myself check
silent: true
cmds:
- cat subdomain_result.txt | while read domain;do dig $domain;done | tee -a digs.txt
- cat digs.txt | grep CNAME | tee cname_result.txt
- name: subzy takeover check
silent: true
cmds:
- subzy run --targets subdomain_result.txt | tee -a subzy_result.txt
- name: clear files
silent: true
cmds:
- rm -rf subfinder_output.txt tls_output.txt rapiddns_output.txt hackerone_output.txt ksubdomain_output.txt alterx_output.txt subdomain_output.txt digs.txt
# # result are similer demo.example.com