Skip to content

Instantly share code, notes, and snippets.

View ConnorDoesDev's full-sized avatar
👋
hi!

Connor ConnorDoesDev

👋
hi!
View GitHub Profile
@jakeajames
jakeajames / IOSurface_stuff.c
Last active September 1, 2022 02:45
WIP CVE-2021-30955 exploit
//
// IOSurface_stuff.c
// time_waste
//
// Created by Jake James on 2/22/20.
// Copyright © 2020 Jake James. All rights reserved.
//
#import "IOSurface_stuff.h"
@jakeajames
jakeajames / poc.c
Last active May 1, 2023 19:58
CVE-2021-30955 PoC
#include <stdlib.h>
#include <stdio.h>
#include <pthread/pthread.h>
#include <mach/mach.h>
struct ool_msg {
mach_msg_header_t hdr;
mach_msg_body_t body;
mach_msg_ool_ports_descriptor_t ool_ports[];
};
@0xallie
0xallie / checkm8_downgrade.md
Last active February 2, 2024 08:47
Guide for downgrading checkm8 devices
@ghostrider-05
ghostrider-05 / discord_app_protocols.md
Last active April 30, 2024 12:30
An unofficial list of discord app protocol routes

Discord app protocol routes

Home:

  • /: discord://-/
  • friends: discord://-/channels/@me/
  • nitro: discord://-/store
  • shop: discord://-/shop
  • message requests: discord://-/message-requests
  • family centre: discord://-/family-center
[invalid]
keywords = []
content = """
invalid tag
"""
[tags]
keywords = ["taglist", "listags"]
content = """
Here are all currently existing tags: `tags`, `teamlead`, `commands`
@manhbi18112005
manhbi18112005 / index.js
Last active March 6, 2022 13:46
Moderate messages in your servers automatically using Artificial Intelligence. The code below was made to put in index.js, you can modify it to put in an event file.
//...
const GOOGLE_API_KEY = "CóCáiLồnĐịtConBàMày"
const snekfetch = require('snekfetch');
client.on("message", async message => {
if (message.author.bot) return; // return if message was sent from bot
const emojiId = message.content.replace(/<a?:(.*?):+/g, '');
let imageUrl = `https://cdn.discordapp.com/emojis/${emojiId}`;
if(message.content === imageUrl) return; // return if message only contains emojis
@Soheab
Soheab / API's.md
Last active April 25, 2024 19:48
See here some of the API's you can use in your discord bot or anything

Some API's for you.

See here some of the API's you can use in your discord bot or anything. For any help or questions on how to use one, please contact the owner of the API and not me.

A much bigger list of APIs can be found here


[TOKEN] = API requires a token to access some if not all endpoints.

The descriptions are mostly copied from the API, sometimes personal or from the dev.

@pvieito
pvieito / gist:ee6d2c8934a8f84b9aeb467585277b8a
Last active April 13, 2024 05:39
Consumer keys of official Twitter clients

Twitter API Keys

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for Google TV

Consumer key: iAtYJ4HpUVfIUoNnif1DA

@ainsofs
ainsofs / gist:2b80771a5582b7528d9e
Created April 16, 2015 01:50
Clear .gitignore cache
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
@soheilhy
soheilhy / nginxproxy.md
Last active March 22, 2024 08:54
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers