Skip to content

Instantly share code, notes, and snippets.

View CyberFlameGO's full-sized avatar
💠
Hey, I’m Cyber/Aaron.

CyberFlame CyberFlameGO

💠
Hey, I’m Cyber/Aaron.
View GitHub Profile
import pygame
from random import randint
FOOD_SIZE = 10
DISPLAY_WIDTH = 640
DISPLAY_HEIGHT = 480
BG_COLOUR = (44, 62, 80)
SNAKE_COLOUR = (236, 240, 241)
FOOD_COLOUR = (241, 196, 15)
@CyberFlameGO
CyberFlameGO / webhook_deleter.py
Created January 6, 2022 13:18
Quick way of deleting webhooks, useful for disabling token-grabbers which rely on Discord webhooks
import requests
url = input("Put your URL here: ")
result = requests.request(method="DELETE", url=url)
try:
result.raise_for_status()
except requests.exceptions.HTTPError as err:
print("Error: " + str(err))
@CyberFlameGO
CyberFlameGO / log4j_rce_detection.md
Created December 19, 2021 05:30 — forked from Neo23x0/log4j_rce_detection.md
Log4j RCE CVE-2021-44228 Exploitation Detection

log4j RCE Exploitation Detection

You can use these commands and rules to search for exploitation attempts against log4j RCE vulnerability CVE-2021-44228

Grep / Zgrep

This command searches for exploitation attempts in uncompressed files in folder /var/log and all sub folders

sudo egrep -I -i -r '\$(\{|%7B)jndi:(ldap[s]?|rmi|dns|nis|iiop|corba|nds|http):/[^\n]+' /var/log
@CyberFlameGO
CyberFlameGO / update_lwjgl.sh
Created December 14, 2021 03:41 — forked from aperson/update_lwjgl.sh
Updates the lwjgl that minecraft uses.
#!/usr/bin/env bash
echo "Determining OS..."
if [[ "$(uname -s)" == "Linux" ]]; then
mcdir="$HOME/.minecraft/"
downloader="wget --no-check-certificate -q -O"
os="linux"
natives="libjinput-linux libjinput-linux64 liblwjgl liblwjgl64 libopenal libopenal64"
elif [[ "$(uname -s)" == "Darwin" ]]; then
@CyberFlameGO
CyberFlameGO / repl
Created December 8, 2021 07:46 — forked from melmsie/repl
const { inspect } = require('util')
const ProgrammaticREPL = require('programmatic-repl')
module.exports = {
help: 'repl',
fn: async ({ Memer, msg }) => {
const REPL = new ProgrammaticREPL({
includeNative: true,
includeBuiltinLibs: true,
stringifyResults: true,
@CyberFlameGO
CyberFlameGO / test.js
Created December 8, 2021 07:46 — forked from melmsie/test.js
//Main JS file
const Eris = require('eris');
Eris.Client.prototype.setupListeners = function() {
if (!this._listeners) this._listeners = [];
for (let listener of this._listeners) {
this.removeListener(listener.eventName, listener.listener);
}
@CyberFlameGO
CyberFlameGO / main.go
Created December 8, 2021 07:46 — forked from melmsie/main.go
package main
import (
// "encoding/json"
"flag"
"fmt"
"github.com/bwmarrin/discordgo"
"log"
"net/http"
"os"
@CyberFlameGO
CyberFlameGO / cards.ts
Created December 8, 2021 07:44 — forked from melmsie/cards.ts
Dank Memer Blackjack Command Files
import * as Constants from './constants';
const randomInArray = <T>(arr: readonly T[]): T =>
arr[Math.floor(Math.random() * arr.length)];
export interface Card {
suit: typeof Constants.SUITS[number];
face: typeof Constants.FACES[number];
baseValue: number;
};
@CyberFlameGO
CyberFlameGO / MRJTempFolder.java
Created December 7, 2021 08:38
Returns the Temporary Items Folder on the Mac OS.
import java.io.File;
import java.io.FileNotFoundException;
import com.apple.mrj.MRJFileUtils;
public class MRJTempFolder
{
/**
* Returns the Temporary Items Folder on the Mac OS.
* @return a File object representing the Temporary Items Folder,
* or null, if it could not be found.
@CyberFlameGO
CyberFlameGO / BitBucketOutputStream.java
Created December 7, 2021 08:37
Basically a replacement for /dev/null
import java.io.*;
/**
* A repository for unwanted bytes.
* Basically a replacement for <code>/dev/null</code>
*/
public class BitBucketOutputStream extends OutputStream
{
/**
* Sets System.out to use the BitBucketOutputStream as the output
* stream. In effect, redirecting standard out to oblivion.