Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
maurosoria
GitHub Repository: maurosoria/dirsearch
Path: blob/master/lib/core/data.py
896 views
1
# -*- coding: utf-8 -*-
2
# This program is free software; you can redistribute it and/or modify
3
# it under the terms of the GNU General Public License as published by
4
# the Free Software Foundation; either version 2 of the License, or
5
# (at your option) any later version.
6
#
7
# This program is distributed in the hope that it will be useful,
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
# GNU General Public License for more details.
11
#
12
# You should have received a copy of the GNU General Public License
13
# along with this program; if not, write to the Free Software
14
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15
# MA 02110-1301, USA.
16
#
17
# Author: Mauro Soria
18
19
from __future__ import annotations
20
21
from typing import Any
22
23
# we can't import `Dictionary` due to a circular import
24
blacklists: dict[int, Any] = {}
25
options: dict[str, Any] = {
26
"urls": [],
27
"urls_file": None,
28
"stdin_urls": None,
29
"cidr": None,
30
"raw_file": None,
31
"session_file": None,
32
"session_id": None,
33
"list_sessions": False,
34
"sessions_dir": None,
35
"config": None,
36
"wordlists": [],
37
"extensions": (),
38
"force_extensions": False,
39
"overwrite_extensions": False,
40
"exclude_extensions": (),
41
"prefixes": (),
42
"suffixes": (),
43
"uppercase": False,
44
"lowercase": False,
45
"capitalization": False,
46
"thread_count": 25,
47
"recursive": False,
48
"deep_recursive": False,
49
"force_recursive": False,
50
"recursion_depth": 0,
51
"recursion_status_codes": set(),
52
"filter_threshold": 0,
53
"subdirs": [],
54
"exclude_subdirs": [],
55
"include_status_codes": set(),
56
"exclude_status_codes": set(),
57
"exclude_sizes": set(),
58
"exclude_texts": None,
59
"exclude_regex": None,
60
"exclude_redirect": None,
61
"exclude_response": None,
62
"skip_on_status": set(),
63
"minimum_response_size": 0,
64
"maximum_response_size": 0,
65
"max_time": 0,
66
"target_max_time": 0,
67
"http_method": "GET",
68
"data": None,
69
"data_file": None,
70
"nmap_report": None,
71
"headers": {},
72
"headers_file": None,
73
"follow_redirects": False,
74
"random_agents": False,
75
"auth": None,
76
"auth_type": None,
77
"cert_file": None,
78
"key_file": None,
79
"user_agent": None,
80
"cookie": None,
81
"timeout": 10,
82
"delay": 0.0,
83
"proxies": [],
84
"proxies_file": None,
85
"proxy_auth": None,
86
"replay_proxy": None,
87
"tor": None,
88
"scheme": None,
89
"max_rate": 0,
90
"max_retries": 1,
91
"network_interface": None,
92
"ip": None,
93
"exit_on_error": False,
94
"crawl": False,
95
"async_mode": False,
96
"full_url": False,
97
"redirects_history": False,
98
"color": True,
99
"quiet": False,
100
"disable_cli": False,
101
"output_file": None,
102
"output_table": None,
103
"output_formats": None,
104
"mysql_url": None,
105
"postgres_url": None,
106
"log_file": None,
107
"log_file_size": 0
108
}
109
110