clarity.tools.xss_tools

 1from clarity.core import ClarityTool, ClarityToolsCollection
 2
 3class XSStrike(ClarityTool):
 4    TITLE = "XSStrike"
 5    DESCRIPTION = "XSStrike is a powerful XSS scanner written in Python 3."
 6    PROJECT_URL = "https://github.com/s0md3v/XSStrike"
 7
 8    INSTALL_COMMANDS = [
 9        "git clone https://github.com/s0md3v/XSStrike.git",
10        "cd XSStrike && pip3 install -r requirements.txt"
11    ]
12
13# les inputs sont la car le tool utilise des putain de parser et le tool aime pas ca !
14    def run(self):
15        self.before_run()
16        target = input("Give me the target: ")
17        threadCount = input("Give me the thread count: ")
18        crawl = input("Do you want to crawl? yes/no: ")
19        cookie = input("Give me the cookie: ")
20        proxy = input("Give me the proxy: ")
21        timeout = input("Give me the timeout: ")
22        user_agent = input("Give me the user agent: ")
23        level = input("Give me the level: ")
24        cmd = f"cd XSStrike && python3 xsstrike.py -u {target} -t {threadCount}"
25        if crawl == "yes":
26            cmd += " --crawl"
27        if cookie:
28            cmd += f" -c {cookie}"
29        if proxy:
30            cmd += f" -p {proxy}"
31        if timeout:
32            cmd += f" --timeout={timeout}"
33        if user_agent:
34            cmd += f" -A {user_agent}"
35        if level:
36            cmd += f" -l {level}"
37        os.system(cmd)
38        self.after_run()
39
40    if run == 'exit()':
41        os.system('python3 main.py') # <-- C'est tomporaire le temps que je trouve d'autres moyens de faire ça
42
43
44class XssTools(ClarityToolsCollection):
45    TITLE = "XSS Tools"
46    TOOLS = [
47        XSStrike()
48    ]
class XSStrike(clarity.core.ClarityTool):
 6class XSStrike(ClarityTool):
 7    TITLE = "XSStrike"
 8    DESCRIPTION = "XSStrike is a powerful XSS scanner written in Python 3."
 9    PROJECT_URL = "https://github.com/s0md3v/XSStrike"
10
11    INSTALL_COMMANDS = [
12        "git clone https://github.com/s0md3v/XSStrike.git",
13        "cd XSStrike && pip3 install -r requirements.txt"
14    ]
15
16# les inputs sont la car le tool utilise des putain de parser et le tool aime pas ca !
17    def run(self):
18        self.before_run()
19        target = input("Give me the target: ")
20        threadCount = input("Give me the thread count: ")
21        crawl = input("Do you want to crawl? yes/no: ")
22        cookie = input("Give me the cookie: ")
23        proxy = input("Give me the proxy: ")
24        timeout = input("Give me the timeout: ")
25        user_agent = input("Give me the user agent: ")
26        level = input("Give me the level: ")
27        cmd = f"cd XSStrike && python3 xsstrike.py -u {target} -t {threadCount}"
28        if crawl == "yes":
29            cmd += " --crawl"
30        if cookie:
31            cmd += f" -c {cookie}"
32        if proxy:
33            cmd += f" -p {proxy}"
34        if timeout:
35            cmd += f" --timeout={timeout}"
36        if user_agent:
37            cmd += f" -A {user_agent}"
38        if level:
39            cmd += f" -l {level}"
40        os.system(cmd)
41        self.after_run()
42
43    if run == 'exit()':
44        os.system('python3 main.py') # <-- C'est tomporaire le temps que je trouve d'autres moyens de faire ça
TITLE = 'XSStrike'
DESCRIPTION = 'XSStrike is a powerful XSS scanner written in Python 3.'
PROJECT_URL = 'https://github.com/s0md3v/XSStrike'
INSTALL_COMMANDS = ['git clone https://github.com/s0md3v/XSStrike.git', 'cd XSStrike && pip3 install -r requirements.txt']
def run(self):
17    def run(self):
18        self.before_run()
19        target = input("Give me the target: ")
20        threadCount = input("Give me the thread count: ")
21        crawl = input("Do you want to crawl? yes/no: ")
22        cookie = input("Give me the cookie: ")
23        proxy = input("Give me the proxy: ")
24        timeout = input("Give me the timeout: ")
25        user_agent = input("Give me the user agent: ")
26        level = input("Give me the level: ")
27        cmd = f"cd XSStrike && python3 xsstrike.py -u {target} -t {threadCount}"
28        if crawl == "yes":
29            cmd += " --crawl"
30        if cookie:
31            cmd += f" -c {cookie}"
32        if proxy:
33            cmd += f" -p {proxy}"
34        if timeout:
35            cmd += f" --timeout={timeout}"
36        if user_agent:
37            cmd += f" -A {user_agent}"
38        if level:
39            cmd += f" -l {level}"
40        os.system(cmd)
41        self.after_run()
class XssTools(clarity.core.ClarityToolsCollection):
47class XssTools(ClarityToolsCollection):
48    TITLE = "XSS Tools"
49    TOOLS = [
50        XSStrike()
51    ]
TITLE = 'XSS Tools'
TOOLS = [<XSStrike object>]