-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathhelper.py
57 lines (45 loc) · 1.95 KB
/
helper.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Import Modules
import json
import requests
__Name__ = "scancss"
__description__ = "scancss is a xss vulnariblity scanner tool."
__author__ = "Md. Nur habib"
__copyright__ = "Copyright 2022."
__license__ = "GNU v.20"
__version__ = "v1.0.1"
__email__ = "[email protected]"
# Style class
class Style:
reset = '\033[0m'
bold = '\033[01m'
underline = '\033[04m'
red = '\033[31m'
blue = '\033[34m'
cyan = '\033[36m'
lightgrey = '\033[37m'
darkgrey = '\033[90m'
yellow = '\033[93m'
agent = {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
line = "—————————————————"
def session(proxies, headers, cookie):
requestVariable = requests.Session()
requestVariable.proxies = proxies
requestVariable.headers = headers
requestVariable.cookies.update(json.loads(cookie))
return requestVariable
logo = f"""{Style.bold}{Style.yellow}
___ ___ ___ ___ ___ ___ ___
/\ \ /\ \ /\ \ /\__\ /\ \ /\ \ /\ \
/::\ \ /::\ \ /::\ \ /:| _|_ /::\ \ /::\ \ /::\ \
/\:\:\__\ /:/\:\__\ /::\:\__\ /::|/\__\ /:/\:\__\ /\:\:\__\ /\:\:\__\\
\:\:\/__/ \:\ \/__/ \/\::/ / \/|::/ / \:\ \/__/ \:\:\/__/ \:\:\/__/
\::/ / \:\__\ /:/ / |:/ / \:\__\ \::/ / \::/ /
\/__/ \/__/ \/__/ \/__/ \/__/ \/__/ \/__/ {Style.reset}{Style.red}{__version__}{Style.yellow}
𝓕𝓪𝓼𝓽𝓮𝓼𝓽 𝓣𝓸𝓸𝓵 𝓽𝓸 𝓯𝓲𝓷𝓭 𝓒𝓻𝓸𝓼𝓼 𝓼𝓲𝓽𝓮 𝓼𝓬𝓻𝓲𝓹𝓽𝓲𝓷𝓰.
======================================================
{Style.reset}{Style.darkgrey}
Author : Md. Nur Habib
Email : [email protected]{Style.reset} \n\n"""