Skip to content

Instantly share code, notes, and snippets.

View kaecy's full-sized avatar
🌄
I'm awake.

Eris kaecy

🌄
I'm awake.
  • Freelancer
  • England
View GitHub Profile
@kaecy
kaecy / bit.py
Created March 9, 2024 02:54
Bit Image Viewer
import binascii
import math
# Colours
DR = chr(0x2591) # Dark
MD = chr(0x2592) # More dark
LD = chr(0x2593) # Light dark
LT = chr(0x2588) # Light
# Box characters
@kaecy
kaecy / crc32.py
Created March 3, 2024 18:03
CRC32 Scan Thingy
import os, sys, re
import binascii as checksum
def get_crc32(filename):
crc32 = 0
binaryfile = open(filename, "rb")
while True:
chunk = binaryfile.read(1000000)
if chunk != b"":
@kaecy
kaecy / bot.py
Created February 9, 2024 17:52
User Search module for automated storing, updating and searching users' groups and working bot code
# Date: Feb 9, 2024
import os
import tomllib
import json
import usersearch
import poster
from telethon import TelegramClient, events, sync, types, functions
from telethon.utils import get_display_name
@kaecy
kaecy / vigenere.py
Created October 7, 2023 20:30
A basic Vigenere encryption utility
# usage: vigenere.py [-h] [--key KEY] [--decrypt] string
#
# exmaple:
# >vigenere.py HELLO
# output: DEWVP
#
# >vigenere.py --decrypt DEWVP
# output: HELLO
#
# positional arguments:
@kaecy
kaecy / bot.py
Created September 23, 2023 06:58
TG User Scanner
# Date: Sep 3, 2023
import os
import tomllib
import json
from telethon import TelegramClient, events, sync, types, functions
from telethon.utils import get_display_name
env = tomllib.load(open("env.toml", "rb"))
@kaecy
kaecy / delete_key.py
Last active June 13, 2023 11:49
Delete a registry key and all the keys under it.
import winreg
class RegKey:
def __init__(self, parentkey, handle, keyname):
self.parentkey = parentkey
self.handle = handle
self.keyname = keyname
def enum_keys(self):
keys = []
i = 0
from string import whitespace
def rstrip(str):
i = len(str)
if i != 0:
while str[i - 1] in whitespace and (i := i - 1):
pass
return str[:i]
import raey.core.module
from telethon.tl import types
from telethon import helpers
from telethon.utils import get_display_name
moduleInfo = raey.core.module.ModuleInfo("chat-info")
def getChatInfo(chat):
"Get basic info of a chat."
@kaecy
kaecy / relay.py
Last active June 29, 2022 21:46
Chat Relay Module
# Uses a single Telegram node to relay messages from one to many.
# Receivers receive messages and can reply to senders. Senders never see who the receivers are
# and receive anonymous messages from receivers.
# - Setup to begin receiving messages -
# 1. Use `/receiver admin` to set a receiver and you're setup
import raey.core.module
from telethon.utils import get_display_name

Fixes For Things Microsoft Employees Don't Know Jack About

Aren't you bored of that dribble Microsoft employees keep repeating on Microsoft Answers and elsewhere. Don't you wish you were talking to a real human being, and not a robot like how they behave. I'm not sure if they are human.

When you ask for help:

Microsoft employee: Oh I see you have a problem.
Solution:
 Copy/paste an irrelevant piece of instruction from the Microsoft manual of incompetancy.