Nekoware v1 private Disabler module 2 files, 116 lines

Nekoware v1 private Disabler: Full Source Analysis

Nekoware's Disabler registers two modes, Ghostly and Verus, and most of the file's logic is dead weight.

me/nekoWare/client/module/exploit/Disabler.java · GitHub source ↗

Published 2026-08-13 · Updated 2026-08-13

Analysis

Overview

Nekoware's Disabler registers two modes, Ghostly and Verus, and most of the file's logic is dead weight. The live surface is the Ghostly mode: every outgoing C0FPacketConfirmTransaction is cancelled from the packet-out event, and every time the inbound-packet counter passes 10 the module injects a C0CPacketInput with no vehicle state behind it. The Verus mode drains a packet queue on a 490ms timer but nothing in the file ever adds to that queue, and the nigerian counter that is supposed to clear the queue at 2 and reset it at 8 also never sees a populated queue, so both paths are inert.

Ghostly mode

The packet-out consumer increments a counter y on every outgoing packet, cancels each C0FPacketConfirmTransaction it sees, and resets a Timer object that no other branch reads. The packet-in consumer runs the injection: when y exceeds 10 it pushes a fresh C0CPacketInput onto the send queue and zeroes the counter, so roughly one C0C per ten inbound packets goes out while the mode is active. Cancelling the C0F stream removes the server's window-confirmation traffic, and the injected C0C claims vehicle steering input the player never performs.

Dead code and inert drains

The Verus branch fires on a 490ms timer delay and, when the packetQueue is not empty, sends one queued packet through PacketUtil.sendPacketSilent and resets the timer. The queue is a ConcurrentLinkedQueue that onDisable clears, but no handler ever calls packetQueue.add, so the poll always sees an empty queue and the drain never transmits anything. The nigerian counter in the Ghostly branch clears the queue at 2 and resets at 8, which is the same empty-queue loop; the unused imports (S08PacketPlayerPosLook, S2APacketParticles, PlayerCapabilities, RandomUtils) and the VERUS_DISABLE_ constants reinforce that the file is a partial port with the buffering half left out.

Wire footprint

The observable traffic is a cancelled C0F stream plus a periodic C0C injection. The module never touches C00 keepalives, so the keepalive ledger stays intact; the attack targets the transaction side of the connection's ping accounting and the input side that anticheats use to track vehicle and movement state. The sendPacketSilent path in PacketUtil writes straight to the network manager, bypassing the client's own event bus, which is why the Verus drain would not re-enter the cancel handler if the queue were ever populated.

source Disabler.java

Disabler.java100 lines · JavaOriginal ↗
1
package me.nekoWare.client.module.exploit;
2
3
import me.hippo.api.lwjeb.annotation.Handler;
4
import me.nekoWare.client.event.events.PacketInEvent;
5
import me.nekoWare.client.event.events.PacketOutEvent;
6
import me.nekoWare.client.event.events.UpdateEvent;
7
import me.nekoWare.client.module.Module;
8
import me.nekoWare.client.util.ChatUtil;
9
import me.nekoWare.client.util.misc.Timer;
10
import me.nekoWare.client.util.packet.PacketUtil;
11
import net.minecraft.entity.player.PlayerCapabilities;
12
import net.minecraft.network.Packet;
13
import net.minecraft.network.play.client.*;
14
import net.minecraft.network.play.server.S08PacketPlayerPosLook;
15
import net.minecraft.network.play.server.S2APacketParticles;
16
import org.apache.commons.lang3.RandomUtils;
17
18
import java.util.Queue;
19
import java.util.concurrent.ConcurrentLinkedQueue;
20
import java.util.function.Consumer;
21
22
public class Disabler extends Module {
23
24
    private static final int VERUS_DISABLE_AUTOBAN_CHANNEL = 65536;
25
    private static final short VERUS_DISABLE_AUTOBAN_UID = 32767;
26
    private final Queue<Packet> packetQueue = new ConcurrentLinkedQueue();
27
    private final Timer timer = new Timer();
28
    private final Timer timer1 = new Timer();
29
30
    public Disabler(final String name, final int key, final Module.Category category) {
31
        super(name, key, category);
32
        this.addModes("Ghostly", "Verus");
33
    }
34
    
35
    int nigerian;
36
    int y;
37
38
    @Override
39
    public void onDisable() {
40
        packetQueue.clear();
41
    }
42
43
    @Override
44
    public void onEnable() {
45
        timer.reset();
46
    }
47
48
    @Handler
49
    public Consumer<PacketInEvent> packetInEventConsumer = (event) -> {
50
51
        if(isMode("Ghostly") && y > 10) {
52
        		mc.thePlayer.sendQueue.addToSendQueue(new C0CPacketInput());
53
        		y = 0;
54
        }
55
    	
56
    };
57
58
    @Handler
59
    public Consumer<UpdateEvent> eventConsumer = (event) -> {
60
61
        if (isMode("Verus")) {
62
            if (timer.delay(490L)) {
63
                if (!packetQueue.isEmpty()) {
64
                    PacketUtil.sendPacketSilent(packetQueue.poll());
65
                }
66
                timer.reset();
67
            }
68
            
69
        }
70
71
    };
72
73
    @Handler
74
    public Consumer<PacketOutEvent> eventConsumer1 = (event) -> {
75
        if (isMode("Ghostly")) {
76
        	y++;
77
            if (event.getPacket() instanceof C0FPacketConfirmTransaction) {
78
                event.cancel();
79
80
                timer.reset();
81
            }
82
            
83
84
85
            
86
            
87
            if(nigerian >= 2) {
88
                packetQueue.clear();
89
            }
90
            
91
92
            
93
            if(nigerian >= 8) {
94
            	nigerian = 0;
95
            }
96
            
97
            nigerian++;
98
        }
99
    };
100
}

What this file does

The module file holds both modes. The Ghostly branch is live: it cancels every C0FPacketConfirmTransaction from the packet-out event and injects one C0CPacketInput per ten inbound packets from the packet-in event. The Verus branch and the nigerian counter both drain a ConcurrentLinkedQueue that no code in the file ever populates, so they are inert; the unused S08/S2A/PlayerCapabilities/RandomUtils imports and the VERUS_DISABLE_ constants confirm the file is a partial port.

source PacketUtil.java (sendPacketSilent)

PacketUtil.java16 lines · JavaOriginal ↗
1
package me.nekoWare.client.util.packet;
2
3
import me.nekoWare.client.util.misc.MinecraftUtil;
4
import net.minecraft.network.Packet;
5
6
public class PacketUtil implements MinecraftUtil {
7
8
    public static void sendPacketSilent(Packet packet) {
9
        mc.getNetHandler().getNetworkManager().sendPacket(packet);
10
    }
11
12
    public static void sendPacket(Packet packet) {
13
        mc.thePlayer.sendQueue.addToSendQueue(packet);
14
    }
15
16
}

What this file does

sendPacketSilent is the direct-to-netty path: it calls getNetworkManager().sendPacket(packet), bypassing addToSendQueue and the client's event bus. The Verus drain is written to use it so a replayed packet would not loop back into the packet-out cancel handler, and the same helper is the standard silent-send utility across the client's modules.

anticheat Countering Checks

The anticheat code that detects or counters the techniques this module uses. Full source, with the detection mechanism explained below each box.

anticheat PingSpoofA (ledger divergence)

PingSpoofA.java28 lines · Java
1
package xyz.elevated.frequency.check.impl.pingspoof;
2
3
import xyz.elevated.frequency.check.CheckData;
4
import xyz.elevated.frequency.check.type.PacketCheck;
5
import xyz.elevated.frequency.data.PlayerData;
6
import xyz.elevated.frequency.exempt.type.ExemptType;
7
import xyz.elevated.frequency.wrapper.impl.client.WrappedPlayInFlying;
8
9
@CheckData(name = "PingSpoof (A)")
10
public final class PingSpoofA extends PacketCheck {
11
12
    public PingSpoofA(final PlayerData playerData) {
13
        super(playerData);
14
    }
15
16
    @Override
17
    public void process(final Object object) {
18
        if (object instanceof WrappedPlayInFlying) {
19
            final long transactionPing = playerData.getTransactionPing().get();
20
            final long keepAlivePing = playerData.getKeepAlivePing().get();
21
22
            final boolean joined = playerData.getTicks().get() - playerData.getJoined().get() < 10;
23
            final boolean exempt = this.isExempt(ExemptType.LAGGING, ExemptType.TELEPORTING, ExemptType.TPS, ExemptType.CHUNK);
24
25
            if (!exempt && !joined && transactionPing > keepAlivePing && Math.abs(transactionPing - keepAlivePing) > 50) fail();
26
        }
27
    }
28
}

How it counteracts this module

PingSpoofA cross-checks the two ping ledgers the connection maintains. On each movement packet it compares transactionPing against keepAlivePing and fails when the transaction value is larger and the gap exceeds 50ms, unless the player is exempt for lag, teleport, TPS or chunk reasons and has been connected for more than 10 ticks. The transaction ping is fed by the C0F round trips, so cancelling every confirmation starves that ledger while the C00 keepalive ledger keeps updating, and the two pings diverge on exactly the axis the check measures.

