Skip to content

Commit 4ba2dfe

Browse files
authored
minor bug fixes and bump to 3.0.3
2 parents 755f2fb + 7d790fe commit 4ba2dfe

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
changes = '''detection of up to 66 WAFs'''
1+
changes = '''bug fixes;detection of up to 66 WAFs'''
22

33
defaultEditor = 'nano'
44
blindPayload = '' # your blind XSS payload

core/fuzzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def fuzzer(url, params, headers, GET, delay, timeout, WAF, encoding):
4040
limit -= 1
4141
sleep(1)
4242
try:
43-
requests.get(url, timeout=5, headers=headers)
43+
requester(url, params, headers, GET, 0, 10)
4444
print ('\n%s Pheww! Looks like sleeping for %s%i%s seconds worked!' % (good, green, (delay + 1) * 2), end)
4545
except:
4646
print ('\n%s Looks like WAF has blocked our IP Address. Sorry!' % bad)

xsstrike.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Just a fancy ass banner
88
print('''%s
9-
\tXSStrike %sv3.0.2
9+
\tXSStrike %sv3.0.3
1010
%s''' % (red, white, end))
1111

1212
try:
@@ -213,10 +213,10 @@ def singleTarget(target, paramData, verbose, encoding):
213213
print ('%s Efficiency: %i' % (info, bestEfficiency))
214214
print ('%s Confidence: %i' % (info, confidence))
215215

216-
def multiTargets(scheme, host, main_url, form, domURL, verbose, blindXSS, blindPayload):
216+
def multiTargets(scheme, host, main_url, form, domURL, verbose, blindXSS, blindPayload, headers, delay, timeout):
217217
signatures = set()
218218
if domURL and not skipDOM:
219-
response = requests.get(domURL).text
219+
response = requester(domURL, {}, headers, True, delay, timeout).text
220220
highlighted = dom(response)
221221
if highlighted:
222222
print ('%s Potentially vulnerable objects found at %s' % (good, domURL))
@@ -316,7 +316,7 @@ def bruteforcer(target, paramData, payloadList, verbose, encoding):
316316
for i in range(difference):
317317
domURLs.append(0)
318318
threadpool = concurrent.futures.ThreadPoolExecutor(max_workers=threadCount)
319-
futures = (threadpool.submit(multiTargets, scheme, host, main_url, form, domURL, verbose, blindXSS, blindPayload) for form, domURL in zip(forms, domURLs))
319+
futures = (threadpool.submit(multiTargets, scheme, host, main_url, form, domURL, verbose, blindXSS, blindPayload, headers, delay, timeout) for form, domURL in zip(forms, domURLs))
320320
for i, _ in enumerate(concurrent.futures.as_completed(futures)):
321321
if i + 1 == len(forms) or (i + 1) % threadCount == 0:
322322
print('%s Progress: %i/%i' % (info, i + 1, len(forms)), end='\r')

0 commit comments

Comments
 (0)