-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
296 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
src/main/java/cc/slack/features/modules/impl/exploit/NoRotate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// Slack Client (discord.gg/slackclient) | ||
|
||
package cc.slack.features.modules.impl.exploit; | ||
|
||
import cc.slack.events.impl.network.PacketEvent; | ||
import cc.slack.events.impl.player.*; | ||
import cc.slack.features.modules.api.Category; | ||
import cc.slack.features.modules.api.Module; | ||
import cc.slack.features.modules.api.ModuleInfo; | ||
import cc.slack.features.modules.api.settings.impl.ModeValue; | ||
import cc.slack.features.modules.impl.exploit.norotate.impl.EditNoRotate; | ||
import cc.slack.features.modules.impl.exploit.norotate.INorotate; | ||
import cc.slack.features.modules.impl.exploit.norotate.impl.PacketNoRotate; | ||
import io.github.nevalackin.radbus.Listen; | ||
import net.minecraft.network.Packet; | ||
|
||
@ModuleInfo( | ||
name = "NoRotate", | ||
category = Category.EXPLOIT | ||
) | ||
public class NoRotate extends Module { | ||
|
||
private final ModeValue<INorotate> mode = new ModeValue<>("Mode",new INorotate[]{ | ||
new PacketNoRotate(), | ||
new EditNoRotate() | ||
}); | ||
public NoRotate() { | ||
super(); | ||
addSettings(mode); | ||
} | ||
|
||
|
||
@Override | ||
public void onEnable() { | ||
mode.getValue().onEnable(); | ||
} | ||
|
||
@Override | ||
public void onDisable() { | ||
mode.getValue().onDisable(); | ||
} | ||
|
||
@Listen | ||
public void onMotion(MotionEvent event) { | ||
|
||
} | ||
|
||
@Listen | ||
public void onUpdate(UpdateEvent event) { | ||
mode.getValue().onUpdate(event); | ||
} | ||
|
||
@Listen | ||
public void onPacket(PacketEvent event) { | ||
final Packet packet = event.getPacket(); | ||
mode.getValue().onPacket(event); | ||
} | ||
|
||
@Override | ||
public String getMode() { | ||
return mode.getValue().toString(); | ||
} | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/cc/slack/features/modules/impl/exploit/norotate/INorotate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Slack Client (discord.gg/slackclient) | ||
|
||
package cc.slack.features.modules.impl.exploit.norotate; | ||
|
||
import cc.slack.events.impl.network.PacketEvent; | ||
import cc.slack.events.impl.player.*; | ||
import net.minecraft.client.Minecraft; | ||
|
||
public interface INorotate { | ||
Minecraft mc = Minecraft.getMinecraft(); | ||
default void onEnable() {}; | ||
|
||
default void onDisable() {}; | ||
|
||
default void onPacket(PacketEvent event) {}; | ||
|
||
default void onUpdate(UpdateEvent event) {}; | ||
|
||
default void onMotion(MotionEvent event) {}; | ||
|
||
} |
43 changes: 43 additions & 0 deletions
43
src/main/java/cc/slack/features/modules/impl/exploit/norotate/impl/EditNoRotate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package cc.slack.features.modules.impl.exploit.norotate.impl; | ||
|
||
import cc.slack.events.impl.network.PacketEvent; | ||
import cc.slack.events.impl.player.UpdateEvent; | ||
import cc.slack.events.impl.player.WorldEvent; | ||
import cc.slack.features.modules.impl.exploit.norotate.INorotate; | ||
import io.github.nevalackin.radbus.Listen; | ||
import net.minecraft.network.Packet; | ||
import net.minecraft.network.play.server.S08PacketPlayerPosLook; | ||
|
||
/** | ||
* @author nyoxy | ||
* @since 10/22/2024 | ||
*/ | ||
public final class EditNoRotate implements INorotate { | ||
@Override | ||
public void onDisable() { | ||
} | ||
|
||
@Listen | ||
public void onWorld(WorldEvent event) { | ||
} | ||
|
||
@Listen | ||
public void onUpdate(UpdateEvent event) { | ||
|
||
} | ||
|
||
@Listen | ||
public void onPacket(PacketEvent event) { | ||
final Packet packet = event.getPacket(); | ||
if(packet instanceof S08PacketPlayerPosLook) { | ||
final S08PacketPlayerPosLook s08PacketPlayerPosLook = (S08PacketPlayerPosLook) packet; | ||
s08PacketPlayerPosLook.pitch = mc.thePlayer.rotationPitch; | ||
s08PacketPlayerPosLook.yaw = mc.thePlayer.rotationYaw; | ||
} | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Edit"; | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
src/main/java/cc/slack/features/modules/impl/exploit/norotate/impl/PacketNoRotate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package cc.slack.features.modules.impl.exploit.norotate.impl; | ||
|
||
import cc.slack.events.impl.network.PacketEvent; | ||
import cc.slack.events.impl.player.UpdateEvent; | ||
import cc.slack.events.impl.player.WorldEvent; | ||
import cc.slack.features.modules.impl.exploit.norotate.INorotate; | ||
import io.github.nevalackin.radbus.Listen; | ||
import net.minecraft.network.Packet; | ||
import net.minecraft.network.play.client.C03PacketPlayer; | ||
import net.minecraft.network.play.server.S08PacketPlayerPosLook; | ||
|
||
/** | ||
* @author nyoxy | ||
* @since 10/22/2024 | ||
*/ | ||
public final class PacketNoRotate implements INorotate { | ||
|
||
private float yaw, pitch; | ||
private boolean teleport; | ||
|
||
@Override | ||
public void onDisable() { | ||
} | ||
|
||
@Listen | ||
public void onWorld(WorldEvent event) { | ||
} | ||
|
||
@Listen | ||
public void onUpdate(UpdateEvent event) { | ||
|
||
} | ||
|
||
@Listen | ||
public void onPacket(PacketEvent event) { | ||
final Packet packet = event.getPacket(); | ||
|
||
if(packet instanceof S08PacketPlayerPosLook) { | ||
final S08PacketPlayerPosLook s08PacketPlayerPosLook = (S08PacketPlayerPosLook) packet; | ||
this.yaw = s08PacketPlayerPosLook.getYaw(); | ||
this.pitch = s08PacketPlayerPosLook.getPitch(); | ||
|
||
s08PacketPlayerPosLook.pitch = mc.thePlayer.rotationPitch; | ||
s08PacketPlayerPosLook.yaw = mc.thePlayer.rotationYaw; | ||
|
||
this.teleport = true; | ||
} | ||
|
||
if (this.teleport && packet instanceof C03PacketPlayer.C06PacketPlayerPosLook) { | ||
final C03PacketPlayer.C06PacketPlayerPosLook p = (C03PacketPlayer.C06PacketPlayerPosLook) packet; | ||
p.yaw = this.yaw; | ||
p.pitch = this.pitch; | ||
event.setPacket(p); | ||
this.teleport = false; | ||
} | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Packet"; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/main/java/cc/slack/features/modules/impl/movement/CustomMotion.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package cc.slack.features.modules.impl.movement; | ||
|
||
import cc.slack.events.impl.player.StrafeEvent; | ||
import cc.slack.features.modules.api.Category; | ||
import cc.slack.features.modules.api.Module; | ||
import cc.slack.features.modules.api.ModuleInfo; | ||
import cc.slack.features.modules.api.settings.impl.NumberValue; | ||
import cc.slack.utils.player.MovementUtil; | ||
import io.github.nevalackin.radbus.Listen; | ||
|
||
@ModuleInfo( | ||
name = "Custom Motion", | ||
category = Category.MOVEMENT | ||
) | ||
public class CustomMotion extends Module { | ||
|
||
private final NumberValue<Float> strength = new NumberValue<>("Speed", 0.3F, 0F, 1F, 0.01F); | ||
|
||
public CustomMotion() { | ||
addSettings(strength); | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
@Listen | ||
public void onStrafe (StrafeEvent event) { | ||
MovementUtil.strafe(strength.getValue()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.