Skip to content

Commit

Permalink
removed unused slotcrash
Browse files Browse the repository at this point in the history
  • Loading branch information
SpigotRCE committed Oct 2, 2024
1 parent 34eca07 commit 9f7322b
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 87 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ParadiseClient-Fabric v1.21 g3 b3
# ParadiseClient-Fabric v1.21 g3 b4

* ParadiseClient-Fabric is a Minecraft Fabric mod made for pentesting Minecraft servers/networks.
* This project is open source, but you are not allowed to modify, or distribute as your own without the permission of
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ minecraft_version=1.21
yarn_mappings=1.21+build.9
loader_version=0.15.11
# Mod Properties
mod_version=1.21-3-3
mod_version=1.21-3-4
maven_group=io.github.spigotrce
archives_base_name=ParadiseClient-Fabric
# Dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Constants {
/**
* The version of the mod.
*/
public static final String VERSION = "1.21-3-3";
public static final String VERSION = "1.21-3-4";

/**
* The ID of the mod.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,8 @@ public void onInitialize() {
chatRoomMod = new ChatRoomMod();
exploitMod = new ExploitMod();
commandManager = new CommandManager(this.minecraftClient);
exploitManager = new ExploitManager(this.minecraftClient);
networkMod = new NetworkMod();
exploitManager = new ExploitManager(
new BrigadierExploit(),
new PaperWindowExploit(),
new SignExploit(),
new NegativeInfinityExploit(),
new SlotCrashExploit()
);

eventManager.registerListener(new PacketListener());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ public abstract class Exploit {
* @param alias The alias or name of the exploit.
* @param description A brief description of the exploit's purpose.
*/
public Exploit(String alias, String description) {
public Exploit(String alias, String description, MinecraftClient minecraftClient) {
this.alias = alias;
this.description = description;
this.minecraftClient = MinecraftClient.getInstance();
this.minecraftClient = minecraftClient;
this.running = false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

import io.github.spigotrce.paradiseclientfabric.Helper;
import io.github.spigotrce.paradiseclientfabric.ParadiseClient_Fabric;
import io.github.spigotrce.paradiseclientfabric.exploit.impl.*;
import net.minecraft.client.MinecraftClient;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

Expand All @@ -17,15 +20,16 @@ public class ExploitManager {
/**
* A list of all available exploits.
*/
private final List<Exploit> exploits;
private final ArrayList<Exploit> exploits = new ArrayList<>();

/**
* Constructs a new ExploitManager with the given exploits.
*
* @param exploits The exploits to be managed.
*/
public ExploitManager(Exploit... exploits) {
this.exploits = Arrays.asList(exploits);
public ExploitManager(MinecraftClient minecraftClient) {
register(new BrigadierExploit(minecraftClient));
register(new PaperWindowExploit(minecraftClient));
register(new SignExploit(minecraftClient));
register(new NegativeInfinityExploit(minecraftClient));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import io.github.spigotrce.paradiseclientfabric.Constants;
import io.github.spigotrce.paradiseclientfabric.Helper;
import io.github.spigotrce.paradiseclientfabric.exploit.Exploit;
import net.minecraft.client.MinecraftClient;
import net.minecraft.network.packet.c2s.play.RequestCommandCompletionsC2SPacket;

import java.util.stream.Collectors;
Expand Down Expand Up @@ -45,8 +46,8 @@ public class BrigadierExploit extends Exploit {
/**
* Constructs a new BrigadierExploit instance.
*/
public BrigadierExploit() {
super("tab", "Brigadier crash exploit");
public BrigadierExploit(MinecraftClient minecraftClient) {
super("tab", "Brigadier crash exploit", minecraftClient);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public class NegativeInfinityExploit extends Exploit {
/**
* Constructs a new instance of NegativeInfinityExploit with the given name and description.
*/
public NegativeInfinityExploit() {
super("negativeinfinity", "NegativeInfinity crash exploit");
public NegativeInfinityExploit(MinecraftClient minecraftClient) {
super("negativeinfinity", "NegativeInfinity crash exploit", minecraftClient);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import io.github.spigotrce.paradiseclientfabric.Helper;
import io.github.spigotrce.paradiseclientfabric.exploit.Exploit;
import it.unimi.dsi.fastutil.ints.Int2ObjectArrayMap;
import net.minecraft.client.MinecraftClient;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.network.packet.c2s.play.ClickSlotC2SPacket;
Expand All @@ -20,8 +21,8 @@ public class PaperWindowExploit extends Exploit {
/**
* Constructs a new PaperWindowExploit object with the given name and description.
*/
public PaperWindowExploit() {
super("paperwindow", "PaperWindow crash exploit");
public PaperWindowExploit(MinecraftClient minecraftClient) {
super("paperwindow", "PaperWindow crash exploit", minecraftClient);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import io.github.spigotrce.paradiseclientfabric.Helper;
import io.github.spigotrce.paradiseclientfabric.exploit.Exploit;
import net.minecraft.client.MinecraftClient;

/**
* Represents a sign exploit that crashes clients through sign translation on 1.8.x servers.
Expand All @@ -15,8 +16,8 @@ public class SignExploit extends Exploit {
/**
* Constructs a new SignExploit object with the given name and description.
*/
public SignExploit() {
super("sign", "Crashes thru sign translation on 1.8.x servers");
public SignExploit(MinecraftClient minecraftClient) {
super("sign", "Crashes thru sign translation on 1.8.x servers", minecraftClient);
}

/**
Expand Down

This file was deleted.

0 comments on commit 9f7322b

Please sign in to comment.