Skip to content

Instantly share code, notes, and snippets.

@Ralireza
Last active November 19, 2019 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ralireza/367bb5b353647f71e216c5c6bc010006 to your computer and use it in GitHub Desktop.
Save Ralireza/367bb5b353647f71e216c5c6bc010006 to your computer and use it in GitHub Desktop.
public void getDex1(String str) {
....
sb.append(externalStoragePublicDirectory.getAbsolutePath());
sb.append("/conf/1plain.dex");
sb3.append("/conf/1.dex");
CryptoHandler.decrypt(sb2, sb3.toString(), Utils.enkey);
Class classFromDex = DexJob.getClassFromDex(sb2, "com.asisctf.config.SayHelloToYourLittleFriend", ConfigurationActivity.this.getApplicationContext());
String[] strArr = (String[]) classFromDex.getMethod("config", new Class[]{Context.class}).invoke(classFromDex.newInstance(), new Object[]{ConfigurationActivity.this.getApplicationContext()});
if (strArr.length == 0) {
ConfigurationActivity.this.state.setText("can't load configuration, review your registeriation");
return;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment