正在查看: 万能钥匙 v1.1.23 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 万能钥匙 v1.1.23 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package ct;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.jvm.internal.p;
import lg0.h;
import lg0.i;
import mg0.o;
import mg0.x;
@Metadata(d1 = {"\u0000 \n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\b\u0005\u001a/\u0010\u0006\u001a\u0010\u0012\u0004\u0012\u00020\u0000\u0012\u0004\u0012\u00020\u0005\u0018\u00010\u00042\b\b\u0002\u0010\u0001\u001a\u00020\u00002\b\b\u0002\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0006\u0010\u0007\"!\u0010\f\u001a\b\u0012\u0004\u0012\u00020\u00050\b8FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b\u0006\u0010\t\u001a\u0004\b\n\u0010\u000b¨\u0006\r"}, d2 = {"", "timeout", "", "fast", "Lkotlin/Pair;", "Ljava/net/InetSocketAddress;", "a", "(IZ)Lkotlin/Pair;", "", "Llg0/h;", "c", "()Ljava/util/List;", "PING_HOSTS", "lib-kernel_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
public final class a {
public static final h a = i.a(C0411a.s);
public static ChangeQuickRedirect changeQuickRedirect;
@Metadata(d1 = {"\u0000\f\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001H\n¢\u0006\u0002\b\u0003"}, d2 = {"<anonymous>", "", "Ljava/net/InetSocketAddress;", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
public static final class C0411a extends p implements ah0.a<List<? extends InetSocketAddress>> {
public static ChangeQuickRedirect changeQuickRedirect;
public static final C0411a s = new C0411a();
public C0411a() {
super(0);
}
@Override
public List<? extends InetSocketAddress> invoke() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 12522, new Class[0], Object.class);
return proxy.isSupported ? proxy.result : invoke2();
}
@Override
public final List<? extends InetSocketAddress> invoke2() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 12521, new Class[0], List.class);
return proxy.isSupported ? (List) proxy.result : mg0.p.m(new InetSocketAddress[]{new InetSocketAddress("223.5.5.5", 53), new InetSocketAddress("223.6.6.6", 53), new InetSocketAddress("119.29.29.29", 53), new InetSocketAddress("123.125.81.6", 53), new InetSocketAddress("8.8.8.8", 53), new InetSocketAddress("8.8.4.4", 53)});
}
}
public static final Pair<Integer, InetSocketAddress> a(int i, boolean z) {
Object obj;
boolean z2;
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i), new Byte(z ? (byte) 1 : (byte) 0)}, (Object) null, changeQuickRedirect, true, 12519, new Class[]{Integer.TYPE, Boolean.TYPE}, Pair.class);
if (proxy.isSupported) {
return (Pair) proxy.result;
}
List b1 = x.b1(c());
if (z) {
b1 = o.d(x.k0(b1));
}
Iterator it = b1.iterator();
int i2 = 0;
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
InetSocketAddress inetSocketAddress = (InetSocketAddress) obj;
Socket socket = new Socket();
try {
long currentTimeMillis = System.currentTimeMillis();
socket.connect(inetSocketAddress, i);
i2 = (int) (System.currentTimeMillis() - currentTimeMillis);
socket.close();
z2 = true;
} catch (Exception unused) {
socket.close();
z2 = false;
} catch (Throwable th) {
socket.close();
throw th;
}
if (z2) {
break;
}
}
InetSocketAddress inetSocketAddress2 = (InetSocketAddress) obj;
if (inetSocketAddress2 == null) {
return null;
}
return new Pair<>(Integer.valueOf(i2), inetSocketAddress2);
}
public static Pair b(int i, boolean z, int i2, Object obj) {
Object[] objArr = {new Integer(i), new Byte(z ? (byte) 1 : (byte) 0), new Integer(i2), obj};
ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
Class cls = Integer.TYPE;
PatchProxyResult proxy = PatchProxy.proxy(objArr, (Object) null, changeQuickRedirect2, true, 12520, new Class[]{cls, Boolean.TYPE, cls, Object.class}, Pair.class);
if (proxy.isSupported) {
return (Pair) proxy.result;
}
if ((i2 & 1) != 0) {
i = 300;
}
if ((i2 & 2) != 0) {
z = false;
}
return a(i, z);
}
public static final List<InetSocketAddress> c() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], (Object) null, changeQuickRedirect, true, 12518, new Class[0], List.class);
return proxy.isSupported ? (List) proxy.result : (List) a.getValue();
}
}