[Kotlin] RedeSky New Auth Bypass
-
pic of redesky new auth

video(made by my friend lol)
https://www.youtube.com/watch?v=9PjhUemehHQ
codepackage net.ccbluex.liquidbounce.features.module.modules.misc import com.google.gson.JsonParser import net.ccbluex.liquidbounce.LiquidBounce import net.ccbluex.liquidbounce.event.EventTarget import net.ccbluex.liquidbounce.event.PacketEvent import net.ccbluex.liquidbounce.event.UpdateEvent import net.ccbluex.liquidbounce.features.IntegerValue 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.ui.client.hud.element.elements.Notification import net.ccbluex.liquidbounce.ui.client.hud.element.elements.NotifyType import net.ccbluex.liquidbounce.utils.misc.RandomUtils import net.ccbluex.liquidbounce.utils.timer.MSTimer import net.minecraft.item.* import net.minecraft.nbt.NBTTagCompound import net.minecraft.network.Packet import net.minecraft.network.play.INetHandlerPlayServer import net.minecraft.network.play.client.C0EPacketClickWindow import net.minecraft.network.play.server.S2DPacketOpenWindow import net.minecraft.network.play.server.S2FPacketSetSlot import org.apache.commons.io.IOUtils import java.util.* /*** * @author liulihaocai * FILHO DA PUTA CLIENT */ @ModuleInfo(name = "AuthBypass", description = "Bypass auth when join server.", category = ModuleCategory.MISC) class AuthBypass : Module(){ private val delayValue=IntegerValue("Delay",1500,100,5000) private var skull:String?=null private var type="none" private val packets=ArrayList<Packet<INetHandlerPlayServer>>() private val clickedSlot=ArrayList<Int>() private val timer=MSTimer() private val jsonParser=JsonParser() private val brLangMap = HashMap<String, String>() @EventTarget fun onUpdate(event: UpdateEvent){ if(packets.isNotEmpty()&&timer.hasTimePassed(delayValue.get().toLong())){ for(packet in packets){ mc.netHandler.addToSendQueue(packet) } packets.clear() LiquidBounce.hud.addNotification(Notification(name,"Authenticate bypassed.", NotifyType.INFO)) } } override fun onEnable() { skull=null type="none" packets.clear() clickedSlot.clear() //load locale async Thread { val localeJson=JsonParser().parse(IOUtils.toString(AuthBypass::class.java.classLoader.getResourceAsStream("br_items.json"),"utf-8")).asJsonObject brLangMap.clear() for((key,element) in localeJson.entrySet()){ brLangMap["item.$key"] = element.asString.toLowerCase() } }.start() } @EventTarget fun onPacket(event: PacketEvent){ val packet=event.packet if(packet is S2FPacketSetSlot){ val slot=packet.func_149173_d() val windowId=packet.func_149175_c() val item=packet.func_149174_e() if(windowId==0 || item==null || type=="none" || clickedSlot.contains(slot)){ return } val itemName=item.unlocalizedName when(type.toLowerCase()){ "skull" -> { if(itemName.contains("item.skull.char",ignoreCase = true)){ val nbt=item.tagCompound ?: return // val uuid=nbt.get<CompoundTag>("SkullOwner").get<CompoundTag>("Properties").get<ListTag>("textures").get<CompoundTag>(0).get<StringTag>("Value").value val data=process(nbt.getCompoundTag("SkullOwner").getCompoundTag("Properties") .getTagList("textures",NBTTagCompound.NBT_TYPES.indexOf("COMPOUND")) .getCompoundTagAt(0).getString("Value")) if(skull==null){ skull=data }else if(skull!=data) { skull = null timer.reset() click(windowId,slot,item) } } } // special rules lol "enchada" -> { // select all click(windowId,slot,item) } "cabeça" -> { // skulls if(item.item is ItemSkull){ click(windowId,slot,item) } } "ferramenta" -> { // tools if(item.item is ItemTool){ click(windowId,slot,item) } } "comida" -> { // foods if(item.item is ItemFood){ click(windowId,slot,item) } } // the new item check in redesky else -> { if(getItemLocalName(item).contains(type)){ click(windowId,slot,item) } } } } //silent auth xd if(packet is S2DPacketOpenWindow){ val windowName=packet.windowTitle.unformattedText if(packet.slotCount==27 && packet.guiId.contains("container",ignoreCase = true) && windowName.startsWith("Clique",ignoreCase = true)){ type = when{ windowName.contains("bloco",ignoreCase = true) -> "skull" else -> { val splited=windowName.split(" ") var str=splited[splited.size-1].replace(".","").toLowerCase() if(str.endsWith("s")){ str=str.substring(0,str.length-1) } str } } packets.clear() clickedSlot.clear() event.cancelEvent() }else{ type="none" } } } private fun click(windowId: Int,slot: Int,item: ItemStack){ clickedSlot.add(slot) packets.add(C0EPacketClickWindow(windowId,slot,0,0,item, RandomUtils.nextInt(114,514).toShort())) } private fun getItemLocalName(item: ItemStack):String { return brLangMap[item.unlocalizedName] ?: "null" } private fun process(data: String):String{ val jsonObject=jsonParser.parse(String(Base64.getDecoder().decode(data))).asJsonObject return jsonObject .getAsJsonObject("textures") .getAsJsonObject("SKIN") .get("url").asString } }dict for item names,put it in resources folder
{"apple":"Maçã","appleGold":"Maçã Dourada","armorStand":"Suporte de Armaduras","arrow":"Flecha","banner.black":"Estandarte Preto","banner.blue":"Estandarte Azul","banner.brown":"Estandarte Marrom","banner.cyan":"Estandarte Ciano","banner.gray":"Estandarte Cinza","banner.green":"Estandarte Verde","banner.lightBlue":"Estandarte Azul Claro","banner.lime":"Estandarte Verde Limão","banner.magenta":"Estandarte Magenta","banner.orange":"Estandarte Laranja","banner.pink":"Estandarte Rosa","banner.purple":"Estandarte Lilás","banner.red":"Estandarte Vermelho","banner.silver":"Estandarte Cinza Claro","banner.white":"Estandarte Branco","banner.yellow":"Estandarte Amarelo","bed":"Cama","beefCooked":"Filé","beefRaw":"Bife Cru","blazePowder":"Pó de Blaze","blazeRod":"Vara Incandescente","boat":"Bote","bone":"Osso","book":"Livro","bootsChain":"Botas de Cota de Malha","bootsCloth":"Botas de Couro","bootsDiamond":"Botas de Diamante","bootsGold":"Botas de Ouro","bootsIron":"Botas de Ferro","bow":"Arco","bowl":"Tigela","bread":"Pão","brewingStand":"Suporte de Poções","brick":"Tijolo","bucket":"Balde","bucketLava":"Balde de Lava","bucketWater":"Balde de Água","cake":"Bolo","carrotGolden":"Cenoura Dourada","carrotOnAStick":"Cenoura no Palito","carrots":"Cenoura","cauldron":"Caldeirão","charcoal":"Carvão Vegetal","chestplateChain":"Peitoral de Cota de Malha","chestplateCloth":"Túnica de Couro","chestplateDiamond":"Peitoral de Diamante","chestplateGold":"Peitoral de Ouro","chestplateIron":"Peitoral de Ferro","chickenCooked":"Frango Assado","chickenRaw":"Frango Cru","clay":"Argila","clock":"Relógio","coal":"Carvão","comparator":"Comparador de Redstone","compass":"Bússola","cookie":"Biscoito","diamond":"Diamante","diode":"Repetidor de Redstone","doorAcacia":"Porta de Acácia","doorBirch":"Porta de Eucalipto","doorDarkOak":"Porta de Carvalho Escuro","doorIron":"Porta de Ferro","doorJungle":"Porta de Madeira da Selva","doorOak":"Porta de Carvalho","doorSpruce":"Porta de Pinheiro","dyePowder.black":"Bolsa de Tinta","dyePowder.blue":"Lápis-Lazúli","dyePowder.brown":"Sementes de Cacau","dyePowder.cyan":"Corante Ciano","dyePowder.gray":"Corante Cinza","dyePowder.green":"Verde do Cacto","dyePowder.lightBlue":"Corante Azul Claro","dyePowder.lime":"Corante Verde Limão","dyePowder.magenta":"Corante Magenta","dyePowder.orange":"Corante Laranja","dyePowder.pink":"Corante Rosa","dyePowder.purple":"Corante Lilás","dyePowder.red":"Vermelho da Rosa","dyePowder.silver":"Corante Cinza Claro","dyePowder.white":"Farinha de Osso","dyePowder.yellow":"Amarelo do Dente-de-Leão","egg":"Ovo","emerald":"Esmeralda","emptyMap":"Mapa em Branco","emptyPotion":"Frasco com Água","enchantedBook":"Livro Encantado","enderPearl":"Pérola do Fim","expBottle":"Frasco de Encantamentos","eyeOfEnder":"Olho do Fim","feather":"Pena","fermentedSpiderEye":"Olho de Aranha Fermentado","fireball":"Bola de Fogo","fireworks":"Fogos de Artifício","fireworksCharge":"Estrela de Fogos de Artifício","fish.clownfish.raw":"Peixe-Palhaço","fish.cod.cooked":"Peixe Assado","fish.cod.raw":"Peixe Cru","fish.pufferfish.raw":"Baiacu","fish.salmon.cooked":"Salmão Assado","fish.salmon.raw":"Salmão Cru","fishingRod":"Vara de Pescar","flint":"Pederneira","flintAndSteel":"Isqueiro","flowerPot":"Vaso de Flor","frame":"Moldura","ghastTear":"Lágrima de Ghast","glassBottle":"Frasco de Vidro","goldNugget":"Pepita de Ouro","hatchetDiamond":"Machado de Diamante","hatchetGold":"Machado de Ouro","hatchetIron":"Machado de Ferro","hatchetStone":"Machado de Pedra","hatchetWood":"Machado de Madeira","helmetChain":"Coifa de Cota de Malha","helmetCloth":"Capuz de Couro","helmetDiamond":"Elmo de Diamante","helmetGold":"Elmo de Ouro","helmetIron":"Elmo de Ferro","hoeDiamond":"Enxada de Diamante","hoeGold":"Enxada de Ouro","hoeIron":"Enxada de Ferro","hoeStone":"Enxada de Pedra","hoeWood":"Enxada de Madeira","horsearmordiamond":"Armadura de Diamante para Cavalo","horsearmorgold":"Armadura de Ouro para Cavalo","horsearmormetal":"Armadura de Ferro para Cavalo","ingotGold":"Barra de Ouro","ingotIron":"Barra de Ferro","leash":"Laço","leather":"Couro","leaves":"Folhas","leggingsChain":"Calça de Cota de Malha","leggingsCloth":"Calças de Couro","leggingsDiamond":"Calças de Diamante","leggingsGold":"Calças de Ouro","leggingsIron":"Calças de Ferro","magmaCream":"Creme de Magma","map":"Mapa","melon":"Melancia","milk":"Leite","minecart":"Carrinho","minecartChest":"Carrinho com Baú","minecartCommandBlock":"Carrinho com Bloco de Comando","minecartFurnace":"Carrinho com Fornalha","minecartHopper":"Carrinho com Funil","minecartTnt":"Carrinho com Dinamite","monsterPlacer":"Invocar","mushroomStew":"Ensopado de Cogumelos","muttonCooked":"Carneiro Assado","muttonRaw":"Carneiro Cru","nameTag":"Etiqueta","netherStalkSeeds":"Fungo do Nether","netherStar":"Estrela do Nether","netherbrick":"Tijolo do Nether","netherquartz":"Quartzo do Nether","painting":"Pintura","paper":"Papel","pickaxeDiamond":"Picareta de Diamante","pickaxeGold":"Picareta de Ouro","pickaxeIron":"Picareta de Ferro","pickaxeStone":"Picareta de Pedra","pickaxeWood":"Picareta de Madeira","porkchopCooked":"Carne de Porco Assada","porkchopRaw":"Carne de Porco Crua","potato":"Batata","potatoBaked":"Batata Assada","potatoPoisonous":"Batata Venenosa","potion":"Poção","prismarineCrystals":"Cristais de Prismarinho","prismarineShard":"Fragmento de Prismarinho","pumpkinPie":"Torta de Abóbora","rabbitCooked":"Coelho Assado","rabbitFoot":"Pé de Coelho","rabbitHide":"Pele de Coelho","rabbitRaw":"Coelho Cru","rabbitStew":"Ensopado de Coelho","record":"Disco de Música","redstone":"Redstone","reeds":"Canas-de-Açúcar","rottenFlesh":"Carne Podre","ruby":"Rubi","saddle":"Sela","seeds":"Sementes","seeds_melon":"Sementes de Melancia","seeds_pumpkin":"Sementes de Abóbora","shears":"Tesoura","shovelDiamond":"Pá de Diamante","shovelGold":"Pá de Ouro","shovelIron":"Pá de Ferro","shovelStone":"Pá de Pedra","shovelWood":"Pá de Madeira","sign":"Placa","skull.char":"Cabeça","skull.creeper":"Cabeça de Creeper","skull.player":"Cabeça de %s","skull.skeleton":"Crânio de Esqueleto","skull.wither":"Crânio de Esqueleto Wither","skull.zombie":"Cabeça de Zumbi","slimeball":"Gosma de Slime","snowball":"Bola de Neve","speckledMelon":"Melancia Reluzente","spiderEye":"Olho de Aranha","stick":"Graveto","string":"Linha","sugar":"Açúcar","sulphur":"Pólvora","swordDiamond":"Espada de Diamante","swordGold":"Espada de Ouro","swordIron":"Espada de Ferro","swordStone":"Espada de Pedra","swordWood":"Espada de Madeira","wheat":"Trigo","writingBook":"Pena e Livro","writtenBook":"Livro Escrito","yellowDust":"Pó de Pedra Luminosa"}
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