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
import os | |
import logging | |
from telethon import TelegramClient, events | |
from telethon import errors | |
from telethon.tl.custom import Button | |
from telethon.errors.rpcerrorlist import FloodWaitError | |
import asyncio |
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 PIL import Image | |
import os | |
import fnmatch | |
drives = ['G:\\'] | |
THIS_SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)).replace('\\', '/') | |
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
# автор =- https://github.com/security-hab/telegram-keyword-monitor/blob/main/main.py | |
channels_to_monitor = ['elite_estate', 'tash_nedvij', 'myhouse773', 'realestatemurod1', | |
'realtor_yunusov', 'apartments_tashkent', 'TheBestHomeUz', 'reeltoruz'] # Список имен каналов | |
keywords = ['аренда', 'Аренда', 'АРЕНДА', 'коммерческое', 'нежилое'] # Список ключевых слов | |
group_id_for_notifications = -1002370398266 # ID вашей группы | |
# Асинхронная функция для мониторинга каналов | |
@client.on(events.NewMessage(chats=channels_to_monitor)) | |
async def handler(event): |
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
# author - https://github.com/s3rgeym | |
import time | |
import functools | |
import typing | |
def timeit(fn: typing.Callable) -> typing.Callable: | |
@functools.wraps(fn) |
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
email_re = r"^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$" | |
email = re.search(email_re, str) |
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
import logging | |
file_dirty = "G:/Desktop/Emails/Cyprus/ccs.org.cy.txt" | |
def clear(): | |
FORMAT = '%(message)s' | |
logging.basicConfig( | |
filename=f"G:/Desktop/Emails/Cyprus/{file_dirty.split('/')[-1]}_clear.txt", | |
level=logging.INFO, |
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
.encode('cp1251').decode('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
#!/usr/bin/env python | |
"""Find domains on ip address using a ssl certificate""" | |
import argparse | |
import ipaddress | |
import logging | |
import os | |
import socket | |
import ssl | |
import sys | |
import tempfile |
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
import httpx | |
import asyncio | |
import aiohttp | |
import os | |
from fp.fp import FreeProxy | |
from time import sleep | |
import logging | |
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
import httpx | |
import asyncio | |
import aiohttp | |
import os | |
from fp.fp import FreeProxy | |
THIS_DIR = os.path.dirname(os.path.realpath(__file__)).replace('\\', '/') |
NewerOlder