diff --git a/python/README.md b/python/README.md index eeb91687..0a1b3848 100644 --- a/python/README.md +++ b/python/README.md @@ -234,6 +234,10 @@ Contributors names and contact info * Added no-fronting option * 1.3.17 * Improved the fronting test method (jafar method) +* 1.3.18 + * changed fronting domain +* 1.3.19 + * fixed a bug in xray config saving in windows. ":" is not allowed in windows file names [python]: https://img.shields.io/badge/-Python-3776AB?logo=python&logoColor=white -[version]: https://img.shields.io/badge/Version-1.3.17-blue +[version]: https://img.shields.io/badge/Version-1.3.19-blue diff --git a/python/cfscanner/speedtest/fronting.py b/python/cfscanner/speedtest/fronting.py index 2daa5348..c51ed634 100644 --- a/python/cfscanner/speedtest/fronting.py +++ b/python/cfscanner/speedtest/fronting.py @@ -18,16 +18,16 @@ def fronting_test( """ s = requests.Session() s.get_adapter( - 'https://').poolmanager.connection_pool_kw['server_hostname'] = "jafar.mashallah.gq" + 'https://').poolmanager.connection_pool_kw['server_hostname'] = "jafar.jafarcloud.ml" s.get_adapter( - 'https://').poolmanager.connection_pool_kw['assert_hostname'] = "jafar.mashallah.gq" + 'https://').poolmanager.connection_pool_kw['assert_hostname'] = "jafar.jafarcloud.ml" try: compatible_ip = f"[{ip}]" if ":" in ip else ip r = s.get( f"https://{compatible_ip}/__down?bytes=10", timeout=timeout, - headers={"Host": "jafar.mashallah.gq"} + headers={"Host": "jafar.jafarcloud.ml"} ) except requests.exceptions.Timeout as e: return f"[bold red1]NO[/bold red1] [orange3]{ip:15s}[/orange3][yellow1] fronting timeout[/yellow1]" diff --git a/python/cfscanner/xray/config.py b/python/cfscanner/xray/config.py index 99300f9f..b05c8cbc 100644 --- a/python/cfscanner/xray/config.py +++ b/python/cfscanner/xray/config.py @@ -35,7 +35,7 @@ def create_proxy_config( random_sni = f"{uuid.uuid4()}.{hostname}" config = config.replace("RANDOMHOST", random_sni) - config_path = os.path.join(config_dir, f"config-{edge_ip}.json") + config_path = os.path.join(config_dir, f"config-{edge_ip.replace(':', '_')}.json") with open(config_path, "w") as configFile: configFile.write(config) diff --git a/python/pyproject.toml b/python/pyproject.toml index b71f97d0..67c750e1 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "cfscanner" -version = "1.3.17" +version = "1.3.19" authors = [ { name="tempookian", email="tempookian@gmail.com" }, { name="Morteza Bashsiz", email="morteza.bashsiz@gmail.com"}