Skip to content

Commit

Permalink
ULTRASKID
Browse files Browse the repository at this point in the history
  • Loading branch information
erxson committed Sep 22, 2024
1 parent b913575 commit 10a5b51
Show file tree
Hide file tree
Showing 195 changed files with 31,168 additions and 52,982 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

42 changes: 15 additions & 27 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# Compiled class file
*.class
# CMake
cmake-build-*/

.idea/

# Log file
*.log
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023

# BlueJ files
*.ctxt
*.iml
modules.xml
*.ipr

# Mobile Tools for Java (J2ME)
.mtj.tmp/
### Java ###
# Compiled class file
*.class

# Package Files #
*.jar
*.war
*.nar
*.ear
Expand All @@ -20,23 +24,7 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*

# Gradle files
*.lock
*.bin
gc.properties
cache.properties
file-system.probe

# Intellij files
.idea/*

# Build files
build/*

# Ambien settings file
settings.json

# Upload to maven script
script.sh
target/
build/
.gradle/
44 changes: 0 additions & 44 deletions README.md

This file was deleted.

70 changes: 0 additions & 70 deletions build.gradle

This file was deleted.

61 changes: 61 additions & 0 deletions cli/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>xd.ericsson</groupId>
<artifactId>rapapa-obfuscator</artifactId>
<version>1.0.0</version>
</parent>

<artifactId>rapapa-obfuscator-cli</artifactId>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>xd.ericsson.rapapa.obfuscator.Entrypoint</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>xd.ericsson</groupId>
<artifactId>rapapa-obfuscator-common</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>

</project>
46 changes: 46 additions & 0 deletions cli/src/main/java/xd/ericsson/rapapa/obfuscator/Entrypoint.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package xd.ericsson.rapapa.obfuscator;

import com.beust.jcommander.JCommander;
import me.iris.ambien.obfuscator.Bruhfuscator;
import me.iris.ambien.obfuscator.Flags;
import me.iris.ambien.obfuscator.utilities.StringUtil;

public class Entrypoint {
public static void main(String[] args) {
Bruhfuscator.LOGGER.info("Bruhfuscator | {}", Bruhfuscator.VERSION);

// Parse arguments
final Flags flags = new Flags();
final JCommander commander = JCommander.newBuilder().addObject(flags).build();
commander.parse(args);

// Print help
if (flags.help || args.length == 0) {
commander.usage();
return;
}

Bruhfuscator.LOGGER.info("Parsed flags.");

try {
Bruhfuscator.get.obfuscate(flags);
} catch (Throwable t) {
final String javaVersion = System.getProperty("java.version");
final String javaVendor = System.getProperty("java.vendor");

// print environment info
Bruhfuscator.LOGGER.error("Exception thrown: {}", t.getMessage());
Bruhfuscator.LOGGER.error("JVM: {}", javaVersion);
Bruhfuscator.LOGGER.error("Vendor: {}", javaVendor);
Bruhfuscator.LOGGER.error("Flags: {}", StringUtil.build(args));

// check for basic fixes
if (flags.experimentalTransformers)
Bruhfuscator.LOGGER.info("This exception may have been caused by an experimental transformer. (Run Bruhfuscator without the experimental arg)");
if (javaVersion.startsWith("1.") || javaVersion.startsWith("11") || javaVersion.startsWith("16"))
Bruhfuscator.LOGGER.info("It is recommended to use Java 17.");

t.printStackTrace();
}
}
}
37 changes: 37 additions & 0 deletions cli/src/main/java/xd/ericsson/rapapa/obfuscator/Temp.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package xd.ericsson.rapapa.obfuscator;

import java.util.Arrays;

public class Temp {
public static void main(String[] args) {
System.out.println(asd());
}

public static String asd() {
char[] var1 = new char[21];
var1[0] = (char)('몷' ^ (char)Arrays.hashCode(var1));
var1[1] = (char)(5771 ^ (char)Arrays.hashCode(var1));
var1[2] = (char)('몑' ^ (char)Arrays.hashCode(var1));
var1[3] = (char)(13444 ^ (char)Arrays.hashCode(var1));
var1[4] = (char)('\ue2d2' ^ (char)Arrays.hashCode(var1));
var1[5] = (char)(14203 ^ (char)Arrays.hashCode(var1));
var1[6] = (char)(18614 ^ (char)Arrays.hashCode(var1));
var1[7] = (char)('쫤' ^ (char)Arrays.hashCode(var1));
var1[8] = (char)('\ud9fd' ^ (char)Arrays.hashCode(var1));
var1[9] = (char)(20499 ^ (char)Arrays.hashCode(var1));
var1[10] = (char)(24360 ^ (char)Arrays.hashCode(var1));
var1[11] = (char)(19161 ^ (char)Arrays.hashCode(var1));
var1[12] = (char)(4084 ^ (char)Arrays.hashCode(var1));
var1[13] = (char)(3214 ^ (char)Arrays.hashCode(var1));
var1[14] = (char)(25204 ^ (char)Arrays.hashCode(var1));
var1[15] = (char)('쒑' ^ (char)Arrays.hashCode(var1));
var1[16] = (char)('鹁' ^ (char)Arrays.hashCode(var1));
var1[17] = (char)('럺' ^ (char)Arrays.hashCode(var1));
var1[18] = (char)('觭' ^ (char)Arrays.hashCode(var1));
var1[19] = (char)(26488 ^ (char)Arrays.hashCode(var1));
var1[20] = (char)(27678 ^ (char)Arrays.hashCode(var1));
return new String(var1);

}

}
Loading

0 comments on commit 10a5b51

Please sign in to comment.