Cloudflare Bypass Mode

This commit is contained in:
Soxoj
2025-03-22 18:42:08 +01:00
parent b8cf91cc8b
commit 5381a134f0
3 changed files with 29 additions and 1 deletions
+6
View File
@@ -254,6 +254,12 @@ def setup_arguments_parser(settings: Settings):
default=settings.domain_search, default=settings.domain_search,
help="Enable (experimental) feature of checking domains on usernames.", help="Enable (experimental) feature of checking domains on usernames.",
) )
parser.add_argument(
"--cloudflare-bypass",
action="store_true",
default=settings.cloudflare_bypass,
help="Enable Cloudflare bypass (edit settings.json to configure)",
)
filter_group = parser.add_argument_group( filter_group = parser.add_argument_group(
'Site filtering', 'Options to set site search scope' 'Site filtering', 'Options to set site search scope'
+12 -1
View File
@@ -54,5 +54,16 @@
"graph_report": false, "graph_report": false,
"pdf_report": false, "pdf_report": false,
"html_report": false, "html_report": false,
"web_interface_port": 5000 "web_interface_port": 5000,
"cloudflare_bypass": {
"enabled": true,
"module": "cloudscraper",
"modules": [
{
"name": "chrome_webgate",
"method": "url_rewrite",
"url": "http://localhost:8000/html?url={url}&retries=1"
}
]
}
} }
+11
View File
@@ -45,6 +45,17 @@ DEFAULT_ARGS: Dict[str, Any] = {
'web': None, 'web': None,
'with_domains': False, 'with_domains': False,
'xmind': False, 'xmind': False,
'cloudflare_bypass': {
"enabled": False,
"module": "cloudscraper",
"modules": [
{
"name": "chrome_webgate",
"method": "url_rewrite",
"url": "http://localhost:8000/html?url={url}&retries=1"
}
]
}
} }