导航菜单

页面标题

页面副标题

财通国际 v2.0 - f.java 源代码

正在查看: 财通国际 v2.0 应用的 f.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.zx.a.I8b7;

import android.net.Network;
import android.util.Base64;
import com.zx.a.I8b7.m2;
import io.dcloud.common.util.Md5Utils;
import java.io.BufferedWriter;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.security.SecureRandom;
import java.util.HashMap;
import org.json.JSONObject;

public class f implements Runnable {

    public class a implements m2.b {
        public a(f fVar) {
        }

        @Override
        public void a() {
        }

        @Override
        public void a(int i2, String str) {
        }

        @Override
        public void a(Network network) {
            try {
                HttpURLConnection httpURLConnection = (HttpURLConnection) network.openConnection(new URL("https://zxid-m.mobileservice.cn/sdk/ext/pconfig"));
                i0.a(httpURLConnection);
                byte[] bArr = new byte[16];
                new SecureRandom().nextBytes(bArr);
                p.b(bArr, m3.a(m3.f1096h));
                HashMap<String, String> b = i0.b(new String(Base64.encode(bArr, 2), StandardCharsets.UTF_8));
                httpURLConnection.setRequestMethod("POST");
                for (String str : b.keySet()) {
                    httpURLConnection.setRequestProperty(str, b.get(str));
                }
                httpURLConnection.setRequestProperty("Content-type", "application/json; charset=UTF-8");
                httpURLConnection.setRequestProperty("Charset", Md5Utils.DEFAULT_CHARSET);
                httpURLConnection.connect();
                JSONObject jSONObject = new JSONObject();
                BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(httpURLConnection.getOutputStream(), Md5Utils.DEFAULT_CHARSET));
                bufferedWriter.write(jSONObject.toString());
                bufferedWriter.close();
                r2.a(u1.a(x0.b("text/json; charset=utf-8"), httpURLConnection.getContentLength(), httpURLConnection.getResponseCode() == 200 ? httpURLConnection.getInputStream() : httpURLConnection.getErrorStream()).b());
                httpURLConnection.disconnect();
            } catch (Throwable th) {
                r2.a(th.getMessage());
            }
        }
    }

    @Override
    public void run() {
        try {
            m2.c.a.a(new a(this));
        } catch (Throwable th) {
            r2.a(th);
        }
    }
}