正在查看: 万能钥匙 v1.1.23 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 万能钥匙 v1.1.23 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package lw;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import java.net.Inet4Address;
import java.net.InterfaceAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Enumeration;
import kotlin.Metadata;
import kotlin.jvm.internal.n;
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0006\bÆ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\r\u0010\u0005\u001a\u00020\u0004¢\u0006\u0004\b\u0005\u0010\u0006J\u0017\u0010\b\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\b\u0010\t¨\u0006\n"}, d2 = {"Llw/d;", "", "<init>", "()V", "", "b", "()I", "length", "a", "(I)I", "wifidetect_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
public final class d {
public static final d a = new d();
public static ChangeQuickRedirect changeQuickRedirect;
public final int a(int length) {
Object[] objArr = {new Integer(length)};
ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
Class cls = Integer.TYPE;
PatchProxyResult proxy = PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 20643, new Class[]{cls}, cls);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : Integer.reverseBytes((-1) << (32 - length));
}
public final int b() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 20642, new Class[0], Integer.TYPE);
if (proxy.isSupported) {
return ((Integer) proxy.result).intValue();
}
try {
Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces();
while (networkInterfaces.hasMoreElements()) {
NetworkInterface nextElement = networkInterfaces.nextElement();
if (nextElement.isUp()) {
for (InterfaceAddress interfaceAddress : nextElement.getInterfaceAddresses()) {
if ((interfaceAddress.getAddress() instanceof Inet4Address) && !n.d("127.0.0.1", interfaceAddress.getAddress().getHostAddress())) {
return a(interfaceAddress.getNetworkPrefixLength());
}
}
}
}
} catch (SocketException e) {
e.printStackTrace();
}
return 0;
}
}