正版风暴黑马 v5.0版本的 MD5 值为:01425d13106471265483ee3782390bf1

以下内容为反编译后的 C1065Oo.java 源代码,内容仅作参考


package p0000oO008.p001ooo8o088.p002Oo0oo80;

import android.content.Context;
import android.text.TextUtils;
import androidx.core.app.NotificationCompat;
import com.android.launcher3.StringFog;
import com.gibb.App;
import com.google.protobuf.ByteString;
import com.netty.sdk.protobuf.MessageData;
import com.tendcloud.tenddata.cc;
import java.io.File;
import java.io.IOException;
import java.net.InetAddress;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.TimeUnit;
import okhttp3.MediaType;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;
import okhttp3.ResponseBody;
import org.json.JSONArray;
import org.json.JSONObject;
import org.jsoup.Connection;
import org.jsoup.Jsoup;

public class C1065Oo {

    private static C1065Oo f3514Lil1l;

    private static final String f3513LliiII = ".uivers.dat2";

    public static String f3515lll = "http://%s:8899/vapi/getXC";
    public static String LLI1lI1 = "http://%s:8899/vapi/getXConfig";

    private String f3517lILLLIL = "http://%s:8899/vapi/apkStatus";

    private List<String> f3516Li = new CopyOnWriteArrayList();
    private List<String> il = new CopyOnWriteArrayList();
    private List<String> IIiL1 = new CopyOnWriteArrayList();

    private boolean f3518lIlilLL = false;

    public static class oo {

        String[] f3520lll = {"rxc.functions.Actions", "mirrorb.RefObject", "com.cloudinject.core.utils.freereflection.BootstrapClass", "com.cloudinject.feature.App"};

