-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
53 changed files
with
1,090 additions
and
757 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
...t/ccbluex/liquidbounce/features/module/modules/exploit/disablers/matrix/MatrixDisabler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
/* | ||
* FDPClient Hacked Client | ||
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge by LiquidBounce. | ||
* https://github.com/SkidderMC/FDPClient/ | ||
*/ | ||
package net.ccbluex.liquidbounce.features.module.modules.exploit.disablers.matrix | ||
|
||
import net.ccbluex.liquidbounce.FDPClient | ||
import net.ccbluex.liquidbounce.event.PacketEvent | ||
import net.ccbluex.liquidbounce.event.PostMotionEvent | ||
import net.ccbluex.liquidbounce.features.module.modules.exploit.disablers.DisablerMode | ||
import net.ccbluex.liquidbounce.features.module.modules.movement.Flight | ||
import net.ccbluex.liquidbounce.features.module.modules.movement.Speed | ||
import net.ccbluex.liquidbounce.utils.ClientUtils.displayChatMessage | ||
import net.ccbluex.liquidbounce.utils.MovementUtils.isMoving | ||
import net.ccbluex.liquidbounce.utils.PacketUtils | ||
import net.ccbluex.liquidbounce.utils.RotationUtils | ||
import net.ccbluex.liquidbounce.value.BoolValue | ||
import net.minecraft.network.play.client.C03PacketPlayer | ||
import net.minecraft.network.play.client.C09PacketHeldItemChange | ||
import net.minecraft.network.play.client.C08PacketPlayerBlockPlacement | ||
import net.minecraft.network.play.client.C03PacketPlayer.C06PacketPlayerPosLook | ||
import net.minecraft.util.BlockPos | ||
|
||
class MatrixDisabler : DisablerMode("Matrix") { | ||
|
||
private val matrixNoCheck = BoolValue("NoModuleCheck", false) | ||
private val matrixMoveFix = BoolValue("MoveFix", true) | ||
private val matrixMoveOnly = BoolValue("MoveOnly", false) | ||
private val matrixNoMovePacket = BoolValue("NoMovePacket", true) | ||
private val matrixHotbarChange = BoolValue("HotbarChange", true) | ||
|
||
override fun onPacket(event: PacketEvent) { | ||
val packet = event.packet | ||
if (matrixNoCheck.get() || FDPClient.moduleManager.getModule(Speed::class.java)!!.state || FDPClient.moduleManager.getModule(Flight::class.java)!!.state) { | ||
if (packet is C03PacketPlayer) { | ||
if (matrixNoMovePacket.get() && !packet.isMoving) { | ||
event.cancelEvent() | ||
displayChatMessage("no move, cancelled") | ||
return | ||
} | ||
if (matrixMoveFix.get()) { | ||
packet.onGround = true | ||
if (!packet.rotating) { | ||
packet.rotating = true | ||
packet.yaw = mc.thePlayer.rotationYaw | ||
packet.pitch = mc.thePlayer.rotationPitch | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
@Override | ||
fun onPostMotion(event: PostMotionEvent) { | ||
if (!matrixMoveOnly.get() || isMoving()) | ||
if (matrixNoCheck.get() || FDPClient.moduleManager[Flight::class.java]!!.state || FDPClient.moduleManager[Speed::class.java]!!.state) { | ||
var changed = false | ||
if (matrixHotbarChange.get()) for (i in 0..8) { | ||
// find an empty inventory slot | ||
if(mc.thePlayer.inventory.mainInventory[i] == null && i != mc.thePlayer.inventory.currentItem) { | ||
PacketUtils.sendPacketNoEvent(C09PacketHeldItemChange(i)) | ||
changed = true | ||
displayChatMessage("found empty slot $i, switching") | ||
break | ||
} | ||
} | ||
|
||
RotationUtils.serverRotation?.let { C06PacketPlayerPosLook(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, it.yaw, RotationUtils.serverRotation!!.pitch, mc.thePlayer.onGround) } | ||
?.let { PacketUtils.sendPacketNoEvent(it) } | ||
mc.netHandler.addToSendQueue(C08PacketPlayerBlockPlacement(BlockPos(-1, -1, -1), -1, null, 0f, 0f, 0f)) | ||
displayChatMessage("sent placement") | ||
|
||
if (changed) { | ||
PacketUtils.sendPacketNoEvent(C09PacketHeldItemChange(mc.thePlayer.inventory.currentItem)) | ||
displayChatMessage("switched back") | ||
} | ||
} | ||
} | ||
|
||
} |
90 changes: 90 additions & 0 deletions
90
...cbluex/liquidbounce/features/module/modules/exploit/disablers/other/DelayedTranscation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
/* | ||
* FDPClient Hacked Client | ||
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge by LiquidBounce. | ||
* https://github.com/SkidderMC/FDPClient/ | ||
*/ | ||
package net.ccbluex.liquidbounce.features.module.modules.exploit.disablers.other | ||
|
||
import net.ccbluex.liquidbounce.event.PacketEvent | ||
import net.ccbluex.liquidbounce.event.Render2DEvent | ||
import net.ccbluex.liquidbounce.features.module.modules.exploit.disablers.DisablerMode | ||
import net.ccbluex.liquidbounce.utils.ClientUtils | ||
import net.ccbluex.liquidbounce.utils.PacketUtils | ||
import net.ccbluex.liquidbounce.utils.Rotation | ||
import net.ccbluex.liquidbounce.utils.timer.MSTimer | ||
import net.ccbluex.liquidbounce.value.IntegerValue | ||
import net.minecraft.network.play.client.C0FPacketConfirmTransaction | ||
import net.minecraft.network.play.server.S08PacketPlayerPosLook | ||
import net.minecraft.network.play.server.S32PacketConfirmTransaction | ||
import net.minecraft.network.play.INetHandlerPlayServer | ||
import net.minecraft.network.Packet | ||
|
||
/** | ||
* A disabler that delay transaction on some anticheat like Grim (<=2.3.59) and old Intave | ||
* @author Fyxar | ||
*/ | ||
class DelayedTranscation : DisablerMode("DelayedTranscation") { | ||
private val holdSeconds = IntegerValue("HoldSeconds", 20, 1, 50) | ||
private val timer = MSTimer() | ||
|
||
private var delay = false | ||
private var lastRotation = Rotation(0f, 0f) | ||
|
||
private val packets = mutableListOf<Packet<INetHandlerPlayServer>>() | ||
|
||
override fun onEnable() { | ||
timer.reset() | ||
} | ||
|
||
override fun onDisable() { | ||
mc.timer.timerSpeed = 1F | ||
|
||
if (mc.thePlayer != null) | ||
packets.forEach { PacketUtils.sendPacketNoEvent(it)} | ||
|
||
packets.clear() | ||
delay = false | ||
} | ||
|
||
fun onRender2D(event: Render2DEvent) { | ||
if (delay) { | ||
val seconds = timer.reachedTime / 1000L | ||
ClientUtils.displayChatMessage("Anticheat will be back after ${holdSeconds.get() - seconds} seconds") | ||
} | ||
} | ||
|
||
override fun onPacket(event: PacketEvent) { | ||
if (mc.thePlayer == null || mc.thePlayer.ticksExisted < 20) { | ||
packets.clear() | ||
return | ||
} | ||
|
||
val packet = event.packet | ||
|
||
if (packet is S08PacketPlayerPosLook) { | ||
if (mc.thePlayer.capabilities.isFlying || mc.thePlayer.capabilities.allowFlying) { | ||
if (!delay) { | ||
timer.reset() | ||
delay = true | ||
} | ||
} | ||
} | ||
|
||
if (delay) { | ||
if (timer.hasTimePassed(holdSeconds.get() * 1000L)) { | ||
packets.forEach {PacketUtils.sendPacketNoEvent(it)} | ||
delay = false | ||
packets.clear() | ||
timer.reset() | ||
} | ||
|
||
if (packet is S32PacketConfirmTransaction) { | ||
packets.add(packet as Packet<INetHandlerPlayServer>) | ||
event.cancelEvent() | ||
|
||
PacketUtils.sendPacketNoEvent(C0FPacketConfirmTransaction()) | ||
} | ||
} | ||
|
||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...t/ccbluex/liquidbounce/features/module/modules/exploit/disablers/other/FakeLagDisabler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
.../ccbluex/liquidbounce/features/module/modules/exploit/disablers/vulcan/VulcanAutoblock.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...uex/liquidbounce/features/module/modules/exploit/disablers/vulcan/VulcanSprintDisabler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...uex/liquidbounce/features/module/modules/exploit/disablers/vulcan/VulcanStrafeDisabler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.