Add files via upload
This commit is contained in:
25
xsstrike.py
25
xsstrike.py
@@ -23,6 +23,7 @@ import copy
|
||||
import argparse
|
||||
import requests
|
||||
import webbrowser
|
||||
import concurrent.futures
|
||||
|
||||
import core.config
|
||||
from core.dom import dom
|
||||
@@ -178,16 +179,8 @@ def singleTarget(target, paramData):
|
||||
print ('%s Efficiency: %i' % (info, bestEfficiency))
|
||||
print ('%s Cofidence: %i' % (info, confidence))
|
||||
|
||||
if not args.recursive:
|
||||
singleTarget(target, paramData)
|
||||
else:
|
||||
print ('%s Crawling the target' % run)
|
||||
scheme = urlparse(target).scheme
|
||||
host = urlparse(target).netloc
|
||||
main_url = scheme + '://' + host
|
||||
forms = photon(target, headers, level)
|
||||
def multiTargets(scheme, host, main_url, form):
|
||||
signatures = set()
|
||||
for form in forms:
|
||||
for each in form.values():
|
||||
url = each['action']
|
||||
if url:
|
||||
@@ -233,3 +226,17 @@ else:
|
||||
pass
|
||||
except Exception as e:
|
||||
print ('%s Error: %s' % (bad, e))
|
||||
|
||||
|
||||
if not args.recursive:
|
||||
singleTarget(target, paramData)
|
||||
else:
|
||||
print ('%s Crawling the target' % run)
|
||||
scheme = urlparse(target).scheme
|
||||
host = urlparse(target).netloc
|
||||
main_url = scheme + '://' + host
|
||||
forms = photon(target, headers, level)
|
||||
threadpool = concurrent.futures.ThreadPoolExecutor(max_workers=10)
|
||||
futures = (threadpool.submit(multiTargets, scheme, host, main_url, form) for form in forms)
|
||||
for i, _ in enumerate(concurrent.futures.as_completed(futures)):
|
||||
pass
|
||||
Reference in New Issue
Block a user