Advertisement
spacechase0

Runtime Deobfuscation Check

Aug 8th, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1.  
  2.    
  3.     public static boolean isRuntimeDeobfuscated()
  4.     {
  5.         try
  6.         {
  7.             Class c = CoreModManager.class;
  8.             Field field = c.getDeclaredField( "deobfuscatedEnvironment" );
  9.             field.setAccessible( true );
  10.             return !field.getBoolean( null );
  11.         }
  12.         catch ( Exception exception )
  13.         {
  14.             exception.printStackTrace();
  15.             return true;
  16.         }
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement