From a9e12bb1bb40cc2137ffefc91b6728fa7f10a70e Mon Sep 17 00:00:00 2001 From: Alexander Bersenev Date: Fri, 17 May 2019 02:45:24 +0500 Subject: [PATCH] add warning about default secrets --- mtprotoproxy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mtprotoproxy.py b/mtprotoproxy.py index 7f2fc0b..02c3c7c 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -1256,6 +1256,9 @@ def print_tg_info(): params = {"server": ip, "port": PORT, "secret": "dd" + secret} params_encodeded = urllib.parse.urlencode(params, safe=':') print("{}: tg://proxy?{}".format(user, params_encodeded), flush=True) + if secret in ["00000000000000000000000000000000", "0123456789abcdef0123456789abcdef"]: + msg = "The default secret {} is used, this is not recommended".format(secret) + print(msg, flush=True) def loop_exception_handler(loop, context):