This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
importPackage(Packages.com.md_5.bot.mc); | |
importPackage(Packages.java.lang); | |
var connection = new Connection("127.0.0.1", 25565); | |
connection.setUsername("md_5"); | |
if (connection.connect()){ | |
// read thread | |
new Thread(function run(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.ByteArrayInputStream; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import lombok.Cleanup; | |
import lombok.SneakyThrows; | |
import lombok.val; | |
public class Test { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Moves the specified amount forwards and left in the current direction | |
* (calculated based on current yaw) | |
* | |
* @param forward, double sideways how far to move | |
* @param left how far to the left to move | |
*/ | |
public void moveRelative(double forward, double left) { | |
final float yaw = getLocation().getYaw(); | |
final double xToMove = forward * Math.cos(yaw) - left * Math.sin(yaw); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import net.minecraft.client.Minecraft; | |
public class DiamondDig implements Runnable { | |
public static int oldPlayerX; | |
public static int oldPlayerY; | |
public static int oldPlayerZ; | |
public static int stuckCount = 0; | |
public boolean noY = false; | |
public boolean noZ = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
importPackage(Packages.com.md_5.bot.mc); | |
importPackage(Packages.com.md_5.bot.mc.entity); | |
importPackage(Packages.java.lang); | |
var bot = new Connection("127.0.0.1", 25565); | |
bot.setUsername("sha_1"); | |
if (bot.connect()){ | |
// read thread |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.md_5; | |
import java.io.IOException; | |
import java.net.DatagramPacket; | |
import java.net.DatagramSocket; | |
import java.net.InetSocketAddress; | |
import java.util.logging.Level; | |
import org.bukkit.plugin.java.JavaPlugin; | |
public class LanBukkit extends JavaPlugin implements Runnable { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <jni.h> | |
JNIEnv* create_vm() | |
{ | |
JavaVM* jvm; | |
JNIEnv* env; | |
JavaVMInitArgs args; | |
JavaVMOption options[1]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
$server = 'irc.stripe.com' | |
$channel = '#level8' | |
$nick = 'FlagBot' | |
$chanfile = '~/.xchat2/xchatlogs/NETWORK-\#level8.log' | |
$sshpath = 'user-hawkwarded@level02-4.stripe-ctf.com' | |
$command = 'ruby bot.rb' | |
$store = './flags.rb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package in.znc.java; | |
import java.util.Collection; | |
public abstract class JavaModule { | |
private final String name; | |
public JavaModule(String name) { | |
this.name = name; |