导航菜单

页面标题

页面副标题

Online Loans v421.2.42 - N3.java 源代码

正在查看: Online Loans v421.2.42 应用的 N3.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package io.seon.androidsdk.service;

import android.net.TrafficStats;
import io.seon.androidsdk.service.N3;
import j$.util.DesugarCollections;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public abstract class N3 {

    public static List f16526a = DesugarCollections.synchronizedList(new ArrayList());

    public enum a {
        ANYDESK("127.0.0.1", new Integer[]{7070}),
        TEAMVIEWER("127.0.0.1", new Integer[]{5938}),
        ADB_WIRELESS("127.0.0.1", new Integer[]{5555}),
        IOS_HOTSPOT("172.20.10.1", new Integer[]{62078}),
        ANDROID_HOTSPOT("192.168.42.254", new Integer[]{53}),
        ANDROID_HOTSPOT2("192.168.42.1", new Integer[]{53}),
        UIAUTOMATOR("127.0.0.1", g(6790, 6799));


        public final String f16535a;

        public final Integer[] f16536b;

        a(String str, Integer[] numArr) {
            this.f16535a = str;
            this.f16536b = numArr;
        }

        public static Integer[] g(int i6, int i7) {
            int i8 = (i7 - i6) + 1;
            if (i8 <= 0) {
                return new Integer[0];
            }
            Integer[] numArr = new Integer[i8];
            for (int i9 = 0; i9 < i8; i9++) {
                numArr[i9] = Integer.valueOf(i6 + i9);
            }
            return numArr;
        }
    }

    public static List b() {
        List list = f16526a;
        return list != null ? list : new ArrayList();
    }

    public static boolean c(String str, int i6, int i7) {
        if (i6 > 0 && i6 <= 65535) {
            try {
                Socket socket = new Socket();
                try {
                    socket.connect(new InetSocketAddress(str, i6), i7);
                    socket.close();
                    return true;
                } finally {
                }
            } catch (Exception unused) {
            }
        }
        return false;
    }

    public static void d(a aVar) {
        try {
            TrafficStats.setThreadStatsTag(1111);
            boolean z6 = false;
            for (Integer num : aVar.f16536b) {
                int intValue = num.intValue();
                if (!z6 && !c(aVar.f16535a, intValue, 2000)) {
                    z6 = false;
                }
                z6 = true;
            }
            if (z6) {
                f16526a.add(aVar);
            }
        } catch (Exception unused) {
        } catch (Throwable th) {
            TrafficStats.clearThreadStatsTag();
            throw th;
        }
        TrafficStats.clearThreadStatsTag();
    }

    public static void e() {
        ExecutorService executorService = null;
        try {
            f16526a = DesugarCollections.synchronizedList(new ArrayList());
            executorService = Executors.newFixedThreadPool(a.values().length);
            for (final a aVar : a.values()) {
                executorService.submit(new Runnable() {
                    @Override
                    public final void run() {
                        N3.d(N3.a.this);
                    }
                });
            }
            if (executorService == null) {
                return;
            }
        } catch (Exception unused) {
            if (executorService == null) {
                return;
            }
        } catch (Throwable th) {
            if (executorService != null) {
                try {
                    executorService.shutdown();
                } catch (Exception unused2) {
                }
            }
            throw th;
        }
        try {
            executorService.shutdown();
        } catch (Exception unused3) {
        }
    }
}