高中生
将军好凶猛

- 金币
- 478
- 好评
- 0
- 信誉
- 92
|
本帖最后由 单车骑千里 于 2026-4-1 23:43 编辑
点击蓝色文字软件下载 各位大佬,帮忙找一下,看不懂他的算法。- //
- // Decompiled by Jadx - 596ms
- //
- package com.zhouge.lordily;
- import android.app.Activity;
- import android.app.AlertDialog;
- import android.content.ClipboardManager;
- import android.content.DialogInterface;
- import android.content.Intent;
- import android.content.SharedPreferences;
- import android.os.Bundle;
- import android.view.View;
- import android.widget.Button;
- import android.widget.EditText;
- import android.widget.TextView;
- import android.widget.Toast;
- import com.stub.StubApp;
- import java.util.Date;
- import javax.crypto.Cipher;
- import javax.crypto.spec.SecretKeySpec;
- public class ApkTool_ZSDialog extends Activity {
- EditText edit;
- Button enter;
- int id = -1;
- int key;
- String temp;
- TextView tv;
- static {
- StubApp.interface11(3235);
- }
- @Override
- public native void onCreate(Bundle bundle);
- class 1 implements View.OnClickListener {
- private final ApkTool_ZSDialog this$0;
- 1(ApkTool_ZSDialog apkTool_ZSDialog) {
- this.this$0 = apkTool_ZSDialog;
- }
- @Override
- public void onClick(View view) {
- ((ClipboardManager) this.this$0.getSystemService("clipboard")).setText(new StringBuffer().append(this.this$0.id).append("").toString());
- Toast.makeText(this.this$0, new StringBuffer().append(this.this$0.id).append("").toString(), 2000).show();
- }
- }
- class 3 implements View.OnClickListener {
- 3() {
- }
- @Override
- public void onClick(View view) {
- ApkTool_ZSDialog.this.edit.setText(((ClipboardManager) ApkTool_ZSDialog.this.getSystemService("clipboard")).getPrimaryClip().getItemAt(0).getText().toString());
- }
- }
- class 2 implements View.OnClickListener {
- private final ApkTool_ZSDialog this$0;
- private final Date val$date;
- private final SharedPreferences val$sp;
- 2(ApkTool_ZSDialog apkTool_ZSDialog, SharedPreferences sharedPreferences, Date date) {
- this.this$0 = apkTool_ZSDialog;
- this.val$sp = sharedPreferences;
- this.val$date = date;
- }
- @Override
- public void onClick(View view) {
- int i = this.this$0.id / 2;
- int i2 = this.this$0.key;
- int i3 = i + this.this$0.key;
- String de = ApkTool_ZSDialog.de(this.this$0.edit.getText().toString());
- if (de != null) {
- String[] split = de.split("z");
- try {
- if (Integer.parseInt(split[0], 16) == i3) {
- Toast.makeText(this.this$0, "成功!", 2000).show();
- String str = "软件使用无期限";
- if (split.length > 1) {
- str = new StringBuffer().append("软件使用期:").append(ApkTool_ZSDialog.formatDuring(Long.parseLong(split[1]))).toString();
- }
- this.this$0.dia(str, new DialogInterface.OnClickListener(this, split, this.val$sp, this.val$date) {
- private final 2 this$0;
- private final Date val$date;
- private final SharedPreferences val$sp;
- private final String[] val$y;
- {
- this.this$0 = this;
- this.val$y = split;
- this.val$sp = r11;
- this.val$date = r12;
- }
- @Override
- public void onClick(DialogInterface dialogInterface, int i4) {
- if (this.val$y.length > 1) {
- this.val$sp.edit().putBoolean("F1534847429958", true).commit();
- try {
- this.val$sp.edit().putString("ttt", ApkTool_ZSDialog.en(this.val$y[1])).commit();
- } catch (Exception e) {
- }
- this.this$0.this$0.temp = new StringBuffer().append("").append(this.val$date.getTime()).toString();
- try {
- this.val$sp.edit().putString("sss", ApkTool_ZSDialog.en(this.this$0.this$0.temp)).commit();
- } catch (Exception e2) {
- }
- this.val$sp.edit().putInt("id", -1).commit();
- } else {
- this.val$sp.edit().putBoolean("F1534847442303", true).commit();
- }
- this.this$0.this$0.enter();
- }
- });
- return;
- }
- this.this$0.enter.setText("失败,点击重试!");
- } catch (NumberFormatException e) {
- this.this$0.enter.setText("失败,点击重试!");
- }
- }
- }
- }
- void dia(String str, DialogInterface.OnClickListener onClickListener) {
- AlertDialog.Builder builder = new AlertDialog.Builder(this);
- builder.setTitle("*_*");
- builder.setMessage(str);
- builder.setPositiveButton("确定", onClickListener);
- builder.show();
- }
- void enter() {
- try {
- startActivity(new Intent(this, Class.forName("acdibben.ejbaefgo.aabjehjp.iccbfdfq.view.CPUI001Activity")));
- finish();
- } catch (ClassNotFoundException e) {
- throw new NoClassDefFoundError(e.getMessage());
- }
- }
- public static String en(String str) throws Exception {
- if ("Format2044153997" == 0) {
- return (String) null;
- }
- if ("Format2044153997".length() != 16) {
- return (String) null;
- }
- SecretKeySpec secretKeySpec = new SecretKeySpec("Format2044153997".getBytes("ASCII"), "AES");
- Cipher cipher = Cipher.getInstance("AES");
- cipher.init(1, secretKeySpec);
- return byte2hex(cipher.doFinal(str.getBytes())).toLowerCase();
- }
- public static String byte2hex(byte[] bArr) {
- String stringBuffer;
- String str = "";
- for (byte b : bArr) {
- String hexString = Integer.toHexString(b & 255);
- if (hexString.length() == 1) {
- stringBuffer = new StringBuffer().append(new StringBuffer().append(str).append("0").toString()).append(hexString).toString();
- } else {
- stringBuffer = new StringBuffer().append(str).append(hexString).toString();
- }
- str = stringBuffer;
- }
- return str.toUpperCase();
- }
- public static String de(String str) {
- String str2;
- if (str == null) {
- return (String) null;
- }
- try {
- if ("Format2044153997" == 0) {
- str2 = (String) null;
- } else if ("Format2044153997".length() != 16) {
- str2 = (String) null;
- } else {
- SecretKeySpec secretKeySpec = new SecretKeySpec("Format2044153997".getBytes("ASCII"), "AES");
- Cipher cipher = Cipher.getInstance("AES");
- cipher.init(2, secretKeySpec);
- try {
- str2 = new String(cipher.doFinal(hex2byte(str)));
- } catch (Exception e) {
- System.out.println(e.toString());
- str2 = (String) null;
- }
- }
- return str2;
- } catch (Exception e2) {
- System.out.println(e2.toString());
- return (String) null;
- }
- }
- public static byte[] hex2byte(String str) {
- if (str == null) {
- return (byte[]) null;
- }
- int length = str.length();
- if (length % 2 == 1) {
- return (byte[]) null;
- }
- byte[] bArr = new byte[length / 2];
- for (int i = 0; i != length / 2; i++) {
- bArr[i] = (byte) Integer.parseInt(str.substring(i * 2, (i * 2) + 2), 16);
- }
- return bArr;
- }
- public static String formatDuring(long j) {
- return new StringBuffer().append(new StringBuffer().append(new StringBuffer().append(new StringBuffer().append(new StringBuffer().append(new StringBuffer().append(new StringBuffer().append(j / 0x05265c00).append(" 天 ").toString()).append((j % 0x05265c00) / 3600000).toString()).append(" 小时 ").toString()).append((j % 3600000) / 60000).toString()).append(" 分钟 ").toString()).append((j % 60000) / 1000).toString()).append(" 秒 ").toString();
- }
- }
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|