Skip to content

Instantly share code, notes, and snippets.

View JrooTJunior's full-sized avatar
🏠
Working from home

Alex Root Junior JrooTJunior

🏠
Working from home
View GitHub Profile
@JrooTJunior
JrooTJunior / check_hash.py
Last active February 14, 2024 07:53 — forked from xen/check_hash.py
telegram site auth
# implementation of Telegram site authorization checking algorithm
# for more information https://core.telegram.org/widgets/login#checking-authorization
import collections
import hmac
import hashlib
def check_string(data, token):
secret = hashlib.sha256()
secret.update(token.encode('utf-8'))
@JrooTJunior
JrooTJunior / danted.conf
Last active April 18, 2018 01:14 — forked from 4ndv/danted.conf
Telegram danted.conf
# /etc/danted.conf
logoutput: syslog /var/log/sockd.log
internal: eth0 port = 1080
external: eth0
sockmethod: pam.username
user.privileged: root