0x00 C00PacketLoginStart
Starts the login process by sending the player's GameProfile (username) to the server.
Published 2026-06-18 · Updated 2026-10-14
Fields
| Field | Type | Description |
|---|---|---|
| profile | GameProfile | Player's GameProfile containing the username (UUID is null at this stage) |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Username | String (max 16) | The player's Minecraft username |
MCP References
NetHandlerLoginServer.processLoginStart()Handler Interface
INetHandlerLoginServerNotes
Vanilla 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 | |
Deobfuscated MCP 1.8.9 source of C00PacketLoginStart, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/login/client/C00PacketLoginStart.java) at build time and verified present.
Deep Dive
Role in the protocol
C00PacketLoginStart is the first packet of the LOGIN state, sent immediately after C00Handshake with nextState=2. It carries a GameProfile whose username is the only meaningful field; the UUID is null at this stage and the server fills it in from the session service. The vanilla client fires it from three places: GuiConnecting on connect, Minecraft.java's direct networkmanager path, and RealmsConnect for realm joins. The server answers with S01PacketEncryptionRequest on online-mode servers or S02PacketLoginSuccess on offline-mode servers. Everything after this packet is gated on the server's decision in processLoginStart.
Vanilla handling
NetHandlerLoginServer.processLoginStart validates the currentLoginState is HELLO via Validate.validState, stores the profile, then branches on server.isServerInOnlineMode() and whether the channel is local. Online mode moves to KEY state and sends S01PacketEncryptionRequest; offline mode jumps straight to READY_TO_ACCEPT. The username arrives as a VarInt-length-prefixed UTF-8 string; the client enforces the 16-character limit at the login screen, and the packet itself does no re-validation beyond reading the string.
Why clients touch it
Three families in the corpus reference this packet. Rise 6.1.30 and 6.2.4 BlinkComponent list C00PacketLoginStart in a five-class exemption set that is returned untouched by the blink buffer. Spicy Blink, Fly and BackupFly use an identical three-way guard (C00PacketKeepAlive, C00Handshake, C00PacketLoginStart) in their EventSendPacket handlers so the handshake always flows while the module cancels everything else. LiquidSense Dev is the one client that rewrites the packet: MixinGuiConnecting overwrites the vanilla connect method and, when an MCLeaks alt session is active, sends C00PacketLoginStart with a GameProfile built from MCLeaks.getSession().getUsername() instead of the launcher profile. The 8 classic clients treat the packet as untouchable plumbing; the 1.8-era Gugustus NameSpoof pattern never reappears in this corpus.
Exploit surface
The packet is sent before encryption, so the username is visible to any MITM during login, and on offline-mode servers the name is trust-on-first-use: impersonation is a server configuration weakness, not a packet bug. The MCLeaks variant in LiquidSense Dev reuses that trust model, since the swapped username is what the server stores on offline-mode joins. Client-side abuse is otherwise limited to cancellation, which stalls the login at HELLO until the server's connection timeout fires. The only real engineering concern for module authors is accidental swallowing: a blink module that buffers C00PacketLoginStart breaks every future join, which is exactly why both Rise's component and Spicy's modules hard-code the exemption.
Server-Side Handling
NetHandlerLoginServer.processLoginStart: Validate.validState(HELLO), store loginGameProfile, then either send S01PacketEncryptionRequest and move to KEY (online mode, non-local channel) or move straight to READY_TO_ACCEPT (offline mode or local channel). No username validation beyond the wire read; the server trusts the client's login-screen limit of 16 chars.
Protocol Analysis
Sent in LOGIN state only, id 0x00. Single String field: VarInt length + UTF-8 bytes. UUID in the GameProfile is null until the server resolves it via the session service. State must be LOGIN after the C00Handshake; a C00PacketLoginStart in any other state is a protocol violation that the server's Validate check rejects.
Anti-Cheat Landscape
No anti-cheat parses this packet: it carries no position, timing, or interaction data and the player entity does not exist yet. Serverside plugins and proxies (auth plugins, BungeeCord) consume the name for pre-auth bookkeeping, but nothing in the 8 clients interacts with that. The packet is a non-surface for flagging, which is why modules only need to avoid breaking it.
implementation Implementation Cases
The login opener: username-only GameProfile sent right after the handshake. BlinkComponent (Rise 6.x) and Spicy's Blink/Fly/BackupFly exempt it from packet buffering so the handshake survives while they hold everything else; LiquidSense Dev's MixinGuiConnecting is the only corpus hit that rewrites the username, swapping in the MCLeaks alt profile when an alt session is active.
Exempt C00PacketLoginStart (and the other four pre-play serverbound packets) from blink buffering so the login handshake always reaches the server while blink is active.
A PacketSendEvent listener at VERY_LOW priority returns without cancelling when the packet is C00Handshake, C00PacketLoginStart, C00PacketServerQuery, C01PacketPing or C01PacketEncryptionResponse. Any other packet is parked in the static queue and cancelled, unless it matches the per-module setExempt list. The queue flushes via PacketUtil.sendNoEvent when a C03PacketPlayer arrives, the player dies, or the world changes.
// ===== FILE: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/component/impl/player/BlinkComponent.java =====
package com.alan.clients.component.impl.player;
import com.alan.clients.component.Component;
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.other.ServerJoinEvent;
import com.alan.clients.event.impl.other.WorldChangeEvent;
import com.alan.clients.event.impl.packet.PacketSendEvent;
import com.alan.clients.util.packet.PacketUtil;
import net.minecraft.network.Packet;
import net.minecraft.network.handshake.client.C00Handshake;
import net.minecraft.network.login.client.C00PacketLoginStart;
import net.minecraft.network.login.client.C01PacketEncryptionResponse;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.status.client.C00PacketServerQuery;
import net.minecraft.network.status.client.C01PacketPing;
import rip.vantage.commons.util.time.StopWatch;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.concurrent.ConcurrentLinkedQueue;
public final class BlinkComponent extends Component {
public static final ConcurrentLinkedQueue<Packet<?>> packets = new ConcurrentLinkedQueue<>();
public static boolean blinking, dispatch;
public static ArrayList<Class<?>> exemptedPackets = new ArrayList<>();
public static StopWatch exemptionWatch = new StopWatch();
public static void setExempt(Class<?>... packets) {
exemptedPackets = new ArrayList<>(Arrays.asList(packets));
exemptionWatch.reset();
}
@EventLink(value = Priorities.VERY_LOW)
public final Listener<PacketSendEvent> onPacketSend = event -> {
if (mc.thePlayer == null) {
packets.clear();
exemptedPackets.clear();
return;
}
if (mc.thePlayer.isDead || mc.isSingleplayer() || !mc.getNetHandler().doneLoadingTerrain) {
packets.forEach(PacketUtil::sendNoEvent);
packets.clear();
blinking = false;
exemptedPackets.clear();
return;
}
final Packet<?> packet = event.getPacket();
if (packet instanceof C00Handshake || packet instanceof C00PacketLoginStart ||
packet instanceof C00PacketServerQuery || packet instanceof C01PacketPing ||
packet instanceof C01PacketEncryptionResponse) {
return;
}
if (blinking && !dispatch) {
if (exemptionWatch.finished(100)) {
exemptionWatch.reset();
exemptedPackets.clear();
}
// PingSpoofComponent.spoofing = false;
if (!event.isCancelled() && exemptedPackets.stream().noneMatch(packetClass ->
packetClass == packet.getClass())) {
packets.add(packet);
event.setCancelled();
}
} else if (packet instanceof C03PacketPlayer) {
packets.forEach(PacketUtil::sendNoEvent);
packets.clear();
dispatch = false;
}
};
public static void dispatch() {
dispatch = true;
}
@EventLink(value = Priorities.VERY_LOW)
public final Listener<WorldChangeEvent> onWorldChange = event -> {
packets.clear();
BlinkComponent.blinking = false;
};
@EventLink(value = Priorities.VERY_LOW)
public final Listener<ServerJoinEvent> onServerJoin = event -> {
packets.clear();
BlinkComponent.blinking = false;
};
}
// NOTE (AI): The exemption list covers every serverbound packet that exists before the PLAY state, so blink can never swallow the login or status flow. Everything else is parked in the static queue and flushed through sendNoEvent, which bypasses the event bus entirely, when a C03PacketPlayer arrives or the player dies. The exemptionWatch window lets modules temporarily whitelist specific packet classes for 100ms.Keep the handshake alive while the module cancels and buffers all other serverbound packets, so blink and Hypixel-mode fly cannot kill the login sequence.
EventSendPacket pre handler returns early when the packet is C00PacketKeepAlive, C00Handshake or C00PacketLoginStart. Every other packet is added to a static ArrayList and cancelled. Blink flushes the queue through mc.getNetHandler().addToSendQueue on disable; Fly's Hypixel mode applies the same guard before rewriting C03PacketPlayer fields and parking packets in its own buffer.
// ===== FILE: Spicy, info/spicyclient/modules/player/Blink.java =====
package info.spicyclient.modules.player;
import java.util.ArrayList;
import org.lwjgl.input.Keyboard;
import info.spicyclient.chatCommands.Command;
import info.spicyclient.events.Event;
import info.spicyclient.events.listeners.EventSendPacket;
import info.spicyclient.events.listeners.EventUpdate;
import info.spicyclient.modules.Module;
import info.spicyclient.notifications.Color;
import info.spicyclient.notifications.NotificationManager;
import info.spicyclient.notifications.Type;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.Packet;
import net.minecraft.network.handshake.client.C00Handshake;
import net.minecraft.network.login.client.C00PacketLoginStart;
import net.minecraft.network.play.client.C00PacketKeepAlive;
import net.minecraft.network.play.client.C03PacketPlayer;
public class Blink extends Module {
public static ArrayList<Packet> packets = new ArrayList<Packet>();
public Blink() {
super("Blink", Keyboard.KEY_NONE, Category.PLAYER);
}
public void onEnable() {
packets.clear();
if (mc.isSingleplayer()) {
NotificationManager.getNotificationManager().createNotification("Don't use blink in singleplayer!", "", true, 5000, Type.WARNING, Color.RED);
this.toggle();
}
}
public void onDisable() {
for (Packet p : packets) {
if (mc.isSingleplayer()) {
}else {
mc.getNetHandler().addToSendQueue(p);
}
}
packets.clear();
}
public void onEvent(Event e) {
if (e instanceof EventSendPacket) {
if (e.isPre()) {
if (((EventSendPacket)e).packet instanceof C00PacketKeepAlive || ((EventSendPacket)e).packet instanceof C00Handshake || ((EventSendPacket)e).packet instanceof C00PacketLoginStart) {
return;
}
EventSendPacket sendPacket = (EventSendPacket) e;
packets.add(sendPacket.packet);
sendPacket.setCanceled(true);
}
}
}
}
// NOTE (AI): The allowlist guard runs before the cancel branch, so keepalive, handshake and login packets are returned untouched while everything else is buffered and cancelled. The queue flushes through addToSendQueue on disable, which re-enters the normal send path (and therefore the event bus) rather than bypassing it like Rise's sendNoEvent.Swap the login GameProfile for the MCLeaks alt session so the server records the alt username instead of the launcher account.
@Overwrite on GuiConnecting.connect reimplements the connect thread: it sends C00Handshake, then C00PacketLoginStart whose GameProfile is built from MCLeaks.getSession().getUsername() when MCLeaks.isAltActive() and from mc.getSession().getProfile() otherwise. A second @Inject at the C00PacketLoginStart NEW allocation that would do the same swap via networkManager.sendPacket sits commented out, leaving the overwrite as the live path.
// ===== FILE: LiquidSense Dev, net/ccbluex/liquidbounce/injection/forge/mixins/gui/MixinGuiConnecting.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.gui;
import com.mojang.authlib.GameProfile;
import net.ccbluex.liquidbounce.ui.font.Fonts;
import net.ccbluex.liquidbounce.utils.ServerUtils;
import net.ccbluex.liquidbounce.utils.render.RenderUtils;
import net.mcleaks.MCLeaks;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiDisconnected;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.multiplayer.GuiConnecting;
import net.minecraft.client.multiplayer.ServerData;
import net.minecraft.client.network.NetHandlerLoginClient;
import net.minecraft.network.EnumConnectionState;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.handshake.client.C00Handshake;
import net.minecraft.network.login.client.C00PacketLoginStart;
import net.minecraft.util.ChatComponentTranslation;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import org.apache.logging.log4j.Logger;
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.InetAddress;
import java.net.UnknownHostException;
import java.util.concurrent.atomic.AtomicInteger;
@Mixin(GuiConnecting.class)
@SideOnly(Side.CLIENT)
public abstract class MixinGuiConnecting extends GuiScreen {
@Shadow
private NetworkManager networkManager;
@Shadow
@Final
private static Logger logger;
@Shadow
private boolean cancel;
@Shadow
@Final
private GuiScreen previousGuiScreen;
@Shadow
@Final
private static AtomicInteger CONNECTION_ID;
@Inject(method = "connect", at = @At("HEAD"))
private void headConnect(final String ip, final int port, CallbackInfo callbackInfo) {
ServerUtils.serverData = new ServerData("", ip + ":" + port, false);
}
@Inject(method = "connect", at = @At(value = "NEW", target = "net/minecraft/network/login/client/C00PacketLoginStart"), cancellable = true)
private void mcLeaks(CallbackInfo callbackInfo) {
// if(MCLeaks.isAltActive()) {
// networkManager.sendPacket(new C00PacketLoginStart(new GameProfile(null, MCLeaks.getSession().getUsername())));
// callbackInfo.cancel();
// }
}
/**
* @author CCBlueX
*/
@Overwrite
private void connect(final String ip, final int port) {
logger.info("Connecting to " + ip + ", " + port);
new Thread(() -> {
InetAddress inetaddress = null;
try {
if(cancel) {
return;
}
inetaddress = InetAddress.getByName(ip);
networkManager = NetworkManager.createNetworkManagerAndConnect(inetaddress, port, mc.gameSettings.isUsingNativeTransport());
networkManager.setNetHandler(new NetHandlerLoginClient(networkManager, mc, previousGuiScreen));
networkManager.sendPacket(new C00Handshake(47, ip, port, EnumConnectionState.LOGIN, true));
networkManager.sendPacket(new C00PacketLoginStart(MCLeaks.isAltActive() ? new GameProfile(null, MCLeaks.getSession().getUsername()) : mc.getSession().getProfile()));
}catch(UnknownHostException unknownhostexception) {
if(cancel)
return;
logger.error("Couldn\'t connect to server", unknownhostexception);
mc.displayGuiScreen(new GuiDisconnected(previousGuiScreen, "connect.failed", new ChatComponentTranslation("disconnect.genericReason", "Unknown host")));
}catch(Exception exception) {
if(cancel) {
return;
}
logger.error("Couldn\'t connect to server", exception);
String s = exception.toString();
if(inetaddress != null) {
String s1 = inetaddress.toString() + ":" + port;
s = s.replaceAll(s1, "");
}
mc.displayGuiScreen(new GuiDisconnected(previousGuiScreen, "connect.failed", new ChatComponentTranslation("disconnect.genericReason", s)));
}
}, "Server Connector #" + CONNECTION_ID.incrementAndGet()).start();
}
/**
* @author CCBlueX
*/
@Overwrite
public void drawScreen(int mouseX, int mouseY, float partialTicks) {
ScaledResolution scaledResolution = new ScaledResolution(Minecraft.getMinecraft());
this.drawDefaultBackground();
RenderUtils.drawLoadingCircle(scaledResolution.getScaledWidth() / 2, scaledResolution.getScaledHeight() / 4 + 70);
String ip = "Unknown";
final ServerData serverData = mc.getCurrentServerData();
if(serverData != null)
ip = serverData.serverIP;
Fonts.font40.drawCenteredString("Connecting to", scaledResolution.getScaledWidth() / 2, scaledResolution.getScaledHeight() / 4 + 110, 0xFFFFFF, true);
Fonts.font35.drawCenteredString(ip, scaledResolution.getScaledWidth() / 2, scaledResolution.getScaledHeight() / 4 + 120, 0x5281FB, true);
super.drawScreen(mouseX, mouseY, partialTicks);
}
}
// NOTE (AI): The only corpus code that deliberately mutates C00PacketLoginStart. The live path is the @Overwrite connect method, which rebuilds the whole login thread; the commented-out @Inject at the NEW allocation shows the abandoned mixin approach that would have sent the alt packet directly and cancelled the vanilla construction. Note the overwrite also drops the vanilla 'Server Connector' thread naming logic in favor of a plain lambda thread and adds the ServerUtils.serverData bookkeeping in headConnect.
anticheat Anti-Cheat Checks
LoginStart is invisible to server-side anticheats: the player entity, world and timing state do not exist yet, and the packet carries only the username. The two corpus hits are packet-library plumbing: FlopAC ChannelHandlerAbstract and intave TinyProtocol both declare the PACKET_LOGIN_IN_START class constant and route it through their channel handlers, and intave's handleLoginStart dispatcher serves the plugin's own cloud-control channel, not a check on the Minecraft login packet. No anticheat flags anything on it.
Related Packets
Wiki Cross-Reference
On offline-mode (authentication disabled) servers encryption is skipped entirely and Login Start is directly followed by Login Success.
The vanilla server derives offline-mode UUIDs as UUID version 3 of the string OfflinePlayer:
MCP 1.8.9 C00PacketLoginStart implements Packet
1.8.9 callers: Minecraft.? sends new C00PacketLoginStart (line 2339) +2 more: https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/client/Minecraft.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.