Skip to content

Instantly share code, notes, and snippets.

@realdirt
realdirt / OhNoLunuarClient"Protection"Cracked:(.java
Last active August 27, 2022 23:24
For the people who do not know that you only have to rename the classes
public static void main(String[] args) {
File origFile = new File(System.getenv("USERPROFILE") + "\\.lunarclient\\offline\\1.8\\lunar-prod-optifine.jar");
try {
JarFile jarFile = new JarFile(origFile);
JarOutputStream jarOutputStream = new JarOutputStream(new FileOutputStream("LunarClient.jar"));
Enumeration<JarEntry> enumeration = jarFile.entries();
while (enumeration.hasMoreElements()) {
JarEntry jarEntry = enumeration.nextElement();
if (jarEntry.getName().endsWith(".lclass")) {