Jump to content

Obfuscating your local scripts


Recommended Posts

Posted

Tried this out to obfuscate my first script but It's giving me an error. Am I just being dumb?

 

VDZGtk6.png

 

Here's the contents of new.pro:

-injars       C:\Users\Cody\OSBot\Scripts\ikkWarriors.jar 
-outjars      C:\Users\Cody\OSBot\Scripts\Obfuscated\ikkWarriors_obf.jar 
-libraryjars  C:\Users\Cody\Desktop\OSBot 2.4.33.jar 
-libraryjars  C:\Program Files\Java\jre1.8.0_66\lib\rt.jar

-keepattributes *Annotation*

-keep public class package.Core
Posted (edited)

 

Tried this out to obfuscate my first script but It's giving me an error. Am I just being dumb?

 

VDZGtk6.png

 

Here's the contents of new.pro:

-injars       C:\Users\Cody\OSBot\Scripts\ikkWarriors.jar 
-outjars      C:\Users\Cody\OSBot\Scripts\Obfuscated\ikkWarriors_obf.jar 
-libraryjars  C:\Users\Cody\Desktop\OSBot 2.4.33.jar 
-libraryjars  C:\Program Files\Java\jre1.8.0_66\lib\rt.jar

-keepattributes *Annotation*

-keep public class package.Core

 

You missed out your username from the config path. You put @c:\Users\Desktop\... rather than @C:\Users\Cody\Desktop\...

 

Also in the .pro file  where you have put package.Core  that should be replaced with your package name. If your main script file Core is not in a package, just put

-keep public class Core
Edited by Explv
  • 5 weeks later...
  • 10 months later...
  • 1 month later...
Posted
31 minutes ago, Explv said:

You are running the command incorrectly. It should be:


java -jar path_to_proguard.jar @path_to_config.pro

Where config.pro is your .pro file and the jar you run is the proguard.jar file

Oh shit thanks, getting this now. Any ideas? 

Quote

Error: Unknown option 'C:\Users\admin\Downloads\proguard5.3.2\proguard_configs\nmz.pro' in argument number 1

 

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...