Chomp v9.11版本的 MD5 值为:86ab69d1e20ec410efefb0967588d151
以下内容为反编译后的 c.java 源代码,内容仅作参考
package m2;
import androidx.appcompat.app.l0;
import com.p1.chompsms.util.z1;
import java.io.ByteArrayInputStream;
import java.util.HashMap;
import java.util.Iterator;
import java.util.TreeSet;
import javax.xml.parsers.DocumentBuilderFactory;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.utils.URLEncodedUtils;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.protocol.HTTP;
import org.apache.http.util.EntityUtils;
import org.w3c.dom.Document;
public final class c extends Thread {
public final l0 f17171a;
public final HashMap f17172b = new HashMap();
public c(l0 l0Var) {
this.f17171a = l0Var;
}
public static String a(byte[] bArr) {
StringBuffer stringBuffer = new StringBuffer();
for (int i10 = 0; i10 < bArr.length; i10++) {
int i11 = (bArr[i10] >>> 4) & 15;
int i12 = 0;
while (true) {
if (i11 < 0 || i11 > 9) {
stringBuffer.append((char) ((i11 - 10) + 97));
} else {
stringBuffer.append((char) (i11 + 48));
}
i11 = bArr[i10] & 15;
int i13 = i12 + 1;
if (i12 >= 1) {
break;
}
i12 = i13;
}
}
return stringBuffer.toString();
}
public static String c(HashMap hashMap) {
TreeSet treeSet = new TreeSet();
for (String str : hashMap.keySet()) {
treeSet.add(str);
}
Iterator it = treeSet.iterator();
String str2 = "";
while (it.hasNext()) {
String str3 = (String) it.next();
StringBuilder m10 = a.a.m(a.a.i(str2, str3));
m10.append((String) hashMap.get(str3));
str2 = m10.toString();
}
return str2;
}
public final Document b() {
HashMap hashMap = this.f17172b;
String str = "";
for (String str2 : hashMap.keySet()) {
String str3 = (String) hashMap.get(str2);
if (str.length() > 0) {
str = str.concat("&");
}
str = str + str2 + "=" + str3;
}
HttpPost httpPost = new HttpPost("http://rest.starttalking.com/get_s3_url.php");
DefaultHttpClient defaultHttpClient = new DefaultHttpClient();
httpPost.setHeader(HTTP.CONTENT_TYPE, URLEncodedUtils.CONTENT_TYPE);
httpPost.setEntity(new StringEntity(str));
HttpResponse execute = defaultHttpClient.execute(httpPost);
if (execute.getStatusLine().getStatusCode() == 200) {
return DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new ByteArrayInputStream(EntityUtils.toString(execute.getEntity()).getBytes("UTF-8")));
}
throw new Exception(execute.getStatusLine().getReasonPhrase());
}
@Override
public final void run() {
l0 l0Var = this.f17171a;
try {
Document b10 = b();
if (l0Var != null) {
if (b10 != null) {
l0Var.c(b10);
} else {
d dVar = (d) l0Var.f491a;
dVar.b();
q5.c cVar = dVar.f17173a;
if (cVar != null) {
((z1) cVar.f18384a).getClass();
}
}
}
} catch (Exception e10) {
if (l0Var != null) {
e10.getMessage();
d dVar2 = (d) l0Var.f491a;
dVar2.b();
q5.c cVar2 = dVar2.f17173a;
if (cVar2 != null) {
((z1) cVar2.f18384a).getClass();
}
}
}
}
}