正版风暴黑马 v5.0版本的 MD5 值为:01425d13106471265483ee3782390bf1
以下内容为反编译后的 O80o00O.java 源代码,内容仅作参考
package p0000oO008.p001ooo8o088.p002Oo0oo80;
import android.content.Context;
import android.text.TextUtils;
import com.tencent.smtt.sdk.TbsReaderView;
import java.util.HashMap;
import org.json.JSONObject;
public class O80o00O extends AbstractC0819o8O8 {
public static oo f1847lll;
private Context f1848Li;
private int[] LLI1lI1 = {19901, 19902, 19903};
private String f1850Lil1l = "http://127.0.0.1:%s/cmd";
private String f1849lILLLIL = "http://127.0.0.1:%s/ping";
public interface oo {
int[] LLI1lI1();
String mo565lll();
}
public O80o00O(Context context) {
this.f1848Li = null;
this.f1848Li = context;
}
private String LLI1lI1(int i) {
int[] LLI1lI1 = f1847lll.LLI1lI1();
if (LLI1lI1 == null || LLI1lI1.length <= 0) {
LLI1lI1 = this.LLI1lI1;
}
return String.format(this.f1849lILLLIL, Integer.valueOf(LLI1lI1[i]));
}
private String LLI1lI1(String str, int i) {
int[] LLI1lI1 = f1847lll.LLI1lI1();
if (LLI1lI1 == null || LLI1lI1.length <= 0) {
LLI1lI1 = this.LLI1lI1;
}
C0712O00.m2751lILLLIL("xcommand", "c:" + str + " timeout:" + i);
HashMap<String, String> hashMap = new HashMap<>();
hashMap.put("c", str);
String str2 = null;
int i2 = 0;
while (true) {
if (i2 >= LLI1lI1.length) {
break;
}
if (LLI1lI1[i2] != 0) {
String m2791lll = m2791lll(LLI1lI1[i2]);
try {
C0712O00.LLI1lI1("xcommand", "url:" + m2791lll + " command map: " + hashMap);
String m2793lll = m2793lll(m2791lll, true, i, hashMap);
if (!TextUtils.isEmpty(m2793lll)) {
str2 = m2793lll;
break;
}
str2 = m2793lll;
} catch (Exception unused) {
str2 = m2792lll(m2791lll, i, new JSONObject(hashMap).toString());
if (!TextUtils.isEmpty(str2)) {
break;
}
}
}
i2++;
}
C0712O00.m2751lILLLIL("xcommand", "result:" + str2);
return str2;
}
private String m2791lll(int i) {
return String.format(this.f1850Lil1l, Integer.valueOf(i), "" + System.currentTimeMillis());
}
private String m2792lll(String str, int i, String str2) {
try {
return oo808oO8.m4274lll(str, str2, f1847lll.mo565lll());
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
private String m2793lll(String str, boolean z, int i, HashMap<String, String> hashMap) {
AutoCloseable autoCloseable = null;
try {
if (hashMap == null) {
try {
hashMap = new HashMap<>();
} catch (Exception e) {
e.printStackTrace();
try {
autoCloseable.close();
} catch (Exception unused) {
}
return null;
}
}
HashMap hashMap2 = new HashMap();
hashMap2.put("AUTHB", f1847lll.mo565lll());
String m4273lll = oo808oO8.m4273lll(this.f1848Li, str, hashMap, hashMap2, z, i);
try {
autoCloseable.close();
} catch (Exception unused2) {
}
return m4273lll;
} catch (Throwable th) {
try {
autoCloseable.close();
} catch (Exception unused3) {
}
throw th;
}
}
@Override
public String mo2492lll(String str) {
return mo2493lll(str, 50000);
}
@Override
public String mo2493lll(String str, int i) {
return LLI1lI1(str, i);
}
@Override
public boolean mo2494lll() {
String str = null;
try {
str = m2793lll(LLI1lI1(0), false, TbsReaderView.ReaderCallback.GET_BAR_ANIMATING, null);
} catch (Exception e) {
e.printStackTrace();
}
return str != null && str.startsWith("pong");
}
}