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
[ | |
{ | |
"value": 1, | |
"first": "bar", | |
"second": "bar", | |
"third": "bar" | |
}, | |
{ | |
"value": 2, | |
"first": "grape", |
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
### | |
# Telegram-казино | |
# Этот код позволяет понять, какие именно значения выпали в дайсе "казино" по тому, что вернул Bot API | |
# Авторы: @Groosha, @svinerus | 2020 год | |
### | |
from typing import List | |
# 0 1 2 3 | |
casino = ["BAR", "виноград", "лимон", "семь"] |
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
[ | |
{ | |
"value": 1, | |
"first": "bar", | |
"second": "bar", | |
"third": "bar" | |
}, | |
{ | |
"value": 2, | |
"first": "grape", |
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
from typing import Any, Dict, List, Set | |
from aiogram import types | |
from aiogram.dispatcher.handler import CancelHandler | |
from aiogram.dispatcher.middlewares import BaseMiddleware | |
from loguru import logger | |
class WhitelistMiddleware(BaseMiddleware): | |
def __init__(self, users: Set[int]): |
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
from pathlib import Path | |
from typing import Tuple, Any | |
from aiogram import Bot, Dispatcher, executor, types | |
from aiogram.contrib.middlewares.i18n import I18nMiddleware | |
TOKEN = "TOKEN" | |
I18N_DOMAIN = "mybot" | |
BASE_DIR = Path(__file__).parent |
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
Если вы хотите разрешить запрос смешанного контента, добавьте тег ниже: <head> тег. | |
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> | |
Если вы хотите, чтобы заблокировать затем добавить тег ниже в <head> тег: | |
<meta http-equiv="Content-Security-Policy" content="block-all-mixed-content"> |
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
body { | |
font-family: tahoma; | |
color:#282828; | |
margin: 0px; | |
} | |
.nav-bar { | |
background: linear-gradient(-90deg, #84CF6A, #16C0B0); | |
height: 60px; | |
margin-bottom: 15px; |
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
# 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(d, token): | |
secret = hashlib.sha256() | |
secret.update(token.encode('utf-8')) |
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
""" | |
Extract GlobeImposter 2.0 Ransomware Config | |
Author: @demonslay335 | |
""" | |
import os | |
import sys | |
import binascii | |
import re | |
import hashlib |