mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-07 06:24:35 +00:00
Cloudflare Bypass Mode
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
@@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user