This file contains 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
-- a lua program that encodes and decodes morse code messages. run it with the | |
-- command `lua marcy.lua decode`, followed by the morse code in quotes. it | |
-- translates the dots and dashes into plain text. translate plain text into | |
-- morse code using `lua marcy.lua encode`. | |
-- an example of the morse code it reads: -. . ...- . .-. / .-. ..- -. | |
-- use `lua marcy.lua decode "-. . ...- . .-. / .-. ..- -."` to decode it. | |
local morse_code_dict = { | |
a = ".-", b = "-...", c = "-.-.", d = "-..", |
This file contains 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 binascii | |
import math | |
# Colours | |
DR = chr(0x2591) # Dark | |
MD = chr(0x2592) # More dark | |
LD = chr(0x2593) # Light dark | |
LT = chr(0x2588) # Light | |
# Box characters |
This file contains 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, 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"": |
This file contains 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
# 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 |
This file contains 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
# usage: vigenere.py [-h] [--key KEY] [--decrypt] string | |
# | |
# exmaple: | |
# >vigenere.py HELLO | |
# output: DEWVP | |
# | |
# >vigenere.py --decrypt DEWVP | |
# output: HELLO | |
# | |
# positional arguments: |
This file contains 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
# 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")) |
This file contains 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 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 |
This file contains 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 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] |
This file contains 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 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." | |
This file contains 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
# 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 |
NewerOlder