GOUTY SSH V2 🌐 v4.2.5版本的 MD5 值为:635449b1ebcf1b9e08b24bdcbf1c404a

以下内容为反编译后的 f.java 源代码,内容仅作参考


package g8;

import android.content.Context;
import android.os.ParcelFileDescriptor;
import ea.r1;
import java.io.File;
import java.io.FileDescriptor;
import java.util.ArrayList;
import kc.c0;
import kc.w;
import pc.o;

public final class f {

    public final Context f4703a;

    public ParcelFileDescriptor f4704b;

    public final int f4705c;

    public final String f4706d;

    public final String f4707e;

    public final String f4708f;

    public final String f4709g;

    public final String f4710h;

    public final boolean f4711i;

    public Process f4712j;

    public boolean f4713k;

    public f(Context context, ParcelFileDescriptor parcelFileDescriptor, String str, String str2, String str3, boolean z10) {
        o9.f.l("context", context);
        o9.f.l("socksServerAddress", str);
        this.f4703a = context;
        this.f4704b = parcelFileDescriptor;
        this.f4705c = 1500;
        this.f4706d = "172.16.0.2";
        this.f4707e = "255.255.255.0";
        this.f4708f = str;
        this.f4709g = str2;
        this.f4710h = str3;
        this.f4711i = z10;
        this.f4713k = true;
    }

    public final void a() {
        String absolutePath = new File(this.f4703a.getApplicationContext().getFilesDir(), "sock_path").getAbsolutePath();
        ParcelFileDescriptor parcelFileDescriptor = this.f4704b;
        FileDescriptor fileDescriptor = parcelFileDescriptor != null ? parcelFileDescriptor.getFileDescriptor() : null;
        qc.d dVar = c0.f6819a;
        o9.f.K(r1.a(o.f8443a), null, new e(absolutePath, fileDescriptor, null), 3);
    }

    public final void b() {
        Context context = this.f4703a;
        ArrayList c10 = w.c(new File(context.getApplicationInfo().nativeLibraryDir, "libtun2socks5.so").getAbsolutePath(), "--netif-ipaddr", this.f4706d, "--netif-netmask", this.f4707e, "--socks-server-addr", this.f4708f, "--tunmtu", String.valueOf(this.f4705c), "--sock", new File(context.getApplicationContext().getFilesDir(), "sock_path").getAbsolutePath(), "--loglevel", "3");
        if (this.f4711i) {
            c10.add("--udpgw-transparent-dns");
        }
        String str = this.f4709g;
        if (str != null) {
            c10.add("--udpgw-remote-server-addr");
            c10.add(str);
        }
        String str2 = this.f4710h;
        if (str2 != null) {
            c10.add("--dnsgw");
            c10.add(str2);
        }
        try {
            this.f4712j = new ProcessBuilder(c10).start();
            new Thread(new androidx.activity.b(14, this)).start();
            a();
        } catch (Exception e10) {
            e10.printStackTrace();
        }
    }
}