This is a direct hit on the Ghostly mode's core technique. The 50ms threshold absorbs ordinary jitter, but a sustained cancel makes the divergence grow without bound, and the exemption list does not cover a client that simply stops confirming transactions. The module would need to spoof C0F echoes instead of cancelling them to stay under this check, which is the standard escalation for this technique family.

anticheat BadPacketsK (C0C outside a vehicle)

BadPacketsK.java30 lines · Java
1
package xyz.elevated.frequency.check.impl.badpackets;
2
3
import org.bukkit.entity.Boat;
4
import org.bukkit.entity.Minecart;
5
import xyz.elevated.frequency.check.CheckData;
6
import xyz.elevated.frequency.check.type.PacketCheck;
7
import xyz.elevated.frequency.data.PlayerData;
8
import xyz.elevated.frequency.exempt.type.ExemptType;
9
import xyz.elevated.frequency.wrapper.impl.client.WrappedPlayInSteerVehicle;
10
11
import java.util.Arrays;
12
13
@CheckData(name = "BadPackets (K)")
14
public final class BadPacketsK extends PacketCheck {
15
16
    public BadPacketsK(final PlayerData playerData) {
17
        super(playerData);
18
    }
19
20
    @Override
21
    public void process(final Object object) {
22
        if (object instanceof WrappedPlayInSteerVehicle) {
23
            final boolean exempt = isExempt(ExemptType.VEHICLE);
24
25
            if (exempt) {
26
                fail();
27
            }
28
        }
29
    }
30
}

How it counteracts this module

BadPacketsK validates the vehicle-steering packet against the player's actual state: when a WrappedPlayInSteerVehicle (the C0C input packet) arrives and the player is not exempt as being in a vehicle, the check fails. The exemption is applied per vehicle-riding state, so a land-bound player emitting C0C input packets has no legitimate reason for the packet to exist.

The Ghostly injection trips this check on every emit: the module pushes a C0CPacketInput roughly once per ten inbound packets while the player walks on foot, which is precisely the no-vehicle C0C pattern the check exists to flag. Because the injection cadence is tied to inbound traffic rather than to any vehicle interaction, the player cannot ride into an exemption without abandoning the mode's effect.

anticheat InventoryMove (input-state pairing)

InventoryMove.java52 lines · Java
1
/*
2
 * This file is part of Hawk Anticheat.
3
 * Copyright (C) 2018 Hawk Development Team
4
 *
5
 * This program is free software: you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License as published by
7
 * the Free Software Foundation, either version 3 of the License, or
8
 * (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
17
 */
18
19
package me.islandscout.hawk.check.movement;
20
21
import me.islandscout.hawk.HawkPlayer;
22
import me.islandscout.hawk.check.MovementCheck;
23
import me.islandscout.hawk.event.MoveEvent;
24
25
/*
26
 * InventoryActions check originally written by Havesta; modified, split apart, and implemented into Hawk by Islandscout
27
 *
28
 * InventoryMove checks if a player is
29
 * - rotating, sprinting, or sneaking while inventory is opened
30
 */
31
32
public class InventoryMove extends MovementCheck {
33
34
    public InventoryMove() {
35
        super("inventorymove", true, 3, 5, 0.999, 5000, "%player% failed inventory-move, VL: %vl%", null);
36
    }
37
38
    @Override
39
    protected void check(MoveEvent e) {
40
        HawkPlayer pp = e.getHawkPlayer();
41
42
        //TODO: false flag: rotation is still possible at least 1 tick after opening inventory
43
        //TODO: false flag: you gotta do that TP grace period thing for this too
44
        //TODO: false flag: ESCing out of F6 twitch options while inv is open will cause a desync. Forcibly close inventory on flag to fix desyncs like this?
45
        if((e.isUpdateRot() || pp.isSprinting() || pp.isSneaking()) && pp.hasInventoryOpen() != 0 && !e.isTeleportAccept()) {
46
            punishAndTryRubberband(pp, e);
47
        }
48
        else {
49
            reward(pp);
50
        }
51
    }
52
}

How it counteracts this module

InventoryMove punishes rotation, sprint and sneak movement while the player's inventory-open state is non-zero, where that state is driven by the packets Hawk observes: window interactions, the C0B open-inventory action, and the input stream the client reports. The injected C0CPacketInput is part of that input stream, so the module's periodic C0C changes the input picture Hawk uses for the check.

Framed honestly, the check bites when the player actually moves while a window is open; the C0C injection alone does not open an inventory. The entry matters because it is the C0C-side consumer that pairs the module's injected input with its movement: on servers where Ghostly runs alongside a movement module, the combined stream is exactly what the check scores.

← Back to Analysis Hub