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 java.io.*;
class shortbf {
static String repeat(String s, int n) {
StringBuilder b = new StringBuilder();
for (int i = 0; i < n; i++) b.append(s);
return b.toString();
}
// G[x][y]: BF code that transforms x to y.
@CyberFlameGO
CyberFlameGO / mfck.js
Created February 27, 2022 07:31 — forked from razetime/mfck.js
Moanfuck implementation in js
// moanfuck implementation in JavaScript
// Use as: interpret(<mf code>)
// or: interpret(convert(<bf code>)) if you want to try using bf code.
// logs to the console.
// borrowed from https://github.com/trekhleb/javascript-algorithms/blob/master/src/algorithms/string/levenshtein-distance/levenshteinDistance.js
function levenshteinDistance(a, b) {
// Create empty edit distance matrix for all possible modifications of
// substrings of a to substrings of b.
const distanceMatrix = Array(b.length + 1).fill(null).map(() => Array(a.length + 1).fill(null));
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;
};