-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathenlarge_xss_payloads.py
28 lines (27 loc) · 1.13 KB
/
enlarge_xss_payloads.py
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
import string
import random
with open("xss.txt") as f:
lines = f.readlines()
for count, i in enumerate(lines):
if count % 100 == 0:
print("[%.3f]" % (100*count/len(lines)))
if "SCRIPT" in i:
lines.append(i.replace("SCRIPT", "script"))
lines.append(i.replace("SCRIPT", "sCript"))
lines.append(i.replace("SCRIPT", "scriPt"))
lines.append(i.replace("SCRIPT", "scripT"))
lines.append(i.replace("SCRIPT", "SCript"))
lines.append(i.replace("SCRIPT", "scrIPT"))
lines.append(i.replace("SCRIPT", "SCIipt"))
lines.append(i.replace("SCRIPT", "sCRIPT"))
if "XSS" in i:
for j in range(50):
N = random.randint(1,30)
s = ''.join(random.choices(string.ascii_uppercase + string.ascii_lowercase + string.digits, k=N))
lines.append(i.replace("XSS", s))
if "icconsult" in i:
for j in range(50):
N = random.randint(1,30)
s = ''.join(random.choices(string.ascii_uppercase + string.ascii_lowercase + string.digits, k=N))
lines.append(i.replace("icconsult", s))
open("xss.txt", "w").writelines(lines)