-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
195 changed files
with
31,168 additions
and
52,982 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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,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
46
cli/src/main/java/xd/ericsson/rapapa/obfuscator/Entrypoint.java
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,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(); | ||
} | ||
} | ||
} |
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,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); | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.