正在查看: Mabilis Cash v1.19.4 应用的 PP.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mabilis Cash v1.19.4 应用的 PP.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package cn.tongdun.android.p022PPPPPP;
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 PP {
private static HostnameVerifier f526PP;
private static final String[] f527PPPPPP;
public static class C0026PP extends SSLSocketFactory {
private SSLContext f528PPPPPP;
public C0026PP(KeyManager[] keyManagerArr, TrustManager[] trustManagerArr, SecureRandom secureRandom) {
try {
SSLContext sSLContext = SSLContext.getInstance(m795PPPPPP("073037", 57));
this.f528PPPPPP = sSLContext;
sSLContext.init(null, null, null);
} catch (Exception unused) {
}
}
private static String m795PPPPPP(String str, int i2) {
try {
int length = str.length() / 2;
char[] charArray = str.toCharArray();
byte[] bArr = new byte[length];
for (int i3 = 0; i3 < length; i3++) {
int i4 = i3 << 1;
bArr[i3] = (byte) ("0123456789abcdef".indexOf(charArray[i4 + 1]) | ("0123456789abcdef".indexOf(charArray[i4]) << 4));
}
byte b2 = (byte) (bArr[0] ^ 83);
bArr[0] = b2;
for (int i5 = 1; i5 < length; i5++) {
b2 = (byte) ((b2 ^ bArr[i5]) ^ 40);
bArr[i5] = b2;
}
return new String(bArr, Key.STRING_CHARSET_NAME);
} catch (Exception e2) {
e2.printStackTrace();
return "";
}
}
@Override
public final Socket createSocket(String str, int i2) throws IOException, UnknownHostException {
SSLSocket sSLSocket = (SSLSocket) this.f528PPPPPP.getSocketFactory().createSocket(str, i2);
if (cn.tongdun.android.p022PPPPPP.p024PPPPPP.PPPPPP.f556P) {
sSLSocket.setEnabledProtocols(PP.f527PPPPPP);
}
return sSLSocket;
}
@Override
public final String[] getDefaultCipherSuites() {
return this.f528PPPPPP.getSocketFactory().getDefaultCipherSuites();
}
@Override
public final String[] getSupportedCipherSuites() {
return this.f528PPPPPP.getSocketFactory().getSupportedCipherSuites();
}
@Override
public final Socket createSocket(String str, int i2, InetAddress inetAddress, int i3) throws IOException, UnknownHostException {
SSLSocket sSLSocket = (SSLSocket) this.f528PPPPPP.getSocketFactory().createSocket(str, i2);
if (cn.tongdun.android.p022PPPPPP.p024PPPPPP.PPPPPP.f556P) {
sSLSocket.setEnabledProtocols(PP.f527PPPPPP);
}
return sSLSocket;
}
@Override
public final Socket createSocket(InetAddress inetAddress, int i2) throws IOException {
SSLSocket sSLSocket = (SSLSocket) this.f528PPPPPP.getSocketFactory().createSocket(inetAddress, i2);
if (cn.tongdun.android.p022PPPPPP.p024PPPPPP.PPPPPP.f556P) {
sSLSocket.setEnabledProtocols(PP.f527PPPPPP);
}
return sSLSocket;
}
@Override
public final Socket createSocket(InetAddress inetAddress, int i2, InetAddress inetAddress2, int i3) throws IOException {
SSLSocket sSLSocket = (SSLSocket) this.f528PPPPPP.getSocketFactory().createSocket(inetAddress, i2, inetAddress2, i3);
if (cn.tongdun.android.p022PPPPPP.p024PPPPPP.PPPPPP.f556P) {
sSLSocket.setEnabledProtocols(PP.f527PPPPPP);
}
return sSLSocket;
}
@Override
public final Socket createSocket(Socket socket, String str, int i2, boolean z) throws IOException {
SSLSocket sSLSocket = (SSLSocket) this.f528PPPPPP.getSocketFactory().createSocket(socket, str, i2, z);
if (cn.tongdun.android.p022PPPPPP.p024PPPPPP.PPPPPP.f556P) {
sSLSocket.setEnabledProtocols(PP.f527PPPPPP);
}
return sSLSocket;
}
}
public interface PPPPPP {
void mo473PPPPPP(Map map);
}
static {
m791PPPPPP("110a0d37550d0d", 87);
f527PPPPPP = new String[]{m791PPPPPP("111d1a20421a1a", 64)};
f526PP = new PPPPP();
}
private static String m791PPPPPP(String str, int i2) {
try {
int length = str.length() / 2;
char[] charArray = str.toCharArray();
byte[] bArr = new byte[length];
for (int i3 = 0; i3 < length; i3++) {
int i4 = i3 << 1;
bArr[i3] = (byte) ("0123456789abcdef".indexOf(charArray[i4 + 1]) | ("0123456789abcdef".indexOf(charArray[i4]) << 4));
}
byte b2 = (byte) (i2 ^ 69);
byte b3 = (byte) (bArr[0] ^ 69);
bArr[0] = b3;
for (int i5 = 1; i5 < length; i5++) {
b3 = (byte) ((b3 ^ bArr[i5]) ^ b2);
bArr[i5] = b3;
}
return new String(bArr, Key.STRING_CHARSET_NAME);
} catch (Exception e2) {
e2.printStackTrace();
return "";
}
}
public static String m792PPPPPP(String str, Map map, byte[] bArr, int i2, PPPPPP pppppp) throws Exception {
StringBuilder sb = new StringBuilder();
for (Map.Entry entry : map.entrySet()) {
if (entry.getValue() != null) {
sb.append((String) entry.getKey());
sb.append(m791PPPPPP("78", 43));
sb.append(URLEncoder.encode((String) entry.getValue(), m791PPPPPP("302f3c653b", 107)));
sb.append(m791PPPPPP("63", 102));
}
}
if (!map.isEmpty()) {
sb.deleteCharAt(sb.length() - 1);
}
return m793PPPPPP(new URL(str + m791PPPPPP("7a", 24) + sb.toString()), bArr, m791PPPPPP("241809150c030b1c140f084849051e181850570e0f1e0d05", 76), i2, pppppp);
}
private static String m793PPPPPP(URL url, byte[] bArr, String str, int i2, PPPPPP pppppp) throws Exception {
HttpURLConnection httpURLConnection;
if (m791PPPPPP("2d2c303433", 117).equals(url.getProtocol())) {
HttpsURLConnection httpsURLConnection = (HttpsURLConnection) url.openConnection(Proxy.NO_PROXY);
if (i2 == 2) {
httpsURLConnection.setHostnameVerifier(f526PP);
}
httpURLConnection = httpsURLConnection;
if (cn.tongdun.android.p022PPPPPP.p024PPPPPP.PPPPPP.f556P) {
httpsURLConnection.setSSLSocketFactory(new C0026PP(null, null, null));
httpURLConnection = httpsURLConnection;
}
} else {
httpURLConnection = (HttpURLConnection) url.openConnection(Proxy.NO_PROXY);
}
httpURLConnection.setRequestProperty(m791PPPPPP("06113c272c36276444103428", 120), str);
httpURLConnection.setConnectTimeout(cn.tongdun.android.p022PPPPPP.p024PPPPPP.PPPPPP.f565PPP);
httpURLConnection.setReadTimeout(cn.tongdun.android.p022PPPPPP.p024PPPPPP.PPPPPP.f565PPP);
httpURLConnection.setDoOutput(true);
httpURLConnection.setRequestMethod(m791PPPPPP("15111209", 75));
OutputStream outputStream = httpURLConnection.getOutputStream();
outputStream.write(bArr);
outputStream.flush();
int responseCode = httpURLConnection.getResponseCode();
if (responseCode != 200) {
String str2 = m791PPPPPP("06301d1c171a0b485a1b1419151d54104e0b0a1f031d010a595f10171d59", 89) + responseCode;
cn.tongdun.android.p022PPPPPP.p023PP.PPPPPP.m803PPPPPP(str2);
return str2;
}
if (pppppp != null) {
try {
pppppp.mo473PPPPPP(httpURLConnection.getHeaderFields());
} catch (Exception unused) {
}
}
InputStream inputStream = httpURLConnection.getInputStream();
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream, m791PPPPPP("3052411846", 22)));
StringBuilder sb = new StringBuilder();
while (true) {
String readLine = bufferedReader.readLine();
if (readLine == null) {
inputStream.close();
outputStream.close();
return sb.toString();
}
sb.append(readLine);
}
}
}