        private boolean m5770lll(Context context) {
            try {
                String[] list = context.getAssets().list("");
                if (list != null) {
                    for (String str : list) {
                        if (str.startsWith("cloudinject")) {
                            return true;
                        }
                    }
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
            return false;
        }

        private boolean m5771lll(ClassLoader classLoader, String str) {
            Class<?> cls;
            try {
                cls = classLoader.loadClass(str);
            } catch (Exception unused) {
                cls = null;
            }
            return cls != null;
        }

        public boolean m5772lll(Context context, ClassLoader classLoader) {
            boolean m5773lll = m5773lll(classLoader);
            return m5773lll ? m5773lll : m5770lll(context);
        }

        public boolean m5773lll(ClassLoader classLoader) {
            for (String str : this.f3520lll) {
                if (m5771lll(classLoader, str)) {
                    return true;
                }
            }
            return false;
        }
    }

    private C1065Oo() {
        this.il.add("kGg6A40F9f272nEoOAW1eqqXQvRLScaUtbTxvvY5xoIRV1yXZVjvkuBWXQK9V-36ppr2yrRLWF4pWXCEvyknuWhw5EJBPRGIYJVUPAxtSJnuQf1nH-cviFeUzqcd16n90372A4IU_n7N34649_PGsLbenurKUA5iagtGd5m8Mb8");
        this.il.add("bQ1Mud1Xcrighr2Ky6UjBlIWxhxyM1u-byBIiaUoIbFS1OoNGp-qtB826Weddr8n5VoGxFuMY39gwo2gA7ekW1kkLZG30vChUC2Q01yY62SfZCmgToLD-9L4q2xGopuAXuqM_t67igrkK_EaznvZFI7iennIVAZuBkmrzI3TasI");
        this.IIiL1.add("AU_uu9GWwwITKb78rGrGLuxmuZvgZVYC4qWcX_n_mNPyFuhCnUWU3X7jNf2j5T3qIbFKIjC4Y7ciZVTiQARUsrIIggzwupDEn-otbrLpojsn0CODmFMNMu_HIrteSa56jRiWlowbL7hCnksAIpT7fL2xCg9KYP70IzKFUt7jCwQ");
        this.IIiL1.add("LLxzW4wWKThO-Hyv9tOMWsPEX76PUW7UNkEKhgHFsoZqMHpz2NB3Nc4zKlXaXuA-r2hiBkro94r7KWmRjP3Wtn1pyot1lGmOwlpM8sZx0r1lwSpbVriwcfjuVOl0U6etm2h23LjrHDjpje94CwE54nWXwPUNK-1-PMW9eXobRMg");
        this.IIiL1.add("q82KdCD-B970Kb3svqNGPe__CGUvBl-fUI-vVi8KXCJXDDlXIDMMc_dkCiwRkICPDUD2lBndSD3SCgShGHOgsleOuB4FUD_R1Q2dbN49tKjmWrI0_ahSqYLvtbcItXlaVOhVtma4C8cYyWYlf1VqsbkiJfglXAXI3wSRRJ7F1wI");
        this.IIiL1.add("k7tJZcbyQVGyqaqAnYvntJrrpCvpC9cMoVN-FF3F5IGpvMNQYlwftrhi3-DFiBWB3-P7pgKb6vaNkVPlfAQSRv0Z1wKF8XKy_05GfKkmm5dgwrUL3_u-74Fc1qwfKW0tL5pJM6qvD6RBTw_EazOhiuT70kWxrPtj0TL8DLlhb9M");
        for (int i = 0; i < this.il.size(); i++) {
            try {
                this.f3516Li.add(Ooo8800.m2647lll(this.il.get(i), Ooo8800.m2648lll(Ooo8800.f1786Lil1l)).trim());
            } catch (Exception unused) {
            }
        }
    }

    private void LLI1lI1(String str, MessageData.Message message) {
        if (message == null) {
            message = MessageData.Message.newBuilder().setCode(1).setMsg("验证请求结果为空").build();
        }
        if (!str.startsWith("1|")) {
            if (!str.startsWith("2|")) {
                m5761Li();
                return;
            } else if (message.getCode() == 101) {
                return;
            }
        }
        m5769lll(message);
    }

    private void m5754Li(String str) {
        JSONArray optJSONArray;
        JSONObject m5755lILLLIL = m5755lILLLIL(str);
        if (m5755lILLLIL == null || (optJSONArray = m5755lILLLIL.optJSONArray(cc.a.DATA)) == null || optJSONArray.length() <= 0) {
            return;
        }
        for (int i = 0; i < optJSONArray.length(); i++) {
            String optString = optJSONArray.optString(i);
            if (optString != null && optString.length() > 0 && !this.f3516Li.contains(optString)) {
                this.f3516Li.add(optString);
            }
        }
    }

    private JSONObject m5755lILLLIL(String str) {
        String str2;
        try {
            str2 = Jsoup.connect(str).method(Connection.Method.GET).maxBodySize(4194304).timeout(10000).followRedirects(true).ignoreContentType(true).ignoreHttpErrors(true).execute().body();
        } catch (IOException e) {
            if (C0712O00.f1831Lil1l) {
                e.printStackTrace();
            }
            str2 = null;
        }
        if (str2 != null && str2.length() > 0) {
            try {
                return str2.startsWith("{") ? new JSONObject(str2) : new JSONObject(Ooo8800.m2647lll(str2, Ooo8800.m2648lll(Ooo8800.f1786Lil1l)));
            } catch (Exception unused) {
            }
        }
        return null;
    }

    public static synchronized C1065Oo m5756lll() {
        C1065Oo c1065Oo;
        synchronized (C1065Oo.class) {
            if (f3514Lil1l == null) {
                f3514Lil1l = new C1065Oo();
            }
            c1065Oo = f3514Lil1l;
        }
        return c1065Oo;
    }

    public void m5757lll(String str, String str2) {
        JSONObject jSONObject = new JSONObject();
        try {
            String il = C0806o80.m3562IiiiIL().il();
            String IIiL1 = C0806o80.m3562IiiiIL().IIiL1();
            jSONObject.putOpt("finger1", il);
            jSONObject.putOpt("finger2", IIiL1);
            jSONObject.putOpt("from", str2);
            jSONObject.putOpt("md5", C0OO.LLI1lI1(App.getContext(), App.getContext().getPackageName()));
            jSONObject.putOpt("pkg", App.getContext().getPackageName());
        } catch (Exception unused) {
        }
        MessageData.Message m5766lll = m5766lll(this.f3517lILLLIL, MessageData.Message.newBuilder().setParam1(ByteString.copyFromUtf8(jSONObject.toString())).build());
        m5761Li();
        if (m5766lll == null) {
            LLI1lI1(str, null);
            return;
        }
        try {
            if (m5766lll.getCode() == 0) {
                m5761Li();
            } else {
                LLI1lI1(str, m5766lll);
            }
        } catch (Exception unused2) {
        }
    }

    private void m5758lll(Response response) {
        if (response != null) {
            List<String> headers = response.headers("Server");
            if (headers != null) {
                Iterator<String> it = headers.iterator();
                while (it.hasNext()) {
                    if (it.next().toUpperCase().contains("Microsoft")) {
                        System.exit(0);
                    }
                }
            }
            List<String> headers2 = response.headers("X-Powered-By");
            if (headers2 != null) {
                for (String str : headers2) {
                    if (str.toUpperCase().contains("PHP")) {
                        System.exit(0);
                    }
                    if (str.toUpperCase().contains("ASP")) {
                        System.exit(0);
                    }
                }
            }
        }
    }

    public String IIiL1() {
        JSONObject m5763lIlilLL = m5763lIlilLL();
        return m5763lIlilLL != null ? m5763lIlilLL.optString(NotificationCompat.CATEGORY_MESSAGE) : "已被禁用";
    }

    public void LLI1lI1() {
        if (this.f3518lIlilLL) {
            return;
        }
        m5754Li("http://ieasyclick.com/docs/testdd2.txt");
        List<String> list = this.IIiL1;
        if (list == null || list.isEmpty()) {
            this.f3518lIlilLL = true;
            return;
        }
        Iterator<String> it = this.IIiL1.iterator();
        while (it.hasNext()) {
            try {
                m5754Li(Ooo8800.m2647lll(it.next(), Ooo8800.m2648lll(Ooo8800.f1786Lil1l)));
            } catch (Exception unused) {
            }
        }
        this.f3518lIlilLL = true;
    }

    public void LLI1lI1(final String str) {
        m5762lILLLIL();
        if (C08O0OO0.LLI1lI1()) {
            m5761Li();
        } else {
            new Thread() {
                @Override
                public void run() {
                    boolean z;
                    C1065Oo.m5756lll().LLI1lI1();
                    String m5760LliiII = C1065Oo.this.m5760LliiII();
                    if (TextUtils.isEmpty(m5760LliiII)) {
                        m5760LliiII = C0795o00OooO.m3513lll(App.getContext().getAssets(), "vers.dat");
                        z = false;
                    } else {
                        z = true;
                    }
                    if (TextUtils.isEmpty(m5760LliiII)) {
                        C1065Oo.this.m5757lll("1|", str);
                        return;
                    }
                    if (!z) {
                        m5760LliiII = C100180ooo.m5174lll(m5760LliiII);
                    }
                    if (m5760LliiII.startsWith("3|")) {
                        C1065Oo.this.m5761Li();
                    } else {
                        C1065Oo.this.m5757lll(m5760LliiII, str);
                    }
                }
            }.start();
        }
    }

    String m5760LliiII() {
        try {
            String LLI1lI12 = C0795o00OooO.LLI1lI1(App.getContext().getFileStreamPath(f3513LliiII));
            if (TextUtils.isEmpty(LLI1lI12)) {
                return null;
            }
            String optString = new JSONObject(LLI1lI12).optString("datav");
            if (TextUtils.isEmpty(optString)) {
                return null;
            }
            if (optString.contains(StringFog.decrypt("PA=="))) {
                return optString;
            }
            return optString + StringFog.decrypt("PA==");
        } catch (Exception unused) {
            return null;
        }
    }

    public void m5761Li() {
        new File(App.getContext().getFilesDir(), ".pkginfo.json").delete();
    }

    public boolean il() {
        JSONObject m5763lIlilLL = m5763lIlilLL();
        return (m5763lIlilLL == null || m5763lIlilLL.optInt("code") == 0) ? false : true;
    }

    public void m5762lILLLIL() {
        if (new oo().m5772lll(App.getContext(), C1065Oo.class.getClassLoader())) {
            System.exit(0);
        }
    }

    public org.json.JSONObject m5763lIlilLL() {
        throw new UnsupportedOperationException("Method not decompiled: p0000oO008.p001ooo8o088.p002Oo0oo80.C1065Oo.m5763lIlilLL():org.json.JSONObject");
    }

    public String m5764Lil1l() {
        for (int i = 0; i < this.f3516Li.size(); i++) {
            String m5768lll = m5768lll(this.f3516Li.get(i));
            if (m5768lll != null && m5768lll.length() > 0) {
                return m5768lll;
            }
        }
        return null;
    }

    public void m5765Lil1l(String str) {
        C0795o00OooO.m3519lll(App.getContext().getFileStreamPath(f3513LliiII), str);
    }

    public MessageData.Message m5766lll(String str, MessageData.Message message) {
        MessageData.Message message2 = null;
        for (int i = 0; i < this.f3516Li.size(); i++) {
            String m5768lll = m5768lll(this.f3516Li.get(i));
            if (m5768lll != null && m5768lll.length() > 0) {
                try {
                    message2 = m5767lll(m5768lll, str, message);
                } catch (Exception e) {
                    if (i == this.f3516Li.size() - 1) {
                        e.printStackTrace();
                    }
                }
                if (message2 != null) {
                    return message2;
                }
            }
        }
        return MessageData.Message.newBuilder().setCode(101).setMsg("无法完成验证").build();
    }

    public MessageData.Message m5767lll(String str, String str2, MessageData.Message message) {
        Response response;
        ResponseBody responseBody;
        ResponseBody body;
        Request build = new Request.Builder().url(String.format(str2, str)).post(RequestBody.create(MediaType.parse("application/x-protobuf"), message.toByteArray())).build();
        ResponseBody responseBody2 = null;
        try {
            response = new OkHttpClient.Builder().connectTimeout(3L, TimeUnit.SECONDS).callTimeout(3L, TimeUnit.SECONDS).build().newCall(build).execute();
            try {
                m5758lll(response);
                String httpUrl = build.url().toString();
                if (httpUrl != null && !httpUrl.contains(str)) {
                    System.exit(0);
                }
                body = response.body();
            } catch (Exception e) {
                e = e;
                responseBody = null;
            } catch (Throwable th) {
                th = th;
            }
        } catch (Exception e2) {
            e = e2;
            responseBody = null;
            response = null;
        } catch (Throwable th2) {
            th = th2;
            response = null;
        }
        try {
            byte[] bytes = body.bytes();
            if (bytes == null) {
                try {
                    body.close();
                } catch (Exception unused) {
                }
                try {
                    response.close();
                } catch (Exception unused2) {
                }
                return null;
            }
            MessageData.Message parseFrom = MessageData.Message.parseFrom(bytes);
            try {
                body.close();
            } catch (Exception unused3) {
            }
            try {
                response.close();
            } catch (Exception unused4) {
            }
            return parseFrom;
        } catch (Exception e3) {
            responseBody = body;
            e = e3;
            try {
                e.printStackTrace();
                try {
                    responseBody.close();
                } catch (Exception unused5) {
                }
                try {
                    response.close();
                } catch (Exception unused6) {
                }
                return null;
            } catch (Throwable th3) {
                th = th3;
                responseBody2 = responseBody;
                try {
                    responseBody2.close();
                } catch (Exception unused7) {
                }
                try {
                    response.close();
                    throw th;
                } catch (Exception unused8) {
                    throw th;
                }
            }
        } catch (Throwable th4) {
            responseBody2 = body;
            th = th4;
            responseBody2.close();
            response.close();
            throw th;
        }
    }

    public String m5768lll(String str) {
        for (int i = 0; i < 1; i++) {
            try {
                for (InetAddress inetAddress : InetAddress.getAllByName(str)) {
                    String hostAddress = inetAddress.getHostAddress();
                    if (!TextUtils.isEmpty(hostAddress)) {
                        return hostAddress;
                    }
                }
            } catch (Exception unused) {
            }
        }
        return null;
    }

    public void m5769lll(com.netty.sdk.protobuf.MessageData.Message r5) {
        throw new UnsupportedOperationException("Method not decompiled: p0000oO008.p001ooo8o088.p002Oo0oo80.C1065Oo.m5769lll(com.netty.sdk.protobuf.MessageData$Message):void");
    }
}