Skip to content

Instantly share code, notes, and snippets.

// SPDX-License-Identifier: MIT
// lrzsz doesn't work for VisionFive2's UART boot for some reason.
// Here's the hacky replacement.
// Usage: picocom -b 115200 -s "./visionfive2-sz" /dev/ttyUSB0
// Ctrl-A Ctrl-S then "recovery.bin"
#include <cinttypes>
#include <cstdio>
#include <unistd.h>
#include <fcntl.h>
#!/bin/bash
#
# https://bugs.mojang.com/browse/MC-122477
# Replaces the extracted libglfw.so with this custom built one.
# How that can be done depends on your launcher.
# Minecraft version doesn't matter but GLFW version should match.
#
set -xe
# GLFW for LWJGL 3.3.1: https://github.com/glfw/glfw/archive/97da62a027794d9ff0f4512268cb9a73a8fb5073.zip
/* SPDX-License-Identifier: MIT */
package me.recursiveg.automation;
import net.minecraft.client.Minecraft;
import net.minecraft.client.multiplayer.MultiPlayerGameMode;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.core.NonNullList;
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <linux/udp.h>
int main(int argc, char *argv[])
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <stropts.h>
#include <signal.h>
#include <netdb.h>
#include <sys/ioctl.h>
#include <sys/types.h>
@RecursiveG
RecursiveG / AntiCheat_3_3_3_1710.java
Created January 21, 2016 05:09
Cracked Version of AntiCheat3 (http://www.mcbbs.net/thread-525761-1-1.html). To show how vulnerable and unreliable a client-mod based Minecraft anticheat system could be.
import java.util.Random;
import cpw.mods.fml.common.gameevent.PlayerEvent;
import java.awt.image.BufferedImage;
import net.minecraft.client.resources.IResource;
import javax.imageio.ImageIO;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.event.TextureStitchEvent;
import net.minecraft.server.dedicated.DedicatedServer;
import net.minecraft.command.ICommandSender;
import net.minecraft.server.MinecraftServer;
@RecursiveG
RecursiveG / AntiCheat3Cracked.java
Created December 31, 2015 03:28
Cracked Version of AntiCheat3 (http://www.mcbbs.net/thread-525761-1-1.html). To show how vulnerable and unreliable a client-mod based Minecraft anticheat system could be.
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.IResource;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommand;
import net.minecraft.command.ICommandSender;
import net.minecraft.crash.CrashReport;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
#!/usr/bin/python3
from gi.repository import Gtk
import os
import zipfile
GLADE_STRING='''<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
<interface>
<requires lib="gtk+" version="3.10"/>
<object class="GtkListStore" id="ZipContentList">
<columns>
@RecursiveG
RecursiveG / MazeGen.py
Created October 31, 2013 13:18
Maze Generator using DFS
import random
n=int(input("N:"))
m=int(input("M:"))
k1=int(input("K1:"))
k2=int(input("K2:"))
r=int(input("R:"))
g=[]
t=[]
def ok(x,y):