Hello Hack Forums!
Today, I am posting this guide on how to obfuscate .jar files!
This can be used on just about any .jar file!
So, first off, you'll need to download and install a few things.
Proguard: http://sourceforge.net/projects/proguard/files/ (latest)
Java: https://www.java.com/en/download/
Java JDK: http://www.oracle.com/technetwork/java/j...80260.html
Now, for the actual guide.
1: Extract proguard(version number).zip, and open the folder.
2: Inside of the proguard folder, find proguardgui.bat (inside of bin folder). Open proguardgui.bat
3: Input/output tap, Click "add input" and add your stub/file.
4: In the output, put the output into a different folder. This is where you the newly obfuscated file will go when proguard has obfuscated it.
5: In library, add the following:
(assuming you're running a 64 bit OS, using the default installation locations)
C:\Program Files\Java\jre\lib\rt.jar
C:\Program Files (x86)\Java\jre7\lib\jce.jar
C:\Program Files\Java\jdk1.70_25\jre\lib\jce.jar
6: Go to the Shrinking tab.
Now, make sure only Applications, Enumerations, Database Drivers, and Swing UI L&F are checked. Nothing else.
Picture
Spoiler (Click to View)
7: Now, make sure Obfuscate, Obfuscation dictionary, Class obfuscation dictionary, Package obfuscation dictionary, Overload Aggressively, Use unique class member names, Use mixed-case class names, and at the bottom, Native method names are checked.
Picture
Spoiler (Click to View)
NOTE: With the dictionary's, you MUST use your own word dictionary. This makes your stub more unique, so your files can't be detected/deobfuscated easily.
8: Now, go to the Optimization tab.
Check the following: Optimize, Merge interfaces aggressively, and finally everything in the remove section.
Picture
Spoiler (Click to View)
9: Now, to the information tab.
Make sure in the entire section, Note potential mistakes in the configuration, Warn about possibly erroneous input, and Skip non-public library class members are checked.
Picture
Spoiler (Click to View)
10: Go to the process tab tab, and process the file. You are now done.
Now test, and scan your stub/file with a non-distributing scanning site. I recommend using RazorScanner!
Make sure to save your configuration, so you don't need to do this all over again.
If you have any questions or need any help, feel free to PM me or post on this thread! 🤝
Today, I am posting this guide on how to obfuscate .jar files!
This can be used on just about any .jar file!
So, first off, you'll need to download and install a few things.
Proguard: http://sourceforge.net/projects/proguard/files/ (latest)
Java: https://www.java.com/en/download/
Java JDK: http://www.oracle.com/technetwork/java/j...80260.html
Now, for the actual guide.
1: Extract proguard(version number).zip, and open the folder.
2: Inside of the proguard folder, find proguardgui.bat (inside of bin folder). Open proguardgui.bat
3: Input/output tap, Click "add input" and add your stub/file.
4: In the output, put the output into a different folder. This is where you the newly obfuscated file will go when proguard has obfuscated it.
5: In library, add the following:
(assuming you're running a 64 bit OS, using the default installation locations)
C:\Program Files\Java\jre\lib\rt.jar
C:\Program Files (x86)\Java\jre7\lib\jce.jar
C:\Program Files\Java\jdk1.70_25\jre\lib\jce.jar
6: Go to the Shrinking tab.
Now, make sure only Applications, Enumerations, Database Drivers, and Swing UI L&F are checked. Nothing else.
Picture
Spoiler (Click to View)
7: Now, make sure Obfuscate, Obfuscation dictionary, Class obfuscation dictionary, Package obfuscation dictionary, Overload Aggressively, Use unique class member names, Use mixed-case class names, and at the bottom, Native method names are checked.
Picture
Spoiler (Click to View)
NOTE: With the dictionary's, you MUST use your own word dictionary. This makes your stub more unique, so your files can't be detected/deobfuscated easily.
8: Now, go to the Optimization tab.
Check the following: Optimize, Merge interfaces aggressively, and finally everything in the remove section.
Picture
Spoiler (Click to View)
9: Now, to the information tab.
Make sure in the entire section, Note potential mistakes in the configuration, Warn about possibly erroneous input, and Skip non-public library class members are checked.
Picture
Spoiler (Click to View)
10: Go to the process tab tab, and process the file. You are now done.
Now test, and scan your stub/file with a non-distributing scanning site. I recommend using RazorScanner!
Make sure to save your configuration, so you don't need to do this all over again.
If you have any questions or need any help, feel free to PM me or post on this thread! 🤝
-Benjy



![[Image: 5OLPnCA.png]](https://i.imgur.com/5OLPnCA.png)
![[Image: x0M50q9.png]](https://i.imgur.com/x0M50q9.png)
![[Image: aJ8PHF9.png]](https://i.imgur.com/aJ8PHF9.png)
![[Image: sajh9DN.png]](https://i.imgur.com/sajh9DN.png)
![[Image: oTBuHdd.png]](https://i.imgur.com/oTBuHdd.png)
