0x0F C0FPacketConfirmTransaction
Client confirms receipt of a S32PacketConfirmTransaction (server inventory transaction).
Published 2026-06-18 · Updated 2026-10-14
Fields
| Field | Type | Description |
|---|---|---|
| windowId | byte | Window ID |
| uid | short | Transaction UID matching the server's confirm packet |
| accepted | boolean | Always true in practice |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Window ID | byte | |
| Action Number | short | |
| Accepted | bool | Almost always true |
MCP References
NetHandlerPlayServer.processConfirmTransaction()Handler Interface
INetHandlerPlayServerVanilla Source
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
Deobfuscated MCP 1.8.9 source of C0FPacketConfirmTransaction, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/client/C0FPacketConfirmTransaction.java) at build time and verified present.
Deep Dive
Role in the protocol
C0F is the client's acknowledgement of a server transaction: windowId, action number (uid), and accepted boolean. It exists to keep container actions and the server's movement/state checks in sync. Because the server sends S32PacketConfirmTransaction after inventory actions and certain checks, the client's C0F echo is the server's clock for latency and state. That makes C0F the backbone of disablers (break the transaction stream), ping spoofers (delay the echo), and velocity filters (spoof the echo to desync the check).
Vanilla handling
processConfirmTransaction is tiny: it looks up the pending action number for the open window and only re-enables crafting if the uid matches and the window matches. Vanilla itself does not time out or penalize missing confirmations; the NetHandlerPlayClient normally echoes S32 back as C0F automatically. This leniency is what disablers exploit: cancel C0F and the server-side container logic stalls without kicking.
Why clients touch it
Every client in the corpus has a Disabler that cancels, delays, or forges C0F (Memeware, Nekoware, Rise 5.99, Rise 6.x suite, Sigma, Spicy, Tenacity). PingSpoof (Rise 5.99, Rise 6.x PingSpoofComponent) parks C0F together with C00 and releases them late. Velocity modules (Rise 5.99 Velocity, Rise 6.2.4 VulcanVelocity) cancel the S32 trigger and answer with a forged C0F so the server believes the transaction completed while the velocity was removed. Rise 6.2.4 Timer parks C0F on the ground to freeze watchdog's transaction clock, and NoVoid/AntiVoid modules cancel C0F while falling. The two new research clients add two more families. November Recode 2.0 mutates C0F on its EventPacket bus: DisablerModule rewrites the uid to Short.MAX_VALUE in its BLOCKS_MC mode, and VelocityModule cancels the C0F echo whose uid matches a cancelled velocity transaction under GRIM, or one C0F per hit under VULCAN. LiquidSense Dev parks C0F in queues (Disabler, PingSpoof), forges a C0F(0, -1, false) sentinel in the Tp and LastestHypixelFly enable sequences, and overwrites the vanilla S32 handler in MixinNetHandlerPlayClient so the echo always fires through the modified send path.
Exploit surface
The accepted boolean and uid are forgeable. Memeware sends C0F(Integer.MIN_VALUE, Short.MAX_VALUE, true) to poison the server's transaction map; Spicy swaps the uid to desync; VulcanVelocity alternates uid 1/-1 to break Vulcan's velocity transaction tracking. The detection surface is the timing: a server that tracks C0F gaps (Verus, Watchdog) flags when the echo arrives outside the expected window, which is why disabler modes pair C0F with C00 delays and flush them together.
Server-Side Handling
processConfirmTransaction: look up the pending action for openContainer.windowId; if the uid matches and crafting was disabled, re-enable crafting. No timeout, no kick, no penalty for a missing or wrong C0F in vanilla. The client handler echoes S32 automatically, and modules hook PacketSendEvent to cancel or mutate that echo.
Protocol Analysis
Fields: windowId byte, actionNumber short, accepted boolean. Window 0 (inventory) transactions are sent frequently during normal play. The uid counter is per-container; S32PacketConfirmTransaction carries the same windowId/uid the server expects echoed. Clients that cancel C0F must still answer S32 for window clicks or the container desyncs.
Anti-Cheat Landscape
Verus and Watchdog use C0F (and C00) gaps as a latency reference for timer and fly checks. The Rise 6.x disabler suite (TransactionDisabler, DynamicPVPDisabler, Verus2Disabler, WatchdogDisabler, LunarDisabler, UniversoCraftDisabler, MMCReachDisabler, ExperimentalDisabler, TestDisabler, ConvertMovingPacketsDisabler) is one mode per AC family. The trade-off: forging uids breaks the container logic visibly (items snap back), delaying keeps containers working but is detectable as a constant lag offset.
implementation Implementation Cases
The transaction echo that disablers live on. Cancel it to stall container logic, delay it to spoof ping, forge it to break velocity checks, or park it to freeze timer-based anti-cheats. Vanilla barely validates it, so the entire game is timing and uid correctness.
Cancel, delay, or forge C0F to break anti-cheat transaction-based checks.
Mode-dependent. Memeware's Transaction/Latest Verus modes cancel C0F and periodically re-send forged ones (C0F(Integer.MIN_VALUE, Short.MAX_VALUE, true) for the autoban channel); Sigma's SagePvP/ColdNetwork modes cancel C0F when id==0 and accepted; Rise 5.99's Disabler has a dozen modes (vulcanCombat, ncp, verus, etc.) that cancel C0F in specific packet windows; Rise 6.x splits this into per-AC disabler modules; Tenacity AdvancedDisablerModule cancels C0F in specific states.
// ===== FILE: Sigma 4.11, info/sigmaclient/module/impl/other/Disabler.java =====
package info.sigmaclient.module.impl.other;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import info.sigmaclient.Client;
import info.sigmaclient.event.Event;
import info.sigmaclient.event.RegisterEvent;
import info.sigmaclient.event.impl.EventPacket;
import info.sigmaclient.event.impl.EventUpdate;
import info.sigmaclient.management.MoveUtils;
import info.sigmaclient.management.notifications.Notifications;
import info.sigmaclient.module.Module;
import info.sigmaclient.module.data.ModuleData;
import info.sigmaclient.module.data.Options;
import info.sigmaclient.module.data.Setting;
import info.sigmaclient.module.impl.movement.Phase;
import info.sigmaclient.util.Timer;
import info.sigmaclient.util.misc.ChatUtil;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBook;
import net.minecraft.item.ItemStack;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.client.C00PacketKeepAlive;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C0APacketAnimation;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import net.minecraft.network.play.server.S00PacketKeepAlive;
import net.minecraft.network.play.server.S02PacketChat;
import net.minecraft.network.play.server.S08PacketPlayerPosLook;
public class Disabler extends Module {
String MODE = "MODE";
boolean faithful = false, watchdog = false, erisium = false;
Timer timer = new Timer();
int lastKey;
String mode;
public Disabler(ModuleData data) {
super(data);
settings.put(MODE, new Setting<>(MODE, new Options("Mode", "Hypixel", new String[]{"Hypixel", "Faithful", "Erisium", "SagePvP", "ColdNetwork"}), "Disabler method."));
}
@Override
public void onEnable() {
if (mc.theWorld == null)
return;
erisium = false;
timer.reset();
mode = ((Options) settings.get(MODE).getValue()).getSelected();
if (mode.equalsIgnoreCase("ViperMC")) {
if (!MoveUtils.isOnGround(0.0001)) {
this.toggle();
Notifications.getManager().post("Disabler", "Try again on ground !", Notifications.Type.WARNING);
}
}
if (mode.equalsIgnoreCase("Hypixel")) {
if (MoveUtils.isOnGround(0.001) && mc.thePlayer.isCollidedVertically) {
double x = mc.thePlayer.posX;
double y = mc.thePlayer.posY;
double z = mc.thePlayer.posZ;
mc.thePlayer.sendQueue.getNetworkManager().sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(x, y + 0.16, z, true));
mc.thePlayer.sendQueue.getNetworkManager().sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(x, y + 0.07, z, true));
watchdog = true;
Notifications.getManager().post("Disabler", "Wait 5s.", Notifications.Type.INFO);
} else {
watchdog = false;
}
} else if (mode.equalsIgnoreCase("Faithful")) {
Notifications.getManager().post("Disabler", "Relog to disable Area 51.", Notifications.Type.INFO);
}
}
@Override
@RegisterEvent(events = {EventUpdate.class, EventPacket.class})
public void onEvent(Event event) {
if (mode == null) {
mode = ((Options) settings.get(MODE).getValue()).getSelected();
}
if (!mode.equalsIgnoreCase(((Options) settings.get(MODE).getValue()).getSelected())) {
mode = ((Options) settings.get(MODE).getValue()).getSelected();
if (mode.equalsIgnoreCase("Faithful")) {
Notifications.getManager().post("Disabler", "Relog to disable Area 51.", Notifications.Type.INFO);
}
}
this.setSuffix(mode);
if (event instanceof EventUpdate) {
EventUpdate em = (EventUpdate) event;
if (em.isPre()) {
if (mc.thePlayer.ticksExisted <= 1) {
erisium = false;
}
if (mode.equalsIgnoreCase("ViperMC")) {
if (timer.delay(3000)) {
em.setY(mc.thePlayer.posY + 0.4);
return;
}
for (int i = 0; i < 10; ++i) {
boolean i2 = i > 2 && i < 8;
double x = i2 ? 0.2 : -0.2D;
C03PacketPlayer.C04PacketPlayerPosition packet = new C03PacketPlayer.C04PacketPlayerPosition(
mc.thePlayer.posX, mc.thePlayer.posY + x, mc.thePlayer.posZ, true);
mc.thePlayer.sendQueue.addToSendQueue(packet);
}
}
if (mode.equalsIgnoreCase("Hypixel"))
if (!watchdog) {
if (MoveUtils.isOnGround(0.001) && mc.thePlayer.isCollidedVertically) {
double x = mc.thePlayer.posX;
double y = mc.thePlayer.posY;
double z = mc.thePlayer.posZ;
mc.thePlayer.sendQueue.getNetworkManager().sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(x, y, z, true));
mc.thePlayer.sendQueue.getNetworkManager().sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(x, y + 0.16, z, true));
mc.thePlayer.sendQueue.getNetworkManager().sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(x, y + 0.07, z, true));
watchdog = true;
Notifications.getManager().post("Disabler", "Please wait 5s.", Notifications.Type.INFO);
}
} else {
mc.thePlayer.motionX = 0;
mc.thePlayer.motionY = 0;
mc.thePlayer.motionZ = 0;
mc.thePlayer.jumpMovementFactor = 0;
mc.thePlayer.noClip = true;
mc.thePlayer.onGround = false;
}
if (mode.equalsIgnoreCase("Erisium")) {
if (erisium && timer.delay(1500)) {
erisium = !erisium;
mc.thePlayer.sendQueue.getNetworkManager().sendPacketNoEvent(new C00PacketKeepAlive(lastKey));
}
}
}
} else if (event instanceof EventPacket) {
EventPacket ep = (EventPacket) event;
Packet p = ep.getPacket();
if (ep.isPre()) {
if (p instanceof C03PacketPlayer) {
if (mode.equalsIgnoreCase("Hypixel") && watchdog) {
ep.setCancelled(true);
}
}
if (p instanceof S08PacketPlayerPosLook) {
S08PacketPlayerPosLook pac = (S08PacketPlayerPosLook) ep.getPacket();
pac.yaw = mc.thePlayer.rotationYaw;
pac.pitch = mc.thePlayer.rotationPitch;
if (watchdog && mode.equalsIgnoreCase("Hypixel")) {
Notifications.getManager().post("Disabler", "You can do what you want for 5s !", Notifications.Type.INFO);
this.toggle();
}
}
if (p instanceof S00PacketKeepAlive) {
S00PacketKeepAlive packet = (S00PacketKeepAlive) p;
int KEY = packet.func_149134_c();
if (mode.equalsIgnoreCase("Erisium")) {
timer.reset();
erisium = true;
lastKey = KEY;
}
}
if (p instanceof C00PacketKeepAlive) {
C00PacketKeepAlive packet = (C00PacketKeepAlive) p;
if (mode.equalsIgnoreCase("Faithful") || mode.equalsIgnoreCase("Erisium") || mode.equalsIgnoreCase("SagePvP") || mode.equalsIgnoreCase("ColdNetwork")) {
ep.setCancelled(true);
}
}
if (p instanceof C0FPacketConfirmTransaction) {
C0FPacketConfirmTransaction packet = (C0FPacketConfirmTransaction) p;
int id = packet.getId();
boolean accepted = packet.isAccepted();
int uid = packet.getUid();
if (id == 0 && accepted)
if (mode.equalsIgnoreCase("SagePvP") || mode.equalsIgnoreCase("ColdNetwork")) {
ep.setCancelled(true);
}
}
}
}
}
}
// NOTE (AI): Sigma 4.11 Disabler: complete file. Lines ~174-182 cancel C0F when id==0 and accepted for SagePvP/ColdNetwork, and cancel C00 for Faithful/Erisium modes. Shows the mode-switch structure.
Inflate measured ping by delaying the C0F (and C00) echo.
Rise 6.2.4 PingSpoofComponent cancels C0F and C00 on the send event, parks them in a queue with a timestamp, and flushes them from PostMotionEvent once the delay elapses. The component API (spoof/blink) lets other modules request the delay for specific packet classes.
// ===== FILE: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/component/impl/player/PingSpoofComponent.java =====
package com.alan.clients.component.impl.player;
import com.alan.clients.component.Component;
import com.alan.clients.event.CancellableEvent;
import com.alan.clients.event.Listener;
import com.alan.clients.event.annotations.EventLink;
import com.alan.clients.event.impl.motion.PostMotionEvent;
import com.alan.clients.event.impl.other.WorldChangeEvent;
import com.alan.clients.event.impl.packet.PacketReceiveEvent;
import com.alan.clients.event.impl.packet.PacketSendEvent;
import com.alan.clients.util.packet.PacketUtil;
import net.minecraft.client.gui.GuiDownloadTerrain;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.*;
import net.minecraft.network.play.server.*;
import net.minecraft.util.Tuple;
import rip.vantage.commons.util.time.StopWatch;
import java.util.Arrays;
import java.util.concurrent.ConcurrentLinkedQueue;
public final class PingSpoofComponent extends Component {
public static ConcurrentLinkedQueue<PacketUtil.TimedPacket> packets = new ConcurrentLinkedQueue<>();
static StopWatch enabledTimer = new StopWatch();
public static boolean enabled;
static long amount;
static Tuple<Class[], Boolean> regular = new Tuple<>(new Class[]{C0FPacketConfirmTransaction.class, C00PacketKeepAlive.class, S1CPacketEntityMetadata.class}, false);
static Tuple<Class[], Boolean> velocity = new Tuple<>(new Class[]{S12PacketEntityVelocity.class, S27PacketExplosion.class}, false);
static Tuple<Class[], Boolean> teleports = new Tuple<>(new Class[]{S08PacketPlayerPosLook.class, S39PacketPlayerAbilities.class, S09PacketHeldItemChange.class}, false);
static Tuple<Class[], Boolean> players = new Tuple<>(new Class[]{S13PacketDestroyEntities.class, S14PacketEntity.class, S14PacketEntity.S16PacketEntityLook.class, S14PacketEntity.S15PacketEntityRelMove.class, S14PacketEntity.S17PacketEntityLookMove.class, S18PacketEntityTeleport.class, S20PacketEntityProperties.class, S19PacketEntityHeadLook.class}, false);
static Tuple<Class[], Boolean> blink = new Tuple<>(new Class[]{C02PacketUseEntity.class, C0DPacketCloseWindow.class, C0EPacketClickWindow.class, C0CPacketInput.class, C0BPacketEntityAction.class, C08PacketPlayerBlockPlacement.class, C07PacketPlayerDigging.class, C09PacketHeldItemChange.class, C13PacketPlayerAbilities.class, C15PacketClientSettings.class, C16PacketClientStatus.class, C17PacketCustomPayload.class, C18PacketSpectate.class, C19PacketResourcePackStatus.class, C03PacketPlayer.class, C03PacketPlayer.C04PacketPlayerPosition.class, C03PacketPlayer.C05PacketPlayerLook.class, C03PacketPlayer.C06PacketPlayerPosLook.class, C0APacketAnimation.class}, false);
static Tuple<Class[], Boolean> movement = new Tuple<>(new Class[]{C03PacketPlayer.class, C03PacketPlayer.C04PacketPlayerPosition.class, C03PacketPlayer.C05PacketPlayerLook.class, C03PacketPlayer.C06PacketPlayerPosLook.class}, false);
public static Tuple<Class[], Boolean>[] types = new Tuple[]{regular, velocity, teleports, players, blink, movement};
@EventLink
public final Listener<PacketSendEvent> send = event -> event.setCancelled(onPacket(event.getPacket(), event).isCancelled());
@EventLink
public final Listener<PacketReceiveEvent> receive = event -> event.setCancelled(onPacket(event.getPacket(), event).isCancelled());
public CancellableEvent onPacket(Packet<?> packet, CancellableEvent event) {
if (!event.isCancelled() && enabled && Arrays.stream(types).anyMatch(tuple -> tuple.getSecond() && Arrays.stream(tuple.getFirst()).anyMatch(regularpacket -> regularpacket == packet.getClass()))) {
event.setCancelled();
packets.add(new PacketUtil.TimedPacket(packet));
}
return event;
}
public static void dispatch() {
if (!packets.isEmpty()) {
// Stops the packets from being called twice
boolean enabled = PingSpoofComponent.enabled;
PingSpoofComponent.enabled = false;
packets.forEach(timedPacket -> PacketUtil.queue(timedPacket.getPacket()));
PingSpoofComponent.enabled = enabled;
packets.clear();
}
}
public static void disable() {
enabled = false;
enabledTimer.setMillis(enabledTimer.millis - 999999999);
}
@EventLink
public final Listener<WorldChangeEvent> onWorldChange = event -> dispatch();
@EventLink
public final Listener<PostMotionEvent> onPostMotion = event -> {
if (!(enabled = !enabledTimer.finished(100) && !(mc.currentScreen instanceof GuiDownloadTerrain))) {
dispatch();
} else {
// Stops the packets from being called twice
enabled = false;
packets.forEach(packet -> {
if (packet.getTime() + amount < System.currentTimeMillis()) {
PacketUtil.queue(packet.getPacket());
packets.remove(packet);
}
});
enabled = true;
}
};
public static void spoof(int amount, boolean regular, boolean velocity, boolean teleports, boolean players) {
spoof(amount, regular, velocity, teleports, players, false);
}
public static void spoof(int amount, boolean regular, boolean velocity, boolean teleports, boolean players, boolean blink, boolean movement) {
enabledTimer.reset();
PingSpoofComponent.regular.setSecond(regular);
PingSpoofComponent.velocity.setSecond(velocity);
PingSpoofComponent.teleports.setSecond(teleports);
PingSpoofComponent.players.setSecond(players);
PingSpoofComponent.blink.setSecond(blink);
PingSpoofComponent.movement.setSecond(movement);
PingSpoofComponent.amount = amount;
}
public static void spoof(int amount, boolean regular, boolean velocity, boolean teleports, boolean players, boolean blink) {
spoof(amount, regular, velocity, teleports, players, blink, false);
}
public static void blink() {
spoof(9999999, true, false, false, false, true);
}
}
// NOTE (AI): Rise 6.2.4 PingSpoofComponent: complete file. The 'regular' tuple (line ~28) parks C0F + C00 + S1C; onPacket cancels and queues (lines ~43-50), PostMotionEvent flushes after the delay (lines ~72-88).
Remove knockback while keeping the server's transaction bookkeeping consistent.
Rise 6.2.4 VulcanVelocity cancels S32PacketConfirmTransaction when hurtTime == 10 (the knockback window) and answers with a forged C0F alternating uid 1/-1, so Vulcan's velocity check believes the transaction completed and the knockback was legitimately absent. Rise 5.99 Velocity cancels C0F/S32 pairs in its own modes.
// ===== FILE: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/module/impl/combat/velocity/VulcanVelocity.java =====
package com.alan.clients.module.impl.combat.velocity;
import com.alan.clients.event.Listener;
import com.alan.clients.event.annotations.EventLink;
import com.alan.clients.event.impl.packet.PacketReceiveEvent;
import com.alan.clients.module.impl.combat.Velocity;
import com.alan.clients.module.impl.movement.Speed;
import com.alan.clients.module.impl.movement.Sprint;
import com.alan.clients.util.packet.PacketUtil;
import com.alan.clients.util.player.MoveUtil;
import com.alan.clients.value.Mode;
import com.alan.clients.value.impl.NumberValue;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.network.play.server.S12PacketEntityVelocity;
import net.minecraft.network.play.server.S27PacketExplosion;
import net.minecraft.network.play.server.S32PacketConfirmTransaction;
public final class VulcanVelocity extends Mode<Velocity> {
private final NumberValue horizontal = new NumberValue("Horizontal", this, 0, 0, 100, 1);
private final NumberValue vertical = new NumberValue("Vertical", this, 0, 0, 100, 1);
private boolean transaction = false;
public VulcanVelocity(String name, Velocity parent) {
super(name, parent);
}
@EventLink
public final Listener<PacketReceiveEvent> onPacketReceiveEvent = event -> {
if (getParent().onSwing.getValue() && !mc.thePlayer.isSwingInProgress || event.isCancelled()) return;
final Packet<?> p = event.getPacket();
final double horizontal = this.horizontal.getValue().doubleValue();
final double vertical = this.vertical.getValue().doubleValue();
if (p instanceof S12PacketEntityVelocity) {
final S12PacketEntityVelocity wrapper = (S12PacketEntityVelocity) p;
if (wrapper.getEntityID() == mc.thePlayer.getEntityId()) {
if (horizontal == 0 && vertical == 0) {
if(!(getModule(Speed.class).mode.getValue().getName()=="Vulcan") || !getModule(Speed.class).isEnabled() || !MoveUtil.isMoving()){
event.setCancelled();
} else {
wrapper.motionX *= 1.9;
wrapper.motionY *= 1;
wrapper.motionZ *=1.9;
}
return;
}
wrapper.motionX *= 1;
wrapper.motionY *= 1;
wrapper.motionZ *=1;
event.setPacket(wrapper);
}
}
if (p instanceof S27PacketExplosion) {
final S27PacketExplosion wrapper = (S27PacketExplosion) p;
if (horizontal == 0 && vertical == 0) {
event.setCancelled();
return;
}
wrapper.posX *= horizontal / 100;
wrapper.posY *= vertical / 100;
wrapper.posZ *= horizontal / 100;
event.setPacket(wrapper);
}
if (p instanceof S32PacketConfirmTransaction && mc.thePlayer.hurtTime == 10) {
event.setCancelled(true);
PacketUtil.send(new C0FPacketConfirmTransaction((short) (transaction ? 1 : -1), (short) (transaction ? -1 : 1), transaction));
transaction = !transaction;
}
};
}
// NOTE (AI): Rise 6.2.4 VulcanVelocity: complete file. Lines ~80-85 cancel S32 at hurtTime==10 and send a forged C0F with alternating uid 1/-1.
Freeze the server's transaction clock by parking S32/C0F on the ground so timer-speed movement is not caught.
Rise 6.2.4 Timer, in watchdog mode, cancels S32PacketConfirmTransaction while on the ground and queues it for later replay, so the server's transaction-based timing reference lags behind the client's accelerated timer. Tenacity TimerModule imports C0F for the same purpose.
// ===== FILE: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/module/impl/other/Timer.java =====
package com.alan.clients.module.impl.other;
import com.alan.clients.Client;
import com.alan.clients.component.impl.player.BlinkComponent;
import com.alan.clients.component.impl.player.PingSpoofComponent;
import com.alan.clients.component.impl.render.NotificationComponent;
import com.alan.clients.event.Listener;
import com.alan.clients.event.Priorities;
import com.alan.clients.event.annotations.EventLink;
import com.alan.clients.event.impl.input.KeyboardInputEvent;
import com.alan.clients.event.impl.input.MoveInputEvent;
import com.alan.clients.event.impl.motion.JumpEvent;
import com.alan.clients.event.impl.motion.PreMotionEvent;
import com.alan.clients.event.impl.motion.PreUpdateEvent;
import com.alan.clients.event.impl.motion.StrafeEvent;
import com.alan.clients.event.impl.other.TeleportEvent;
import com.alan.clients.event.impl.other.TickEvent;
import com.alan.clients.event.impl.packet.PacketReceiveEvent;
import com.alan.clients.event.impl.packet.PacketSendEvent;
import com.alan.clients.module.Module;
import com.alan.clients.module.api.Category;
import com.alan.clients.module.api.ModuleInfo;
import com.alan.clients.module.impl.movement.Flight;
import com.alan.clients.module.impl.player.Scaffold;
import com.alan.clients.util.chat.ChatUtil;
import com.alan.clients.util.math.MathUtil;
import com.alan.clients.util.packet.PacketUtil;
import com.alan.clients.util.packet.custom.impl.PlayPongC2SPacket;
import com.alan.clients.util.player.MoveUtil;
import com.alan.clients.util.player.PlayerUtil;
import com.alan.clients.value.impl.BooleanValue;
import com.alan.clients.value.impl.BoundsNumberValue;
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
import de.florianmichael.vialoadingbase.ViaLoadingBase;
import net.minecraft.client.Minecraft;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.network.play.server.S00PacketKeepAlive;
import net.minecraft.network.play.server.S08PacketPlayerPosLook;
import net.minecraft.network.play.server.S12PacketEntityVelocity;
import net.minecraft.network.play.server.S32PacketConfirmTransaction;
import net.minecraft.util.Vec3;
import org.apache.commons.compress.utils.Lists;
import java.util.List;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ThreadLocalRandom;
@ModuleInfo(aliases = {"module.other.timer.name"}, description = "module.other.timer.description", category = Category.MOVEMENT)
public final class Timer extends Module {
private boolean attempt;
public static ConcurrentLinkedQueue<PacketUtil.TimedPacket> packetList = new ConcurrentLinkedQueue<>();
private int ticksSinceTeleport;
private long ticks2;
private boolean teleport;
private final BoundsNumberValue timer =
new BoundsNumberValue("Timer", this, 1, 2, 0.1, 20, 0.05);
public final BooleanValue watchdog = new BooleanValue("Watchdog", this, false);
@EventLink(value = Priorities.MEDIUM)
public final Listener<PreMotionEvent> onPreMotionEvent = event -> {
if(!watchdog.getValue()) {
mc.timer.timerSpeed = (float) MathUtil.getRandom(timer.getValue().floatValue(), timer.getSecondValue().floatValue());
} else if (watchdog.getValue()){
event.setOnGround(true);
if(attempt && System.currentTimeMillis() > ticks2){
mc.thePlayer.motionX *= 0;
mc.thePlayer.motionZ *= 0;
ticks2 = 0;
getModule(Timer.class).toggle();
}
}
};
@EventLink(value = Priorities.HIGH)
public final Listener<PreUpdateEvent> onHighPreUpdate = event -> {
if(watchdog.getValue()) {
PingSpoofComponent.spoof(9999999, false, false, false, false, true);
mc.thePlayer.safeWalk = true;
}
};
@EventLink
public final Listener<TickEvent> onTick = event -> {
if(watchdog.getValue() && !attempt) {
if (mc.thePlayer.onGround) {
ticksSinceTeleport++;
double x = mc.thePlayer.posX;
double y = mc.thePlayer.posY;
double z = mc.thePlayer.posZ;
float yaw = mc.thePlayer.rotationYaw;
float pitch = mc.thePlayer.rotationPitch;
PacketUtil.send(new C03PacketPlayer.C04PacketPlayerPosition(x, y, z, true));
PacketUtil.send(new C03PacketPlayer.C04PacketPlayerPosition(x, y-0.0000000000000001, z, true));
PacketUtil.send(new C03PacketPlayer.C04PacketPlayerPosition(x, y+ 0.07, z, true));
PacketUtil.send(new C03PacketPlayer.C04PacketPlayerPosition(x, y, z, true));
mc.timer.timerSpeed = (float)(timer.getValue().floatValue());
teleport = true;
} else if(watchdog.getValue()){
// this.mc.timer.timerSpeed = 1;
// MoveUtil.stop();
}
}
};
@EventLink
public final Listener<MoveInputEvent> onMove = event -> {
if(watchdog.getValue()) {
if (mc.thePlayer.onGround && ticksSinceTeleport == 0) {
MoveUtil.stop();
}
}
};
@EventLink
public final Listener<StrafeEvent> onStrafe = event -> {
if(watchdog.getValue()) {
if (attempt) {
MoveUtil.stop();
this.mc.timer.timerSpeed = 1f;
if (mc.thePlayer.onGround) {
packetList.forEach(timedPacket -> PacketUtil.queue(timedPacket.getPacket()));
packetList.clear();
PingSpoofComponent.dispatch();
// mc.thePlayer.jump();
}
}
}
};
@EventLink(value = Priorities.VERY_LOW)
public final Listener<PacketSendEvent> onPacketSend = event -> {
if(watchdog.getValue()) {
if (mc.thePlayer.onGround) {
Packet<?> packet = event.getPacket();
if (packet instanceof S32PacketConfirmTransaction) {
packetList.add(new PacketUtil.TimedPacket(packet));
event.setCancelled();
}
} else {
// packetList.forEach(timedPacket -> PacketUtil.queue(timedPacket.getPacket()));
// packetList.clear();
}
}
};
@EventLink()
public final Listener<PacketReceiveEvent> onPacketReceiveEvent = event -> {
if(watchdog.getValue()) {
final Packet<?> p = event.getPacket();
if (p instanceof S12PacketEntityVelocity) {
final S12PacketEntityVelocity wrapper = (S12PacketEntityVelocity) p;
event.setCancelled();
}
if (p instanceof S08PacketPlayerPosLook) {
event.setCancelled();
}
}
};
@EventLink(value = Priorities.VERY_HIGH)
public final Listener<TeleportEvent> onTeleport = event -> {
};
@EventLink
public final Listener<JumpEvent> onJump = event -> {
if(watchdog.getValue()) {
event.setCancelled();
}
};
@Override
public void onEnable() {
if(watchdog.getValue()) {
mc.thePlayer.stepHeight = 0.0F;
attempt = false;
ticksSinceTeleport = 0;
teleport = false;
ticks2 = 0;
}
}
@Override
public void onDisable() {
if (this.mc.timer.timerSpeed != 1) {
this.mc.timer.timerSpeed = 1;
}
if(watchdog.getValue()){
mc.thePlayer.stepHeight = 0.6F;
mc.thePlayer.motionX *= 0;
mc.thePlayer.motionZ *= 0;
}
}
@EventLink
public final Listener<KeyboardInputEvent> onKey = event -> {
if (watchdog.getValue() && event.getKeyCode() == getModule(Timer.class).getKey() && !attempt) {
ticks2 = System.currentTimeMillis() + 200;
attempt = true;
ChatUtil.display("sent");
event.setCancelled();
}
if (watchdog.getValue() && attempt) {
event.setCancelled();
}
};
}
// NOTE (AI): Rise 6.2.4 Timer: complete file. The watchdog mode (lines ~150-165) parks S32 packets on the ground and cancels them, keeping the transaction clock frozen while timerSpeed runs ahead.
Cancel C0F (and all non-movement packets) while falling into the void so the server never registers the fall.
Rise 5.99 NoVoid cancels every packet except C03 and C0F while the player is falling below a threshold, keeping the movement stream alive but suppressing the confirmations and other state that would let the server finalize the death. Rise 6.2.4 BlinkAntiVoid/WatchdogAntiVoid buffer C0F with a blink component and release on ground contact.
// ===== FILE: Rise 5.99, dev/rise/module/impl/player/NoVoid.java =====
/*
Copyright Alan Wood 2021
None of this code to be reused without my written permission
Intellectual Rights owned by Alan Wood
*/
package dev.rise.module.impl.player;
import dev.rise.Rise;
import dev.rise.event.impl.motion.PreMotionEvent;
import dev.rise.event.impl.packet.PacketSendEvent;
import dev.rise.module.Module;
import dev.rise.module.api.ModuleInfo;
import dev.rise.module.enums.Category;
import dev.rise.module.impl.movement.Fly;
import dev.rise.module.impl.movement.HighJump;
import dev.rise.setting.impl.BooleanSetting;
import dev.rise.setting.impl.ModeSetting;
import dev.rise.setting.impl.NumberSetting;
import dev.rise.util.player.MoveUtil;
import dev.rise.util.player.PacketUtil;
import dev.rise.util.player.PlayerUtil;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.util.Vec3;
import java.util.concurrent.ConcurrentLinkedQueue;
@ModuleInfo(name = "NoVoid", description = "Prevents you from falling into the void", category = Category.PLAYER)
public final class NoVoid extends Module {
private final ModeSetting mode = new ModeSetting("Mode", this, "Flag", "Flag", "Position", "Jump", "Ground", "Matrix", "Hypixel", "Boost", "Blink");
private final NumberSetting fallDistance = new NumberSetting("Fall Distance", this, 5, 1, 10, 0.1);
private final BooleanSetting voidCheck = new BooleanSetting("Void Check", this, true);
private final BooleanSetting showNotifications = new BooleanSetting("Show Notifications", this, false);
private Vec3 lastGround = new Vec3(0, 0, 0);
private boolean saved;
private boolean aBoolean, aBoolean2;
private static final ConcurrentLinkedQueue<Packet<?>> packets = new ConcurrentLinkedQueue<>();
private Vec3 lastServerPosition = null;
@Override
protected void onDisable() {
saved = false;
lastServerPosition = null;
}
@Override
public void onPreMotion(final PreMotionEvent event) {
if (mc.thePlayer.onGround)
lastGround = new Vec3(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ);
final boolean isBlockUnder = PlayerUtil.isBlockUnder();
if ((!isBlockUnder || !voidCheck.isEnabled()) && mc.thePlayer.fallDistance > fallDistance.getValue() && !mc.gameSettings.keyBindSneak.isKeyDown() && !mc.thePlayer.capabilities.isFlying && !this.getModule(Fly.class).isEnabled() && !this.getModule(HighJump.class).isEnabled()) {
if (!saved) {
switch (mode.getMode()) {
case "Flag":
PacketUtil.sendPacket(new C03PacketPlayer.C04PacketPlayerPosition());
break;
case "Jump":
mc.thePlayer.jump();
break;
case "Ground":
event.setGround(true);
break;
case "Matrix":
if ((mc.thePlayer.motionY + mc.thePlayer.posY) < Math.floor(mc.thePlayer.posY)) {
mc.thePlayer.motionY = Math.floor(mc.thePlayer.posY) - mc.thePlayer.posY;
if (mc.thePlayer.motionY == 0)
event.setGround(true);
}
break;
case "Position":
event.setY(event.getY() + mc.thePlayer.fallDistance);
break;
case "Boost":
mc.thePlayer.motionY = 1;
mc.thePlayer.fallDistance = 0;
event.setGround(true);
break;
case "Blink":
if (lastServerPosition == null)
return;
mc.thePlayer.setPosition(lastServerPosition.xCoord, lastServerPosition.yCoord, lastServerPosition.zCoord);
mc.thePlayer.fallDistance = 0;
mc.thePlayer.motionY = 0;
MoveUtil.stop();
aBoolean = true;
break;
case "Hypixel":
break;
}
if (!saved) {
if (showNotifications.isEnabled())
this.registerNotification("Attempted to save you from the void.");
Rise.amountOfVoidSaves++;
saved = true;
}
} else
saved = false;
}
}
@Override
public void onPacketSend(final PacketSendEvent event) {
final Packet<?> p = event.getPacket();
switch (mode.getMode()) {
case "Blink": {
if (!(p instanceof C03PacketPlayer || p instanceof C0FPacketConfirmTransaction))
return;
final boolean blink = mc.thePlayer.fallDistance <= 6 && !PlayerUtil.isBlockUnder() && !this.getModule(Fly.class).isEnabled() && !this.getModule(HighJump.class).isEnabled() && !mc.gameSettings.keyBindSneak.isKeyDown();
if (blink) {
if (lastServerPosition == null)
lastServerPosition = new Vec3(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ);
event.setCancelled(true);
packets.add(p);
} else if (p instanceof C03PacketPlayer) {
if (!(PlayerUtil.isBlockUnder() && !aBoolean))
packets.removeIf(packet -> packet instanceof C03PacketPlayer);
packets.forEach(PacketUtil::sendPacketWithoutEvent);
packets.clear();
lastServerPosition = null;
aBoolean = false;
}
break;
}
case "Hypixel": {
if (p instanceof C03PacketPlayer && (!PlayerUtil.isBlockUnder() ||
!voidCheck.isEnabled()) && mc.thePlayer.fallDistance > fallDistance.getValue() &&
!mc.gameSettings.keyBindSneak.isKeyDown() && !mc.thePlayer.capabilities.isFlying &&
!this.getModule(Fly.class).isEnabled() && !this.getModule(HighJump.class).isEnabled()) {
event.setPacket(new C03PacketPlayer(false));
}
break;
}
}
}
}
// NOTE (AI): Rise 5.99 NoVoid: complete file. Line ~125 cancels everything except C03 and C0F while falling (the anti-void window), then releases on ground.
Velocity cancel that keeps the transaction stream consistent: GRIM mode drops the S32 that follows a cancelled S12 and then cancels the matching outgoing C0F, so the server never sees the velocity transaction complete.
On EventPacket.In, an S12 aimed at the player is cancelled (CANCEL, GRIM, VULCAN) or scaled (REDUCE, REVERSE); under GRIM the following S32PacketConfirmTransaction is cancelled too and its action number is queued. The EventPacket.Out handler then matches every outgoing C0F uid against that queue and cancels the echo when the uid was queued, so the transaction is consumed client-side. VULCAN mode instead cancels one C0F per velocity hit while the funny flag is set. WATCHDOG_SAFE cancels S12 and folds the vertical motion into motionY only while on the ground.
// ===== FILE: November Recode 2.0, feature/module/impl/combat/VelocityModule.java =====
/* November.lol © 2023 */
package lol.november.feature.module.impl.combat;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import lol.november.feature.module.Category;
import lol.november.feature.module.Module;
import lol.november.feature.module.Register;
import lol.november.feature.setting.Setting;
import lol.november.listener.bus.Listener;
import lol.november.listener.bus.Subscribe;
import lol.november.listener.event.net.EventPacket;
import lol.november.listener.event.player.EventUpdate;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.network.play.server.S12PacketEntityVelocity;
import net.minecraft.network.play.server.S32PacketConfirmTransaction;
/**
* @author Gavin
* @since 2.0.0
*/
@Register(
name = "Velocity",
description = "Reduces or cancels out taken velocity",
category = Category.COMBAT
)
public class VelocityModule extends Module {
private final Setting<Mode> mode = new Setting<>("Mode", Mode.CANCEL);
private final Setting<Float> horizontal = new Setting<>(
() -> mode.getValue() == Mode.REDUCE || mode.getValue() == Mode.REVERSE,
"Horizontal",
50.0f,
0.01f,
0.0f,
200.0f
);
private final Setting<Float> vertical = new Setting<>(
() -> mode.getValue() == Mode.REDUCE || mode.getValue() == Mode.REVERSE,
"Vertical",
50.0f,
0.01f,
0.0f,
200.0f
);
private final Queue<Short> transactionQueue = new ConcurrentLinkedQueue<>();
private boolean funny;
@Override
public void disable() {
super.disable();
funny = false;
transactionQueue.clear();
}
@Subscribe
private final Listener<EventUpdate> update = event -> {
if (mode.getValue() == Mode.GRIM) {
// finish trolling
if (transactionQueue.isEmpty() && funny) funny = false;
}
};
@Subscribe
private final Listener<EventPacket.In> packetIn = event -> {
if (mc.thePlayer == null || mc.theWorld == null) {
// basic resets
funny = false;
if (!transactionQueue.isEmpty()) transactionQueue.clear();
return;
}
if (event.get() instanceof S12PacketEntityVelocity packet) {
if (packet.getEntityID() != mc.thePlayer.getEntityId()) return;
switch (mode.getValue()) {
case REDUCE, REVERSE -> {
packet.setMotionX(
(int) (packet.getMotionX() * (horizontal.getValue() / 100.0f))
);
packet.setMotionY(
(int) (packet.getMotionY() * (vertical.getValue() / 100.0f))
);
packet.setMotionZ(
(int) (packet.getMotionZ() * (horizontal.getValue() / 100.0f))
);
if (mode.getValue() == Mode.REVERSE) {
packet.setMotionX(-packet.getMotionX());
packet.setMotionY(-packet.getMotionY());
packet.setMotionZ(-packet.getMotionZ());
}
}
case CANCEL, GRIM, VULCAN -> {
event.setCanceled(true);
if (
mode.getValue() == Mode.GRIM || mode.getValue() == Mode.VULCAN
) funny = true;
}
case INTAVE -> {
// TODO: i have no clue
}
case WATCHDOG -> {
// TODO: frappy or plus add this i dont have alts
}
case WATCHDOG_SAFE -> {
event.setCanceled(true);
if (mc.thePlayer.onGround) {
// as far as im aware, this should work
mc.thePlayer.motionY += (double) packet.getMotionY() / 8000.0;
}
}
}
} else if (event.get() instanceof S32PacketConfirmTransaction packet) {
if (mode.getValue() == Mode.GRIM) {
if (!funny) return;
event.setCanceled(true);
transactionQueue.add(packet.getActionNumber());
}
}
};
@Subscribe
private final Listener<EventPacket.Out> packetOut = event -> {
if (event.get() instanceof C0FPacketConfirmTransaction packet) {
if (mode.getValue() == Mode.GRIM) {
if (!funny || transactionQueue.isEmpty()) return;
// if the queue contains our transaction UID, cancel
if (transactionQueue.remove(packet.getUid())) event.setCanceled(true);
} else if (mode.getValue() == Mode.VULCAN) {
// this works on older versions of vulcan
if (funny) {
event.setCanceled(true);
funny = false;
}
}
}
};
private enum Mode {
REDUCE,
REVERSE,
CANCEL,
GRIM,
INTAVE,
VULCAN,
WATCHDOG,
WATCHDOG_SAFE,
}
}
// NOTE (AI): The full Velocity module: eight modes over S12, with GRIM and VULCAN crossing into C0F territory. GRIM cancels the S32 confirm for the removed velocity, queues its action number, and later cancels the outgoing C0F whose uid matches the queue, consuming the transaction client-side. VULCAN cancels one C0F per hit while the funny flag is set. WATCHDOG_SAFE and INTAVE are stubs with TODO comments.Watchdog-style disabler that parks outgoing C0F and C00 packets in queues, then flushes C0F in small randomized batches so the server's transaction clock lags without the connection dying.
The PacketEvent handler intercepts every C0F not already queued: when the uid digit count is 3 and the disabler is not yet armed it arms (abc = true), clears the queue, and starts the flush cycle; once armed it counts uid digits and, when fewer than 10 transactions have been flushed but the uid grew past 3 digits, flushes the whole queue early. Flushes release 3 to 9 random packets per cycle (or the full queue when the delay is even or divisible by 3 and the queue exceeds 100 entries) through NetworkManager.sendPacket. C00 keepalives get their own queue and are released on a separate timer, and every 155 ticks a C14 tab-complete with a huge random number is fired as a keepalive substitute.
// ===== FILE: LiquidSense Dev, me/AquaVit/liquidSense/modules/misc/Disabler.java =====
package me.AquaVit.liquidSense.modules.misc;
import me.AquaVit.liquidSense.API.MathUtils;
import net.ccbluex.liquidbounce.LiquidBounce;
import net.ccbluex.liquidbounce.event.*;
import net.ccbluex.liquidbounce.features.module.Module;
import net.ccbluex.liquidbounce.features.module.ModuleCategory;
import net.ccbluex.liquidbounce.features.module.ModuleInfo;
import net.ccbluex.liquidbounce.ui.client.hud.element.elements.Notification;
import net.ccbluex.liquidbounce.utils.timer.MSTimer;
import net.ccbluex.liquidbounce.value.IntegerValue;
import net.minecraft.network.INetHandler;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C00PacketKeepAlive;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.network.play.client.C14PacketTabComplete;
import net.minecraft.network.play.server.S08PacketPlayerPosLook;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.MathHelper;
import java.util.*;
@ModuleInfo(name = "Disabler", description = "test", category = ModuleCategory.MISC)
public class Disabler extends Module {
private final IntegerValue c0fBaseDelay = new IntegerValue("C0F-Base", 1500, 100, 2500);
private final IntegerValue c0fRandomDelay = new IntegerValue("C0F-Random", 50, 0, 1000);
private final IntegerValue c00BaseDelay = new IntegerValue("C00-Base", 750, 100, 2500);
private final IntegerValue c00RandomDelay = new IntegerValue("C00-Random", 20, 0, 1000);
private final Queue<C0FPacketConfirmTransaction> c0fList = new LinkedList<>();
private final Queue<C00PacketKeepAlive> c00List = new LinkedList<>();
//budget but maybe its working
private final MSTimer timer = new MSTimer(), timer1 = new MSTimer();
public boolean abc, working;
private int keepAliveId, delay, all;
private final Random random = new Random();
@Override
public void onDisable() {
super.onDisable();
abc = working = false;
c0fList.clear();
c00List.clear();
while (!c0fList.isEmpty())
mc.thePlayer.sendQueue.addToSendQueue(c0fList.poll());
while (!c00List.isEmpty())
mc.thePlayer.sendQueue.addToSendQueue(c00List.poll());
}
@EventTarget
public void onUpdate(UpdateEvent e) {
if (mc.isSingleplayer())
working = true;
if (mc.thePlayer.ticksExisted <= 1) {
abc = working = false;
c0fList.clear();
c00List.clear();
all = 0;
}
if (abc && timer.hasTimePassed(delay)) {
int count = 0, total = (delay % 2 == 0 || delay % 3 == 0) && c0fList.size() > 100 ? c0fList.size() : MathHelper.getRandomIntegerInRange(random, 3, 9);
synchronized (c0fList) {
while (!c0fList.isEmpty() && count < total) {
C0FPacketConfirmTransaction packet = c0fList.peek();
if (packet == null)
break;
mc.getNetHandler().getNetworkManager().sendPacket(packet);
c0fList.remove(packet);
count++;
}
}
C00PacketKeepAlive packetKeepAlive = new C00PacketKeepAlive(keepAliveId++);
synchronized (c00List) {
c00List.add(packetKeepAlive);
mc.getNetHandler().getNetworkManager().sendPacket(packetKeepAlive);
c00List.remove(packetKeepAlive);
}
all += count;
if (!working) {
working = true;
mc.thePlayer.addChatMessage(new ChatComponentText("§8[§9§l" +LiquidBounce.CLIENT_NAME+ "§8] §3"+ "Watchdoge left the game!"));
}
delay = MathHelper.getRandomIntegerInRange(random, c0fBaseDelay.get(), c0fBaseDelay.get() + c0fRandomDelay.get());
timer.reset();
}
if (timer1.hasTimePassed(MathHelper.getRandomIntegerInRange(random, c00BaseDelay.get(), c00BaseDelay.get() + c00RandomDelay.get()))) {
synchronized (c00List) {
C00PacketKeepAlive packet = c00List.peek();
if (packet != null) {
if (!abc)
keepAliveId = packet.getKey();
mc.getNetHandler().getNetworkManager().sendPacket(packet);
c00List.remove(packet);
timer1.reset();
}
}
}
if (abc && mc.thePlayer.ticksExisted % 155 == 0)
mc.getNetHandler().getNetworkManager().sendPacket(new C14PacketTabComplete("/" + MathHelper.getRandomDoubleInRange(random, 10e19, 10e20)));
}
@EventTarget
public void onPacket(PacketEvent e) {
if (e.getPacket() instanceof C00PacketKeepAlive && !c00List.contains(e.getPacket())) {
c00List.add((C00PacketKeepAlive) e.getPacket());
e.cancelEvent();
}
if (e.getPacket() instanceof C0FPacketConfirmTransaction && !c0fList.contains(e.getPacket())) {
int count = ("" + Math.abs(((C0FPacketConfirmTransaction) e.getPacket()).getUid())).length();
if (!abc && count == 3) {
abc = true;
c0fList.clear();
timer.reset();
c0fList.add((C0FPacketConfirmTransaction) e.getPacket());
e.cancelEvent();
} else if (abc) {
if (all < 10 && count > 3) {
while (!c0fList.isEmpty())
mc.getNetHandler().getNetworkManager().sendPacket(c0fList.poll());
timer.reset();
return;
}
c0fList.add((C0FPacketConfirmTransaction) e.getPacket());
e.cancelEvent();
}
}
}
}
// NOTE (AI): The full LiquidSense disabler: C0F and C00 are parked in queues, C0F is flushed in randomized 3-9 packet batches gated by the abc arm flag, the uid-digit length is used to detect the Watchdog session start, and the C14 tab-complete spam every 155 ticks substitutes for keepalives. The onDisable drain replays everything through the send queue.Inflate measured ping by parking C0F and C00 in a timestamped map and releasing them after a random delay.
PacketEvent cancels any C0F or C00 while the player is alive and not already parked, storing release time = now + randomDelay(min, max). UpdateEvent with ignoreCondition (so it runs while the module is off) sweeps the map and re-queues entries whose timestamp passed via addToSendQueue. The min and max delay settings clamp each other on change.
// ===== FILE: LiquidSense Dev, net/ccbluex/liquidbounce/features/module/modules/exploit/PingSpoof.java =====
/*
* LiquidBounce Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
* https://github.com/CCBlueX/LiquidBounce/
*/
package net.ccbluex.liquidbounce.features.module.modules.exploit;
import net.ccbluex.liquidbounce.LiquidBounce;
import net.ccbluex.liquidbounce.event.*;
import net.ccbluex.liquidbounce.features.module.Module;
import net.ccbluex.liquidbounce.features.module.ModuleCategory;
import net.ccbluex.liquidbounce.features.module.ModuleInfo;
import net.ccbluex.liquidbounce.features.module.modules.movement.Fly;
import net.ccbluex.liquidbounce.utils.misc.RandomUtils;
import net.ccbluex.liquidbounce.utils.timer.TimeUtils;
import net.ccbluex.liquidbounce.value.IntegerValue;
import net.minecraft.network.Packet;
import net.minecraft.network.login.server.S00PacketDisconnect;
import net.minecraft.network.play.client.C00PacketKeepAlive;
import net.minecraft.network.play.client.C0CPacketInput;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.network.play.client.C16PacketClientStatus;
import net.minecraft.network.play.server.S27PacketExplosion;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
@ModuleInfo(name = "PingSpoof", description = "Spoofs your ping to a given value.", category = ModuleCategory.EXPLOIT)
public class PingSpoof extends Module {
private final IntegerValue maxDelayValue = new IntegerValue("MaxDelay", 1000, 0, 5000) {
@Override
protected void onChanged(final Integer oldValue, final Integer newValue) {
final int minDelayValue = PingSpoof.this.minDelayValue.get();
if(minDelayValue > newValue)
set(minDelayValue);
}
};
private final IntegerValue minDelayValue = new IntegerValue("MinDelay", 500, 0, 5000) {
@Override
protected void onChanged(final Integer oldValue, final Integer newValue) {
final int maxDelayValue = PingSpoof.this.maxDelayValue.get();
if(maxDelayValue < newValue)
set(maxDelayValue);
}
};
private final HashMap<Packet<?>, Long> packetsMap = new HashMap<>();
@Override
public void onDisable() {
packetsMap.clear();
}
@EventTarget
public void onPacket(final PacketEvent event) {
final Packet packet = event.getPacket();
if ((packet instanceof C0FPacketConfirmTransaction || packet instanceof C00PacketKeepAlive) && !(mc.thePlayer.isDead || mc.thePlayer.getHealth() <= 0) && !packetsMap.containsKey(packet)) {
synchronized(packetsMap) {
packetsMap.put(packet, System.currentTimeMillis() + TimeUtils.randomDelay(minDelayValue.get(), maxDelayValue.get()));
}
event.cancelEvent();
}
}
@EventTarget(ignoreCondition = true)
public void onUpdate(final UpdateEvent event) {
try {
synchronized(packetsMap) {
for(final Iterator<Map.Entry<Packet<?>, Long>> iterator = packetsMap.entrySet().iterator(); iterator.hasNext(); ) {
final Map.Entry<Packet<?>, Long> entry = iterator.next();
if(entry.getValue() < System.currentTimeMillis()) {
mc.getNetHandler().addToSendQueue(entry.getKey());
iterator.remove();
}
}
}
}catch(final Throwable t) {
t.printStackTrace();
}
}
}
// NOTE (AI): The full LiquidBounce PingSpoof: C0F and C00 are parked in a HashMap with release timestamps drawn from a random min-max delay, and the ignoreCondition update handler flushes expired entries even while the module is off. The min/max settings clamp each other on change.Forge a C0F(0, -1, false) echo on enable as the first step of the Hypixel teleport and flight rigs, desynchronizing the server's transaction expectation before the C04 teleport hops.
Both modules queue new C0FPacketConfirmTransaction(0, (short)(-1), false) through addToSendQueue immediately on enable, right before the C13 ability declaration and the two C04 position hops at y+0.17 and y+0.06. The forged uid -1 cannot match any pending server action, so the echo is silently dropped by the vanilla handler while the movement packets that follow do the real work.
// ===== FILE: LiquidSense Dev, me/AquaVit/liquidSense/modules/world/Tp.java =====
package me.AquaVit.liquidSense.modules.world;
import net.ccbluex.liquidbounce.event.EventTarget;
import net.ccbluex.liquidbounce.event.MoveEvent;
import net.ccbluex.liquidbounce.event.PacketEvent;
import net.ccbluex.liquidbounce.event.TickEvent;
import net.ccbluex.liquidbounce.features.module.Module;
import net.ccbluex.liquidbounce.features.module.ModuleCategory;
import net.ccbluex.liquidbounce.features.module.ModuleInfo;
import net.ccbluex.liquidbounce.utils.ClientUtils;
import net.ccbluex.liquidbounce.utils.CustomVec3;
import net.ccbluex.liquidbounce.utils.PathfindingUtils;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.client.network.NetHandlerPlayClient;
import net.minecraft.entity.player.PlayerCapabilities;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C0CPacketInput;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.network.play.client.C13PacketPlayerAbilities;
import net.minecraft.network.play.server.S08PacketPlayerPosLook;
import static net.ccbluex.liquidbounce.utils.MovementUtils.getMaxFallDist;
@ModuleInfo(name = "Tp",description = "Allows you to teleport around.", category = ModuleCategory.WORLD,array = false)
public class Tp extends Module {
public static float x;
public static float y;
public static float z;
boolean tp;
@Override
public void onEnable() {
if (mc.thePlayer == null)
return;
tp = false;
ClientUtils.displayChatMessage("Wait For Server LagBack");
PlayerCapabilities playerCapabilities = new PlayerCapabilities();
playerCapabilities.isFlying = true;
mc.getNetHandler().addToSendQueue(new C0FPacketConfirmTransaction(0, (short)(-1), false));
mc.getNetHandler().addToSendQueue(new C13PacketPlayerAbilities(playerCapabilities));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX,
mc.thePlayer.posY + 0.17, mc.thePlayer.posZ, true));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX,
mc.thePlayer.posY + 0.06, mc.thePlayer.posZ, true));
mc.thePlayer.stepHeight = 0.0f;
mc.thePlayer.motionX = 0.0;
mc.thePlayer.motionZ = 0.0;
}
@Override
public void onDisable() {
mc.timer.timerSpeed = 1.0f;
mc.thePlayer.stepHeight = 0.625f;
mc.thePlayer.motionX = 0.0;
mc.thePlayer.motionZ = 0.0;
}
@EventTarget
public void onTick(TickEvent event) {
if (tp) {
double offset = 0.060100000351667404;
NetHandlerPlayClient netHandler = mc.getNetHandler();
EntityPlayerSP player = mc.thePlayer;
double x2 = player.posX;
double y2 = player.posY;
double z2 = player.posZ;
int i = 0;
while (i < getMaxFallDist() / 0.05510000046342611 + 1.0) {
netHandler.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(x2, y2 + 0.060100000351667404, z2, false));
netHandler.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(x2, y2 + 5.000000237487257E-4, z2, false));
netHandler.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(x2, y2 + 0.004999999888241291 + 6.01000003516674E-8, z2, false));
++i;
}
netHandler.addToSendQueue(new C03PacketPlayer(true));
mc.getNetHandler().addToSendQueue(new C0CPacketInput(0.0f, 0.0f, true, true));
double lastY = mc.thePlayer.posY, downY = 0;
for (CustomVec3 vec3 : PathfindingUtils.computePath(
new CustomVec3(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ),
new CustomVec3(x, y, z))) {
if (vec3.getY() < lastY) {
downY += (lastY - vec3.getY());
}
if (downY > 2.5) {
downY = 0;
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(vec3.getX(),
vec3.getY(), vec3.getZ(), true));
} else {
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(vec3.getX(),
vec3.getY(), vec3.getZ(), false));
}
lastY = vec3.getY();
}
//Teleported
mc.thePlayer.setPosition(x, y, z);
this.setState(false);
}
}
@EventTarget
public void onMove(MoveEvent e) {
if (!tp) {
e.cancelEvent();
}
}
@EventTarget
public final void onSendPacket(PacketEvent event) {
if (!tp && event.getPacket() instanceof C03PacketPlayer) {
event.cancelEvent();
}
if (event.getPacket() instanceof S08PacketPlayerPosLook) {
if (!this.tp) {
this.tp = true;
ClientUtils.displayChatMessage("Start TelePort");
}
}
}
}
// NOTE (AI): The full Tp module: on enable it declares isFlying with C13, forges the C0F(0, -1, false) sentinel, and hops two C04 packets, then waits for the S08 go signal to walk the pathfinding route with fall-distance C04 hops and a C0C input. The transaction sentinel at the top of onEnable is the corpus hit.Overwrite the vanilla S32 handler so the C0F echo always runs on the client thread and goes through LiquidSense's modified send queue.
The @Overwrite handleConfirmTransaction re-implements NetHandlerPlayClient's logic: resolve the container for window 0 or the open container, and when the server did not accept, queue C0F(windowId, actionNumber, true). Because the mixin replaces the vanilla method, the echo is emitted even when other event handlers cancel packets, keeping the inventory state machine alive. The same mixin forces the MC|Brand C17 on join and fires EntityMovementEvent from S14 handling, and its addToSendQueue injection raises PacketSenEvent for every outgoing packet.
// ===== FILE: LiquidSense Dev, net/ccbluex/liquidbounce/injection/forge/mixins/network/MixinNetHandlerPlayClient.java =====
/*
* LiquidBounce Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
* https://github.com/CCBlueX/LiquidBounce/
*/
package net.ccbluex.liquidbounce.injection.forge.mixins.network;
import io.netty.buffer.Unpooled;
import net.ccbluex.liquidbounce.LiquidBounce;
import net.ccbluex.liquidbounce.event.EntityMovementEvent;
import net.ccbluex.liquidbounce.event.PacketSenEvent;
import net.ccbluex.liquidbounce.features.module.modules.movement.Fly;
import net.ccbluex.liquidbounce.features.special.AntiForge;
import net.ccbluex.liquidbounce.utils.ClientUtils;
import net.minecraft.client.ClientBrandRetriever;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.client.gui.GuiDownloadTerrain;
import net.minecraft.client.multiplayer.PlayerControllerMP;
import net.minecraft.client.multiplayer.WorldClient;
import net.minecraft.client.network.NetHandlerPlayClient;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.network.*;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import net.minecraft.network.play.client.C19PacketResourcePackStatus;
import net.minecraft.network.play.server.S01PacketJoinGame;
import net.minecraft.network.play.server.S14PacketEntity;
import net.minecraft.network.play.server.S32PacketConfirmTransaction;
import net.minecraft.network.play.server.S48PacketResourcePackSend;
import net.minecraft.world.WorldSettings;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import java.net.URI;
import java.net.URISyntaxException;
@Mixin(NetHandlerPlayClient.class)
public abstract class MixinNetHandlerPlayClient {
@Shadow
@Final
private NetworkManager netManager;
@Shadow
private Minecraft gameController;
@Shadow
private WorldClient clientWorldController;
@Shadow
public int currentServerMaxPlayers;
@Inject(method = "handleResourcePack", at = @At("HEAD"), cancellable = true)
private void handleResourcePack(final S48PacketResourcePackSend p_handleResourcePack_1_, final CallbackInfo callbackInfo) {
final String url = p_handleResourcePack_1_.getURL();
final String hash = p_handleResourcePack_1_.getHash();
try {
final String scheme = new URI(url).getScheme();
final boolean isLevelProtocol = "level".equals(scheme);
if(!"http".equals(scheme) && !"https".equals(scheme) && !isLevelProtocol)
throw new URISyntaxException(url, "Wrong protocol");
if(isLevelProtocol && (url.contains("..") || !url.endsWith("/resources.zip")))
throw new URISyntaxException(url, "Invalid levelstorage resourcepack path");
}catch(final URISyntaxException e) {
ClientUtils.getLogger().error("Failed to handle resource pack", e);
netManager.sendPacket(new C19PacketResourcePackStatus(hash, C19PacketResourcePackStatus.Action.FAILED_DOWNLOAD));
callbackInfo.cancel();
}
}
@Inject(method = "handleJoinGame", at = @At("HEAD"), cancellable = true)
private void handleJoinGameWithAntiForge(S01PacketJoinGame packetIn, final CallbackInfo callbackInfo) {
if(!AntiForge.enabled || !AntiForge.blockFML || Minecraft.getMinecraft().isIntegratedServerRunning())
return;
PacketThreadUtil.checkThreadAndEnqueue(packetIn, (NetHandlerPlayClient) (Object) this, gameController);
this.gameController.playerController = new PlayerControllerMP(gameController, (NetHandlerPlayClient) (Object) this);
this.clientWorldController = new WorldClient((NetHandlerPlayClient) (Object) this, new WorldSettings(0L, packetIn.getGameType(), false, packetIn.isHardcoreMode(), packetIn.getWorldType()), packetIn.getDimension(), packetIn.getDifficulty(), this.gameController.mcProfiler);
this.gameController.gameSettings.difficulty = packetIn.getDifficulty();
this.gameController.loadWorld(this.clientWorldController);
this.gameController.thePlayer.dimension = packetIn.getDimension();
this.gameController.displayGuiScreen(new GuiDownloadTerrain((NetHandlerPlayClient) (Object) this));
this.gameController.thePlayer.setEntityId(packetIn.getEntityId());
this.currentServerMaxPlayers = packetIn.getMaxPlayers();
this.gameController.thePlayer.setReducedDebug(packetIn.isReducedDebugInfo());
this.gameController.playerController.setGameType(packetIn.getGameType());
this.gameController.gameSettings.sendSettingsToServer();
this.netManager.sendPacket(new C17PacketCustomPayload("MC|Brand", (new PacketBuffer(Unpooled.buffer())).writeString(ClientBrandRetriever.getClientModName())));
callbackInfo.cancel();
}
@Inject(method = "handleEntityMovement", at = @At(value = "FIELD", target = "Lnet/minecraft/entity/Entity;onGround:Z"))
private void handleEntityMovementEvent(S14PacketEntity packetIn, final CallbackInfo callbackInfo) {
final Entity entity = packetIn.getEntity(this.clientWorldController);
if(entity != null)
LiquidBounce.eventManager.callEvent(new EntityMovementEvent(entity));
}
@Inject(method = "addToSendQueue", at = @At("HEAD"), cancellable = true)
private void senpacket(Packet<?> packet, final CallbackInfo callbackInfo) {
final PacketSenEvent event = new PacketSenEvent(packet);
LiquidBounce.eventManager.callEvent(event);
if (event.isCancelled()) {
callbackInfo.cancel();
}
}
@Overwrite
public void handleConfirmTransaction(S32PacketConfirmTransaction packetIn) {
PacketThreadUtil.checkThreadAndEnqueue((Packet)packetIn, (INetHandler)this, this.gameController);
Container container = null;
EntityPlayerSP entityplayer = Minecraft.getMinecraft().thePlayer;
if (packetIn.getWindowId() == 0) {
container = entityplayer.inventoryContainer;
} else if (packetIn.getWindowId() == entityplayer.openContainer.windowId) {
container = entityplayer.openContainer;
}
if (container != null && !packetIn.func_148888_e()) {
Minecraft.getMinecraft().getNetHandler().addToSendQueue(new C0FPacketConfirmTransaction(packetIn.getWindowId(), packetIn.getActionNumber(), true));
}
}
}
// NOTE (AI): The full mixin: the @Overwrite of handleConfirmTransaction re-emits the C0F echo for window 0 or the open container when the server did not accept, the handleJoinGame injection forces MC|Brand, and the addToSendQueue injection raises PacketSenEvent so every send is visible to modules.anticheat Anti-Cheat Checks
The transaction confirmation packet is the client's acknowledgement of a server transaction, and it gives anticheats a clean client-to-server round trip that is independent of the keepalive channel. That makes it the timing primitive for the timer and pingspoof check domains: Grim's Timer anchors the movement clock to the first confirmation after each movement, Frequency PingSpoofA compares the transaction ping against the keepalive ping, and classic timers (Azure, Negativity) use the same packet stream to discipline the movement rate.
Ping-anchored timer check: the movement clock must never run ahead of the transaction round trip.
A PrePredictionPacketReceiveListener. When a movement has been seen and the next WINDOW_CONFIRMATION (or PONG) arrives, it updates the known player clock from the movement clock. Each tick packet adds 50 ms to a real-time balance; when the balance overtakes System.nanoTime() the client is running faster than real time, the check flags, cancels the packet, and executes a setback. A clock-drift floor keeps the balance from falling behind the player's ping.
// ===== FILE: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/checks/impl/timer/Timer.java =====
package ac.grim.grimac.checks.impl.timer;
import ac.grim.grimac.api.config.ConfigManager;
import ac.grim.grimac.checks.Check;
import ac.grim.grimac.checks.CheckData;
import ac.grim.grimac.checks.type.PrePredictionPacketReceiveListener;
import ac.grim.grimac.player.GrimPlayer;
import com.github.retrooper.packetevents.event.PacketReceiveEvent;
import com.github.retrooper.packetevents.protocol.packettype.PacketType;
import com.github.retrooper.packetevents.protocol.packettype.PacketTypeCommon;
import org.jetbrains.annotations.NotNull;
@CheckData(name = "Timer", stableKey = "grim.timer.timer", configName = "TimerA", description = "The players game is running faster than normal", setback = 10)
public class Timer extends Check implements PrePredictionPacketReceiveListener {
protected long timerBalanceRealTime = 0;
// Default value is real time minus max keep-alive time
protected long knownPlayerClockTime = (long) (System.nanoTime() - 6e10);
protected long lastMovementPlayerClock = (long) (System.nanoTime() - 6e10);
// How long should the player be able to fall back behind their ping? (nanos)
// Default: 120 milliseconds
protected long clockDrift;
protected boolean hasGottenMovementAfterTransaction = false;
// Proof for this timer check
// https://i.imgur.com/Hk2Wb6c.png
//
// The largest gap will always be the transaction ping (server -> client -> server)
// Proof lies that client -> server ping will always be lower
//
// The largest gap is the floor for movements
// If the smaller gap surpasses the larger gap, the player is cheating
//
// This usually flags 1.01 on low ping extremely quickly
// Higher ping/low fps scales proportionately, and will flag less quickly but will still always flag 1.01
// Players standing still will reset this amount of time
//
// This is better than traditional timer checks because ping fluctuations will never affect this check
// As we are tying this check to the player's ping, rather than real time.
//
// Tested 10/20/30 fps and f3 + t spamming for lag spikes at 0 ping localhost/200 ping clumsy, no falses
// Also didn't false when going from 0 -> 2000 ms ping, and 2000 ms -> 0 ms ping
// it's a very nice check, in my opinion. I guess I will find out if netty lag can false it
// You might notice that we deviate a bit from this to handle lag
// We take the FIRST transaction after each movement, to avoid issues with this packet order at low FPS:
// TRANSACTION TRANSACTION TRANSACTION MOVEMENT MOVEMENT MOVEMENT
// TRANSACTION TRANSACTION TRANSACTION MOVEMENT MOVEMENT MOVEMENT
//
// We then take the last transaction before this to increase stability with these lag spikes and
// to guarantee that we are at least 50 ms back before adding the time
public Timer(GrimPlayer player) {
super(player);
}
@Override
public void onPrePredictionPacketReceive(final PacketReceiveEvent event) {
if (hasGottenMovementAfterTransaction && checkForTransaction(event.getPacketType())) {
knownPlayerClockTime = lastMovementPlayerClock;
lastMovementPlayerClock = player.getPlayerClockAtLeast();
hasGottenMovementAfterTransaction = false;
}
if (!shouldCountPacketForTimer(event.getPacketType())) return;
hasGottenMovementAfterTransaction = true;
timerBalanceRealTime += 50e6;
doCheck(event);
}
public void doCheck(final PacketReceiveEvent event) {
if (timerBalanceRealTime > System.nanoTime()) {
if (flag()) {
// Cancel the packet
if (shouldModifyPackets()) {
event.setCancelled(true);
player.onPacketCancel();
}
if (shouldSetback()) {
player.getSetbackTeleportUtil().executeNonSimulatingSetback();
}
}
// Reset the violation by 1 movement
timerBalanceRealTime -= 50e6;
}
limitFallBehind();
}
protected void limitFallBehind() {
timerBalanceRealTime = Math.max(timerBalanceRealTime, lastMovementPlayerClock - clockDrift);
}
public boolean checkForTransaction(PacketTypeCommon packetType) {
return packetType == PacketType.Play.Client.PONG ||
packetType == PacketType.Play.Client.WINDOW_CONFIRMATION;
}
public boolean shouldCountPacketForTimer(PacketTypeCommon packetType) {
// If not flying, or this was a teleport, or this was a duplicate 1.17 mojang stupidity packet
return isTickPacket(packetType);
}
@Override
public void onReload(@NotNull ConfigManager config) {
clockDrift = (long) (config.getDoubleElse(getConfigName() + ".drift", 120.0) * 1e6);
}
}
// NOTE (AI): Grim's Timer is anchored to the transaction ping: it takes the first WINDOW_CONFIRMATION after each movement and compares the movement clock against it, so ping fluctuation cannot false the check. The largest gap is the transaction round trip; when the movement gap exceeds it, the game is running faster than normal.
Transaction-vs-keepalive ping comparison: a pingspoofer inflates the transaction ping, not the keepalive ping.
On each flying packet it reads the transaction ping (measured from the transaction packets) and the keepalive ping. If the player has been online for more than 10 ticks and is not exempt (lagging, teleporting, TPS, chunk), a transaction ping that exceeds the keepalive ping by more than 50 ms fails the check.
// ===== FILE: ElevatedDev-Frequency, src/main/java/xyz/elevated/frequency/check/impl/pingspoof/PingSpoofA.java =====
package xyz.elevated.frequency.check.impl.pingspoof;
import xyz.elevated.frequency.check.CheckData;
import xyz.elevated.frequency.check.type.PacketCheck;
import xyz.elevated.frequency.data.PlayerData;
import xyz.elevated.frequency.exempt.type.ExemptType;
import xyz.elevated.frequency.wrapper.impl.client.WrappedPlayInFlying;
@CheckData(name = "PingSpoof (A)")
public final class PingSpoofA extends PacketCheck {
public PingSpoofA(final PlayerData playerData) {
super(playerData);
}
@Override
public void process(final Object object) {
if (object instanceof WrappedPlayInFlying) {
final long transactionPing = playerData.getTransactionPing().get();
final long keepAlivePing = playerData.getKeepAlivePing().get();
final boolean joined = playerData.getTicks().get() - playerData.getJoined().get() < 10;
final boolean exempt = this.isExempt(ExemptType.LAGGING, ExemptType.TELEPORTING, ExemptType.TPS, ExemptType.CHUNK);
if (!exempt && !joined && transactionPing > keepAlivePing && Math.abs(transactionPing - keepAlivePing) > 50) fail();
}
}
}
// NOTE (AI): Frequency PingSpoofA compares the transaction ping with the keepalive ping: when the transaction round trip exceeds the keepalive round trip by more than 50 ms, the client is holding transaction responses to fake a higher ping.
Classic 1.8 flying-delay timer: the interval between movement packets must stay near 50 ms.
On every PacketPlayInFlying it measures the delay from the previous packet. Intervals below 47 ms accumulate a threshold and compute the timer speed as 50 divided by the actual delay; after 7 consecutive fast intervals it raises a violation with the speed percentage. Intervals above 70 ms decay the threshold by 3, and a teleport resets it to -10.
// ===== FILE: AimbotPvP-azure-anticheat, src/main/java/us/skidrevenant/azure/check/checks/misc/timer/Timer.java =====
package us.skidrevenant.azure.check.checks.misc.timer;
import net.minecraft.server.v1_8_R3.Packet;
import net.minecraft.server.v1_8_R3.PacketPlayInFlying;
import net.minecraft.server.v1_8_R3.PacketPlayOutPosition;
import us.skidrevenant.azure.check.Check;
import us.skidrevenant.azure.stats.PlayerStats;
/**
* @author SkidRevenant
* at 28/05/2018
*/
public class Timer extends Check {
private long lastFlying;
private int threshold;
public Timer(PlayerStats player) {
super(player);
}
@Override
public void onPacketReceiving(Class<? extends Packet> type, Packet packet) {
if (packet instanceof PacketPlayInFlying) {
long now = System.currentTimeMillis();
if (lastFlying + 47L > now) {
double timerSpeed = 50.0 / (now - lastFlying);
if (++threshold > 7) {
onViolation(String.format("Timer Type A (%d%s, %dL)", Math.min(Math.round(timerSpeed * 100), 5000), "%", (now - lastFlying)), 60000L, 3);
}
} else if (lastFlying + 70L < now) {
threshold -= 3;
} else if (threshold > 0) {
threshold--;
}
lastFlying = now;
}
}
@Override
public void onPacketSend(Class<? extends Packet> type, Packet packet) {
if (type == PacketPlayOutPosition.class) {
threshold = -10;
}
}
}
// NOTE (AI): Azure Timer is the classic 1.8 flying-delay timer: it measures the interval between flying packets, computes a timer speed of 50 divided by the actual delay, and flags after 7 consecutive sub-47 ms intervals. The sibling TimerB check and the PingSpoof check cover the transaction-based side.
Packet-budget timer: the number of movement packets per second must not exceed the server tick rate.
On each packet-clear cycle it counts flying, position, look and position-look packets into a rolling per-second list, keeping the last 5 seconds. The mean and median of the counts are compared against the tick budget (20, or 40 in creative, plus a configured variation). An overflow of both mean and median alerts with a confidence derived from the player ping.
// ===== FILE: Elikill58-Negativity, src/com/elikill58/negativity/spigot/protocols/TimerProtocol.java =====
package com.elikill58.negativity.spigot.protocols;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import org.bukkit.GameMode;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import com.elikill58.negativity.spigot.SpigotNegativity;
import com.elikill58.negativity.spigot.SpigotNegativityPlayer;
import com.elikill58.negativity.spigot.listeners.PlayerPacketsClearEvent;
import com.elikill58.negativity.universal.Cheat;
import com.elikill58.negativity.universal.CheatKeys;
import com.elikill58.negativity.universal.PacketType;
import com.elikill58.negativity.universal.ReportType;
import com.elikill58.negativity.universal.adapter.Adapter;
import com.elikill58.negativity.universal.utils.UniversalUtils;
public class TimerProtocol extends Cheat implements Listener {
public TimerProtocol() {
super(CheatKeys.TIMER, true, Material.PACKED_ICE, CheatCategory.MOVEMENT, true);
}
@EventHandler
public void onPacketClear(PlayerPacketsClearEvent e) {
SpigotNegativityPlayer np = e.getNegativityPlayer();
if(!np.hasDetectionActive(this))
return;
HashMap<PacketType, Integer> packets = e.getPackets();
int flying = packets.getOrDefault(PacketType.Client.FLYING, 0);
int position = packets.getOrDefault(PacketType.Client.POSITION, 0);
int look = packets.getOrDefault(PacketType.Client.LOOK, 0);
int positonLook = packets.getOrDefault(PacketType.Client.POSITION_LOOK, 0);
int count = flying + look + position + positonLook;
np.TIMER_COUNT.add(count);
if(np.TIMER_COUNT.size() > 5) // now we can remove first value (5 secs later)
np.TIMER_COUNT.remove((int) 0);
else // loading seconds
return;
double sum = np.TIMER_COUNT.stream().mapToInt(Integer::intValue).sum() / np.TIMER_COUNT.size();
Player p = e.getPlayer();
int max = (p.getGameMode().equals(GameMode.CREATIVE) ? 40 : 20) + Adapter.getAdapter().getConfig().getInt("cheats.timer.max_variation");
if(max > sum)// in min/max variations
return;
List<Integer> medianList = new ArrayList<>(np.TIMER_COUNT);
medianList.sort(Comparator.naturalOrder());
int middle = medianList.size() / 2;
int medianValue = (medianList.size() % 2 == 1) ? medianList.get(middle) : (int) ((medianList.get(middle-1) + medianList.get(middle)) / 2.0);
if(max > medianValue || medianValue == 0) // prevent false flag
return;
int amount = (int) (sum - max);
SpigotNegativity.alertMod(ReportType.WARNING, p, this, UniversalUtils.parseInPorcent(100 - (np.ping / 100)),
"Flying: " + flying + ", position: " + position + ", look: " + look + ", positionLook: " + positonLook + ", sum: " + sum + ", median: " + medianValue + " > " + max,
(CheatHover) null, amount > 0 ? amount : 1);
}
}
// NOTE (AI): Negativity's TimerProtocol counts movement packets per second over a rolling window and compares the mean and median against the server tick rate (20, or 40 in creative with the configured variation); a sustained overflow of the packet budget is a timer flag.
Related Packets
Wiki Cross-Reference
PLAY 0x0F: byte windowId plus short action number plus accepted as a byte-boolean echo of S32.
Vanilla only re-enables crafting on a matching window and uid; missing or wrong echoes cause no kick.
Window 0 inventory traffic is frequent, so its timing doubles as a latency and timer reference.
MCP 1.8.9 C0FPacketConfirmTransaction implements Packet
1.8.9 callers: NetHandlerPlayClient.handleConfirmTransaction sends new C0FPacketConfirmTransaction (line 1191): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/client/network/NetHandlerPlayClient.java
Cross-checked against minecraft.wiki (CC BY-SA 3.0) for 1.8.9 accuracy.
Vanilla Internals
Full 1.8.9 logic-class sources that send or handle this packet, stored verbatim.
Module Analyses Using C0FPacketConfirmTransaction
Full source walkthroughs of the modules and anti-cheats that use this packet.