Skip to content

Commit e37f2f6

Browse files
committed
Add optional flags
1 parent ae0dc37 commit e37f2f6

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

scripts/subdomain.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
import os
22
import sys
33

4-
protocol = sys.argv[1]
5-
domain = sys.argv[2]
4+
args = sys.argv
65

7-
cmd = f'ffuf -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-110000.txt -H "Host: FUZZ.{domain}" -fc 400,403 -fl 8 -u {protocol}://{domain}'
6+
protocol = args[1]
7+
domain = args[2]
8+
9+
if len(args) > 3:
10+
flags = " " + sys.argv[3]
11+
else:
12+
flags = ""
13+
14+
cmd = f'ffuf -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-110000.txt -H "Host: FUZZ.{domain}" -fc 400,403 -fl 8 -u {protocol}://{domain}{flags}'
815

916
print("Running: " + cmd)
1017
os.system(cmd)

0 commit comments

Comments
 (0)