正在查看: Credmex v3.12.2 应用的 C0045.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Credmex v3.12.2 应用的 C0045.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package cn.tongdun.android.p025PPPPPPP;
import com.bumptech.glide.load.Key;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.InetAddress;
import java.net.Proxy;
import java.net.Socket;
import java.net.URL;
import java.net.URLEncoder;
import java.net.UnknownHostException;
import java.security.SecureRandom;
import java.util.Map;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.KeyManager;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.TrustManager;
public class C0045 {
private static HostnameVerifier f572;
private static final String[] f573PPPPPPP;
public static class C0046 extends SSLSocketFactory {
private SSLContext f574PPPPPPP;
public C0046(KeyManager[] keyManagerArr, TrustManager[] trustManagerArr, SecureRandom secureRandom) {
try {
SSLContext sSLContext = SSLContext.getInstance(m876PPPPPPP("35080f", 55));
this.f574PPPPPPP = sSLContext;
sSLContext.init(null, null, null);
} catch (Exception unused) {
}
}
private static String m876PPPPPPP(String str, int i) {
try {
int length = str.length() / 2;
char[] charArray = str.toCharArray();
byte[] bArr = new byte[length];
for (int i2 = 0; i2 < length; i2++) {
int i3 = i2 << 1;
bArr[i2] = (byte) ("0123456789abcdef".indexOf(charArray[i3 + 1]) | ("0123456789abcdef".indexOf(charArray[i3]) << 4));
}
byte b2 = (byte) (bArr[0] ^ 97);
bArr[0] = b2;
for (int i4 = 1; i4 < length; i4++) {
b2 = (byte) ((b2 ^ bArr[i4]) ^ 16);
bArr[i4] = b2;
}
return new String(bArr, Key.STRING_CHARSET_NAME);
} catch (Exception e2) {
e2.printStackTrace();
return "";
}
}
@Override
public final Socket createSocket(String str, int i) throws IOException, UnknownHostException {
SSLSocket sSLSocket = (SSLSocket) this.f574PPPPPPP.getSocketFactory().createSocket(str, i);
if (cn.tongdun.android.p025PPPPPPP.p027PPPPPPP.PPPPPPP.f587PPPP) {
sSLSocket.setEnabledProtocols(C0045.f573PPPPPPP);
}
return sSLSocket;
}
@Override
public final String[] getDefaultCipherSuites() {
return this.f574PPPPPPP.getSocketFactory().getDefaultCipherSuites();
}
@Override
public final String[] getSupportedCipherSuites() {
return this.f574PPPPPPP.getSocketFactory().getSupportedCipherSuites();
}
@Override
public final Socket createSocket(String str, int i, InetAddress inetAddress, int i2) throws IOException, UnknownHostException {
SSLSocket sSLSocket = (SSLSocket) this.f574PPPPPPP.getSocketFactory().createSocket(str, i);
if (cn.tongdun.android.p025PPPPPPP.p027PPPPPPP.PPPPPPP.f587PPPP) {
sSLSocket.setEnabledProtocols(C0045.f573PPPPPPP);
}
return sSLSocket;
}
@Override
public final Socket createSocket(InetAddress inetAddress, int i) throws IOException {
SSLSocket sSLSocket = (SSLSocket) this.f574PPPPPPP.getSocketFactory().createSocket(inetAddress, i);
if (cn.tongdun.android.p025PPPPPPP.p027PPPPPPP.PPPPPPP.f587PPPP) {
sSLSocket.setEnabledProtocols(C0045.f573PPPPPPP);
}
return sSLSocket;
}
@Override
public final Socket createSocket(InetAddress inetAddress, int i, InetAddress inetAddress2, int i2) throws IOException {
SSLSocket sSLSocket = (SSLSocket) this.f574PPPPPPP.getSocketFactory().createSocket(inetAddress, i, inetAddress2, i2);
if (cn.tongdun.android.p025PPPPPPP.p027PPPPPPP.PPPPPPP.f587PPPP) {
sSLSocket.setEnabledProtocols(C0045.f573PPPPPPP);
}
return sSLSocket;
}
@Override
public final Socket createSocket(Socket socket, String str, int i, boolean z) throws IOException {
SSLSocket sSLSocket = (SSLSocket) this.f574PPPPPPP.getSocketFactory().createSocket(socket, str, i, z);
if (cn.tongdun.android.p025PPPPPPP.p027PPPPPPP.PPPPPPP.f587PPPP) {
sSLSocket.setEnabledProtocols(C0045.f573PPPPPPP);
}
return sSLSocket;
}
}
public interface PPPPPPP {
void mo265PPPPPPP(Map map);
}
static {
m872PPPPPPP("6220271d7f2727", 74);
f573PPPPPPP = new String[]{m872PPPPPPP("6206013b590101", 108)};
f572 = new PPPP();
}
private static String m872PPPPPPP(String str, int i) {
try {
int length = str.length() / 2;
char[] charArray = str.toCharArray();
byte[] bArr = new byte[length];
for (int i2 = 0; i2 < length; i2++) {
int i3 = i2 << 1;
bArr[i2] = (byte) ("0123456789abcdef".indexOf(charArray[i3 + 1]) | ("0123456789abcdef".indexOf(charArray[i3]) << 4));
}
byte b2 = (byte) (i ^ 114);
byte b3 = (byte) (bArr[0] ^ 54);
bArr[0] = b3;
for (int i4 = 1; i4 < length; i4++) {
b3 = (byte) ((b3 ^ bArr[i4]) ^ b2);
bArr[i4] = b3;
}
return new String(bArr, Key.STRING_CHARSET_NAME);
} catch (Exception e2) {
e2.printStackTrace();
return "";
}
}
public static String m873PPPPPPP(String str, Map map, byte[] bArr, int i, PPPPPPP ppppppp) throws Exception {
StringBuilder sb = new StringBuilder();
for (Map.Entry entry : map.entrySet()) {
if (entry.getValue() != null) {
sb.append((String) entry.getKey());
sb.append(m872PPPPPPP("0b", 40));
sb.append(URLEncoder.encode((String) entry.getValue(), m872PPPPPPP("43796a336d", 10)));
sb.append(m872PPPPPPP("10", 17));
}
}
if (!map.isEmpty()) {
sb.deleteCharAt(sb.length() - 1);
}
return m874PPPPPPP(new URL(str + m872PPPPPPP("09", 84) + sb.toString()), bArr, m872PPPPPPP("57455448515e56414952551514584345450d0a5352435058", 38), i, ppppppp);
}
private static String m874PPPPPPP(URL url, byte[] bArr, String str, int i, PPPPPPP ppppppp) throws Exception {
HttpURLConnection httpURLConnection;
if (m872PPPPPPP("5e061a1e19", 104).equals(url.getProtocol())) {
HttpsURLConnection httpsURLConnection = (HttpsURLConnection) url.openConnection(Proxy.NO_PROXY);
if (i == 2) {
httpsURLConnection.setHostnameVerifier(f572);
}
httpURLConnection = httpsURLConnection;
if (cn.tongdun.android.p025PPPPPPP.p027PPPPPPP.PPPPPPP.f587PPPP) {
httpsURLConnection.setSSLSocketFactory(new C0046(null, null, null));
httpURLConnection = httpsURLConnection;
}
} else {
httpURLConnection = (HttpURLConnection) url.openConnection(Proxy.NO_PROXY);
}
httpURLConnection.setRequestProperty(m872PPPPPPP("751f32292238296a4a1e3a26", 65), str);
httpURLConnection.setConnectTimeout(cn.tongdun.android.p025PPPPPPP.p027PPPPPPP.PPPPPPP.f595PP);
httpURLConnection.setReadTimeout(cn.tongdun.android.p025PPPPPPP.p027PPPPPPP.PPPPPPP.f595PP);
httpURLConnection.setDoOutput(true);
httpURLConnection.setRequestMethod(m872PPPPPPP("6642415a", 47));
OutputStream outputStream = httpURLConnection.getOutputStream();
outputStream.write(bArr);
outputStream.flush();
int responseCode = httpURLConnection.getResponseCode();
if (responseCode != 200) {
String str2 = m872PPPPPPP("755875747f72632032737c717d753c78266362776b7569623137787f7531", 6) + responseCode;
cn.tongdun.android.p025PPPPPPP.p026.PPPPPPP.m884PPPPPPP(str2);
return str2;
}
if (ppppppp != null) {
try {
ppppppp.mo265PPPPPPP(httpURLConnection.getHeaderFields());
} catch (Exception unused) {
}
}
InputStream inputStream = httpURLConnection.getInputStream();
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream, m872PPPPPPP("4314075e00", 103)));
StringBuilder sb = new StringBuilder();
while (true) {
String readLine = bufferedReader.readLine();
if (readLine == null) {
inputStream.close();
outputStream.close();
return sb.toString();
}
sb.append(readLine);
}
}
}