Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. Kotlin/Java
  3. [java] PacketDebugger by Rise

[java] PacketDebugger by Rise

Scheduled Pinned Locked Moved Kotlin/Java
4 Posts 2 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Hacked Clients MinecraftH Offline
    Hacked Clients MinecraftH Offline
    Hacked Clients Minecraft
    wrote on last edited by
    #1

    package net.ccbluex.liquidbounce.features.module.modules.render;

    import net.ccbluex.liquidbounce.LiquidBounce;
    import net.ccbluex.liquidbounce.event.EventTarget;
    import net.ccbluex.liquidbounce.event.PacketEvent;
    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.minecraft.network.Packet;
    import net.minecraft.network.play.client.C00PacketKeepAlive;
    import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
    import net.minecraft.network.play.server.S3FPacketCustomPayload;

    @ModuleInfo(name = "PacketDebugger", description = "Debugger for detecting anticheats", category = ModuleCategory.RENDER)
    public final class PacketDebugger extends Module {
    private long lastKeepAlive;
    private long lastTransaction;

    @EventTarget
    public void onPacket(final PacketEvent event) {
    
        Packet p = event.getPacket();
    
        if (p instanceof C0FPacketConfirmTransaction) {
            long lastPacket = System.currentTimeMillis() - lastTransaction;
            ClientUtils.displayChatMessage("Transaction: " + ((C0FPacketConfirmTransaction) event.getPacket()).getWindowId() + " " + ((C0FPacketConfirmTransaction) event.getPacket()).getUid() + " " + lastPacket + "ms");
            this.lastTransaction = System.currentTimeMillis();
        } else if (p instanceof C00PacketKeepAlive) {
            long lastPacket = System.currentTimeMillis() - lastKeepAlive;
            ClientUtils.displayChatMessage("KeepAlive: " + ((C00PacketKeepAlive) event.getPacket()).getKey() + " " + lastPacket + "ms");
            this.lastKeepAlive = System.currentTimeMillis();
        } else if (p instanceof S3FPacketCustomPayload) {
            ClientUtils.displayChatMessage("Payload: " + ((S3FPacketCustomPayload) event.getPacket()).getChannelName());
        }
    
    }
    

    }

    Ali00035A 1 Reply Last reply
    0
    • Hacked Clients MinecraftH Hacked Clients Minecraft

      package net.ccbluex.liquidbounce.features.module.modules.render;

      import net.ccbluex.liquidbounce.LiquidBounce;
      import net.ccbluex.liquidbounce.event.EventTarget;
      import net.ccbluex.liquidbounce.event.PacketEvent;
      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.minecraft.network.Packet;
      import net.minecraft.network.play.client.C00PacketKeepAlive;
      import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
      import net.minecraft.network.play.server.S3FPacketCustomPayload;

      @ModuleInfo(name = "PacketDebugger", description = "Debugger for detecting anticheats", category = ModuleCategory.RENDER)
      public final class PacketDebugger extends Module {
      private long lastKeepAlive;
      private long lastTransaction;

      @EventTarget
      public void onPacket(final PacketEvent event) {
      
          Packet p = event.getPacket();
      
          if (p instanceof C0FPacketConfirmTransaction) {
              long lastPacket = System.currentTimeMillis() - lastTransaction;
              ClientUtils.displayChatMessage("Transaction: " + ((C0FPacketConfirmTransaction) event.getPacket()).getWindowId() + " " + ((C0FPacketConfirmTransaction) event.getPacket()).getUid() + " " + lastPacket + "ms");
              this.lastTransaction = System.currentTimeMillis();
          } else if (p instanceof C00PacketKeepAlive) {
              long lastPacket = System.currentTimeMillis() - lastKeepAlive;
              ClientUtils.displayChatMessage("KeepAlive: " + ((C00PacketKeepAlive) event.getPacket()).getKey() + " " + lastPacket + "ms");
              this.lastKeepAlive = System.currentTimeMillis();
          } else if (p instanceof S3FPacketCustomPayload) {
              ClientUtils.displayChatMessage("Payload: " + ((S3FPacketCustomPayload) event.getPacket()).getChannelName());
          }
      
      }
      

      }

      Ali00035A Offline
      Ali00035A Offline
      Ali00035
      wrote on last edited by
      #2

      @hacked-clients-minecraft you should use the inline code option
      cf612129-b1bd-4dc4-8896-894a1146b240-image.png

      Hacked Clients MinecraftH 1 Reply Last reply
      0
      • Ali00035A Ali00035

        @hacked-clients-minecraft you should use the inline code option
        cf612129-b1bd-4dc4-8896-894a1146b240-image.png

        Hacked Clients MinecraftH Offline
        Hacked Clients MinecraftH Offline
        Hacked Clients Minecraft
        wrote on last edited by
        #3

        @stfwissue said in [java] PacketDebugger by Rise:

        you should use the inline code option

        Thank you! I'm just new to the forum

        Ali00035A 1 Reply Last reply
        0
        • Hacked Clients MinecraftH Hacked Clients Minecraft

          @stfwissue said in [java] PacketDebugger by Rise:

          you should use the inline code option

          Thank you! I'm just new to the forum

          Ali00035A Offline
          Ali00035A Offline
          Ali00035
          wrote on last edited by
          #4

          @hacked-clients-minecraft okay then, and no problem 😄

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          About
          • Terms of Service
          • Privacy Policy
          • Status
          • Contact Us
          Downloads
          • Releases
          • Source code
          • License
          Docs
          • Tutorials
          • CustomHUD
          • AutoSettings
          • ScriptAPI
          Community
          • Forum
          • Guilded
          • YouTube
          • Twitter
          • D.Tube
          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups