This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Python Version of https://gist.github.com/anonymous/6516521b1fb3b464534fbc30ea3573c2 | |
| # Similar to: https://gist.github.com/xen/e4bea72487d34caa28c762776cf655a3 | |
| # Just using my own style. | |
| # Gets the json output, and returnes a boolean. | |
| import hmac, hashlib | |
| TG_BOT_TOKEN = "XXXXXXX:XXX....." | |
| def confirm_telegram_authdata( data ): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # To get and run this script, excecute: | |
| # | |
| # sudo bash -c 'python <(curl "https://gist.github.com/aliqandil/a3e172a641286876d23bd93dbcdc0a0a/raw/create_mtproto_proxy_server.py" -sL -N)' | |
| # | |
| from __future__ import print_function | |
| from contextlib import closing | |
| from collections import defaultdict | |
| import socket, json, os, sys, shlex, hashlib, random | |
| #Checking admin rights: |