-
-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update DisablerVulcanScaffold.kt #4181
Conversation
Fixed the disabler because it flags badpacket (P). That is caused by the sending of the sneak packet when the player is on air.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure this will reopen #2829
...ex/liquidbounce/features/module/modules/exploit/disabler/disablers/DisablerVulcanScaffold.kt
Outdated
Show resolved
Hide resolved
else{ | ||
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.PRESS_SHIFT_KEY)) | ||
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else{ | |
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.PRESS_SHIFT_KEY)) | |
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | |
} | |
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.PRESS_SHIFT_KEY)) | |
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) |
pretty sure badpackets p is not caused by player on air only.. |
@EclipsesDev it is working without a single badpackets flag so idk |
@ManInMyVan Xd why did i use else to send sneak lmfao |
* disable limit checks. | ||
*/ | ||
|
||
internal object DisablerVulcanScaffold : ToggleableConfigurable(ModuleDisabler, "VulcanScaffold", false) { | ||
|
||
@Suppress("ComplexCondition") | ||
val tickHandler = handler<PlayerTickEvent> { | ||
if (player.isInFluid || player.isTouchingWater || player.isDead || player.isHoldingOntoLadder | ||
|
||
if ( player.isInFluid || player.isTouchingWater || player.isDead || player.isHoldingOntoLadder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if ( player.isInFluid || player.isTouchingWater || player.isDead || player.isHoldingOntoLadder | |
if (player.isInFluid || player.isTouchingWater || player.isDead || player.isHoldingOntoLadder |
if (!player.isInFluid && !player.isTouchingWater && !player.isDead && !player.isHoldingOntoLadder | ||
&& !player.abilities.flying) { | ||
network.sendPacket(ClientCommandC2SPacket(player,ClientCommandC2SPacket.Mode.START_SPRINTING)) | ||
network.sendPacket(ClientCommandC2SPacket(player,ClientCommandC2SPacket.Mode.STOP_SPRINTING)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (!player.isInFluid && !player.isTouchingWater && !player.isDead && !player.isHoldingOntoLadder | |
&& !player.abilities.flying) { | |
network.sendPacket(ClientCommandC2SPacket(player,ClientCommandC2SPacket.Mode.START_SPRINTING)) | |
network.sendPacket(ClientCommandC2SPacket(player,ClientCommandC2SPacket.Mode.STOP_SPRINTING)) | |
} | |
network.sendPacket(ClientCommandC2SPacket(player,ClientCommandC2SPacket.Mode.START_SPRINTING)) | |
network.sendPacket(ClientCommandC2SPacket(player,ClientCommandC2SPacket.Mode.STOP_SPRINTING)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
im fucking dumb
if (player.age % 9 == 0) { | ||
if (player.isOnGround && !isTellyBridging && !isTowering) { | ||
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | ||
} | ||
|
||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (player.age % 9 == 0) { | |
if (player.isOnGround && !isTellyBridging && !isTowering) { | |
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | |
} | |
} | |
if (player.age % 9 == 0) { | |
if (player.isOnGround && !isTellyBridging && !isTowering) { | |
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | |
} | |
} |
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
if (player.isOnGround && isTowering && Random.nextFloat() <= 0.2f) { | ||
/** | ||
*We use probability to send unsneak when the player is on ground and is towering to fix the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*We use probability to send unsneak when the player is on ground and is towering to fix the | |
* We use probability to send unsneak when the player is on ground and is towering to fix the |
} | ||
|
||
if (player.isOnGround && isTowering && Random.nextFloat() <= 0.2f) { | ||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** | |
/* |
if (player.age % 10 == 0) { | ||
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.PRESS_SHIFT_KEY)) | ||
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | ||
//Fix for the disabler not triggering while telly bridging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//Fix for the disabler not triggering while telly bridging | |
// Fix for the disabler not triggering while telly bridging |
|| player.abilities.flying) { | ||
|
||
if (player.isInFluid || player.isTouchingWater || player.isDead || player.isHoldingOntoLadder|| player.abilities.flying) { | ||
//if the player meets one of theese requirements we return to the handler or else it will flag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//if the player meets one of theese requirements we return to the handler or else it will flag | |
// if the player meets one of theese requirements we return to the handler or else it will flag |
network.sendPacket(ClientCommandC2SPacket(player,ClientCommandC2SPacket.Mode.START_SPRINTING)) | ||
network.sendPacket(ClientCommandC2SPacket(player,ClientCommandC2SPacket.Mode.STOP_SPRINTING)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
network.sendPacket(ClientCommandC2SPacket(player,ClientCommandC2SPacket.Mode.START_SPRINTING)) | |
network.sendPacket(ClientCommandC2SPacket(player,ClientCommandC2SPacket.Mode.STOP_SPRINTING)) | |
network.sendPacket(ClientCommandC2SPacket(player,ClientCommandC2SPacket.Mode.START_SPRINTING)) | |
network.sendPacket(ClientCommandC2SPacket(player,ClientCommandC2SPacket.Mode.STOP_SPRINTING)) |
if (player.isOnGround && !isTellyBridging && !isTowering) { | ||
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (player.isOnGround && !isTellyBridging && !isTowering) { | |
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | |
} | |
if (player.isOnGround && !isTellyBridging && !isTowering) { | |
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | |
} |
* | ||
* Sending start sprint and stop sprint disables vulcan direction sprint checks, | ||
* since vulcan thinks you are just spamming sprint. | ||
* | ||
* Most vulcan scaffold checks (including limit) check if you have sneaked in | ||
* the last 15 ticks. By using packets to sneak and unsneak, you can | ||
* the last 15 ticks. By using packet to unsneak, you can exploit this check and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* the last 15 ticks. By using packet to unsneak, you can exploit this check and | |
* the last 15 ticks. By using packets to unsneak, you can exploit this check and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bro become grammarly
take the "#2" as a second code refactoring and not anything else Xd |
|
||
/** | ||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/* | |
/** |
if (player.age % 9 == 0) { | ||
if (player.isOnGround && !isTellyBridging && !isTowering) { | ||
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | ||
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (player.age % 9 == 0) { | |
if (player.isOnGround && !isTellyBridging && !isTowering) { | |
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | |
} | |
} | |
} | |
} | |
if (player.age % 9 == 0 && player.isOnGround && !isTellyBridging && !isTowering) { | |
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | |
} | |
} | |
} |
CODE REFACTORING
...ex/liquidbounce/features/module/modules/exploit/disabler/disablers/DisablerVulcanScaffold.kt
Outdated
Show resolved
Hide resolved
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | |
} | |
} | |
} | |
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | |
} | |
} | |
} |
Fixed the disabler because it flags badpacket (P). That is caused by the sending of the sneak packet when the player is on air.