A python discord client interaction emulator for the DC29 badge code channel

Overview

dc29-discord-signalbot

A python discord client interaction emulator for the DC29 badge code channel

Prep

Open Developer mode

Open the developer mode for your browser

  • chrome - CTRL + SHIFT + j
  • Firefox - CTRL + SHIFT + i

in Developer tools for that window, click the "NETWORK" tab.

Login to Discord on the browser

Before you start this script, login to discord.gg in your browser. Open the web-app version of discord. Navigate to the DefCon server.

Find request to 'messages' endpoint in Developer Tools window

In the developer tools NETWORK tab, hit the "DO NOT ENTER" / "Trash Can" icon (depdending on browser) to clear the network history log.

now hard-refresh the discord window (CTRL + SHIFT + R)

In the network tab you're going to see a lot of data. Find one of the URL path entries that looks like messages?limit=##

Select the entry, and look at HEADERS on the right. Scroll down to "REQUEST HEADERS".

Collect TWO headers from request to 'messages' endpoint

You need TWO headers:

  • x-super-properties
  • authorization

These will be set as DISCORD_AUTHORIZATION and DISCORD_XSUPER in your environment respectively.

Note your com/tty port for the USB Serial connection

Grab your COM# or /dev/tty number for your badge (whatever you're using to connect via Putty, etc)

  • example: COM2 or /dev/tty2 or /dev/serial0 (etc)

Set environment variables

set these in your environment you're running the script from:

  • Linux - export DISCORD_AUTHORIZATION=<authorization header data>

  • Windows - set DISCORD_AUTHORIZATION=<authorization header data>

      set DISCORD_AUTHORIZATION=abcd1234abcd1234abcd.12345.abcd1234abcd1234
      set DISCORD_XSUPER=eby-some-long.string.of-text
      set DISCORD_USER=yourUserNameWITHOUT#Suffix
      set BADGE_SERIAL_PORT=yourSerialPortCom3Tty
    

Usage

Now you're ready to install the required packages.

!!! NOTICE !!! - Terms of service with Discord are not straight forward. This could potentially cause discord to warn/flag/suspend your account if you abuse the API interfaces.

Setup

# from within this directory

python3 -m venv .
. bin/activate 

# windows: \Scripts\Activate.bat
# or powershell -Ex bypass \Scripts\Activate.ps1

pip install -r requirements.txt

You will need to edit main.py.

  • Replace DISCORD_USER username with your username
  • Replace BADGE_CHANNEL with your com/tty device name

Run

# for testing/etc
python3 main.py --interactive

# to run live
python3 main.py
Owner
Selling systemese and systemese accessories.
IACR Events Scraper

IACR Events Scraper This scrapes https://iacr.org/events/ and exports it as a calendar file. I host a version of this for myself under https://arrrr.c

Karolin Varner 6 May 28, 2022
Reverse engineering multi-device WhatsApp Web.

whatsapp-web-multi-device-reveng In this repository, the research for reverse engineering multi-device WhatsApp Web takes place, see here for a descri

84 Jan 01, 2023
A simple, fast, and awesome discord nuke bot! The only thing you need to add is your bot token.

SimpleNukeBot A simple, fast, and awesome discord nuke bot! The only thing you need to add is your bot token. Instructions: All you need to do is crea

Bisc 1 Apr 18, 2022
High-Resolution Differential Z-Belt Mod for V0 (with optional Kirigami support)

V0-DBM This is a high-resolution differential pulley system belt mod for the Z-axis on Voron 0 with optional Kirigami Bed support. NOTE: Alpha version

Simon Kรผppers 11 Jan 07, 2023
Ghostbuster - Eliminate dangling elastic IPs by performing analysis on your resources within all your AWS accounts

Table of Contents Table of Contents Ghostbuster The problem Project Features Ins

Assetnote 182 Dec 24, 2022
Pluggable Telethon - Telegram UserBot

A stable pluggable Telegram userbot, based on Telethon.

Team Ultroid 2.3k Dec 30, 2022
Python client and API for monitoring and controling energy diversion devices from MyEnergi

Python client and API for monitoring and controling energy diversion devices from MyEnergi A set of library functions and objects for interfacing with

1 Dec 17, 2021
Simple contact bot for telegram, written in python.

๐Ÿ”— | Install Install the requirements with pip install -r requirements.txt ๐Ÿ“‹ | Setup Get your token from BotFather Get your UserId with Nicegram or w

Stehack 3 Dec 10, 2022
This is an implementation example of a bot that periodically sends predictions to the alphasea-agent.

alphasea-example-model alphasea-example-modelใฏใ€ alphasea-agent ใซๅฏพใ—ใฆๆฏŽใƒฉใ‚ฆใƒณใƒ‰ใ€ไบˆๆธฌใ‚’ๆŠ•็จฟใ™ใ‚‹ใƒ—ใƒญใ‚ฐใƒฉใƒ ใงใ™ใ€‚ Numeraiใฎexample modelใซ็›ธๅฝ“ใ—ใพใ™ใ€‚ ๆบ–ๅ‚™ alphasea-example-modelใฎๅ‹•ไฝœใซใฏใ€

AlphaSea 11 Jul 28, 2022
A Discord token grabber executing in a Microsoft Document.

๐ŸฆŠ Rage ๐ŸฆŠ Rage is a tool written in Python3 allowing you to inject a Python3 complete Discord token grabber (Riot) script in a Microsoft Document usi

Billy 73 Nov 03, 2022
Python client for the Socrata Open Data API

sodapy sodapy is a python client for the Socrata Open Data API. Installation You can install with pip install sodapy. If you want to install from sour

Cristina 368 Dec 09, 2022
Discord Account Generator that will create Account with hCaptcha bypass. Using socks4 proxies

Account-Generator [!] This was made for education. Please use socks4 proxies for nice experiences. [!] Please install these modules - "pip3 install ht

RyanzSantos 10 Feb 23, 2022
A Telegram bot to extracting text from images. All languages supported.

OCR Bot A Telegram bot to extracting text from images. All languages supported. Deploy to Heroku Local Deploying Clone the repo git clone https://gith

6 Oct 21, 2022
A Pythonic wrapper for the Wikipedia API

Wikipedia Wikipedia is a Python library that makes it easy to access and parse data from Wikipedia. Search Wikipedia, get article summaries, get data

Jonathan Goldsmith 2.5k Dec 28, 2022
GitHub Actions Poll Mode AutoScaler (GAPMAS)

GitHub Actions Poll Mode AutoScaler, or GAPMAS, is a simple tool that helps you run ephemeral GitHub Actions self-hosted runners on your own infrastructure.

Frode Nordahl 4 Nov 04, 2022
It is automated instagram follower bot.

Instagram-Follower-Bot It is automated instagram follower bot. In This project I've used Selenium and Python. Work-Flow When I run my code. It's gonna

Falak Shair 3 Sep 28, 2022
Due to changes to the discord API and discord.py being discontinued

Talia Due to changes to the discord API and discord.py being discontinued, Talia development has been halted permanently A customizable economy discor

2 Mar 08, 2022
โ๐“๐ก๐ž ๐Œ๐จ๐ฌ๐ญ ๐๐จ๐ฐ๐ž๐ซ๐Ÿ๐ฎ๐ฅ๐ฅ ๐†๐ซ๐จ๐ฎ๐ฉ ๐Œ๐š๐ง๐š๐ ๐ž๐ฆ๐ž๐ง๐ญ ๐๐จ๐ญโž

โ๐“๐ก๐ž ๐Œ๐จ๐ฌ๐ญ ๐๐จ๐ฐ๐ž๐ซ๐Ÿ๐ฎ๐ฅ๐ฅ ๐†๐ซ๐จ๐ฎ๐ฉ ๐Œ๐š๐ง๐š๐ ๐ž๐ฆ๐ž๐ง๐ญ ๐๐จ๐ญโž

Abdisamad Omar Mohamed 5 Jun 24, 2022
Lamblayer: a minimal deployment tool for AWS Lambda layers

lamblayer lamblayer is a minimal deployment tool for AWS Lambda layers. lamblayer does, Create a Layers of built pip-installable python packages. Crea

Yusuke Takahashi 2 Aug 19, 2022
A file-based quote bot written in Python

Let's Write a Python Quote Bot! This repository will get you started with building a quote bot in Python. It's meant to be used along with the Learnin

1 Jan 19, 2022