Skip to content

Instantly share code, notes, and snippets.

View vcokltfre's full-sized avatar

vcokltfre

View GitHub Profile
from asyncio import Lock
from typing import Callable, Coroutine, ParamSpec, TypeVar, cast, overload
_locks: dict[str, Lock] = {}
P = ParamSpec("P")
T = TypeVar("T")
# Utilities for vcokltfre
## Git aliases
alias cmt="git commit -m"
alias gac="git add . && cmt"
alias gca="git add . && git commit --amend --no-edit"
alias gcm="git checkout master"
alias gcb="git checkout -b"
alias gic="git commit -m \"feat: initial commit\" --allow-empty"
from asyncio import Event
from typing import TypeVar, Generic
T = TypeVar("T")
class Unset:
pass

I see a lot of people talking about Discord's use of tokens these days due to the large quantity of phishing attacks going around. With this discussion comes a lot of false assumptions and misconceptions about tokens, which I hope to clear up a bit in this gist. Note that this primarily refers to the specific situation that the user has downloaded token stealing malware as a result of the scam.

First, some common complaints I see:

  1. Tokens are insecure because they bypass 2FA
  2. Tokens are insecure because aren't encrypted at rest
  3. Tokens could be locked to an IP, but they're not, which is a bad design

Tokens are insecure because they bypass 2FA

DDevs Event - 28/01/2022

App discovery

  • Go to the dev portal
  • Add tags to your bot!
  • You need to complete this to be in app discovery.

Update

class DumbFuckingWrapper:
def __init__(self, func, *args, **kwargs):
self.func = func
self.args = args
self.kwargs = kwargs
def __call__(self, a):
self.func(*self.args, **self.kwargs)
return a

GTAO Townhall

Note: GTA Online Discord is a community-based Discord server. It is not officially affiliated with Rockstar Games or any of their products.

What is townhall?

Townhall is an opportunity to ask questions to the server staff in a channel where they will be answered in the interest of raising server transparency. Questions are around topics of the server, such as suggestions for the bot.

Questions

Invalidating token NzUxNDY1NTAxNzQ5Njc0MDU0.X1JeyQ.D8y_97K7H5Zl8MMfdQThlkwH1iA
prefix: "<>"
modules:
detection:
levels:
toxic:
alert: 0.9
delete: 0.95
severe_toxic:
alert: 0.9

Corsika

Corsika is a Discord bot focused on utilities such as lookups and finding messages. It is designed to be powerful, not beginner friendly. The prefix is &, please visit the support server for more support if needed: https://discord.gg/xJvBJndVPJ


Commands will be presented in the following format:

topLevelCommandOrGroup [alias1, alias2]
  subcommand1
  subcommand2
 arg1Option1