Jump to content

Obfuscating your local scripts


Explv

Recommended Posts

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
Link to comment
Share on other sites

 

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
Link to comment
Share on other sites

  • 5 weeks later...
  • 10 months later...
  • 1 month later...
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

 

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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