mirror of
https://github.com/XploitWizer-Community/XploitSPY.git
synced 2024-11-16 23:39:20 +08:00
294 lines
6.1 KiB
Smali
294 lines
6.1 KiB
Smali
.class public final Lc/u;
|
|
.super Ljava/lang/Object;
|
|
.source ""
|
|
|
|
|
|
# instance fields
|
|
.field private final a:Lc/K;
|
|
|
|
.field private final b:Lc/i;
|
|
|
|
.field private final c:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/security/cert/Certificate;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final d:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/security/cert/Certificate;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>(Lc/K;Lc/i;Ljava/util/List;Ljava/util/List;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lc/K;",
|
|
"Lc/i;",
|
|
"Ljava/util/List<",
|
|
"Ljava/security/cert/Certificate;",
|
|
">;",
|
|
"Ljava/util/List<",
|
|
"Ljava/security/cert/Certificate;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lc/u;->a:Lc/K;
|
|
|
|
iput-object p2, p0, Lc/u;->b:Lc/i;
|
|
|
|
iput-object p3, p0, Lc/u;->c:Ljava/util/List;
|
|
|
|
iput-object p4, p0, Lc/u;->d:Ljava/util/List;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Ljavax/net/ssl/SSLSession;)Lc/u;
|
|
.locals 4
|
|
|
|
invoke-interface {p0}, Ljavax/net/ssl/SSLSession;->getCipherSuite()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
invoke-static {v0}, Lc/i;->a(Ljava/lang/String;)Lc/i;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {p0}, Ljavax/net/ssl/SSLSession;->getProtocol()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-static {v1}, Lc/K;->a(Ljava/lang/String;)Lc/K;
|
|
|
|
move-result-object v1
|
|
|
|
:try_start_0
|
|
invoke-interface {p0}, Ljavax/net/ssl/SSLSession;->getPeerCertificates()[Ljava/security/cert/Certificate;
|
|
|
|
move-result-object v2
|
|
:try_end_0
|
|
.catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-static {v2}, Lc/a/d;->a([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
:goto_1
|
|
invoke-interface {p0}, Ljavax/net/ssl/SSLSession;->getLocalCertificates()[Ljava/security/cert/Certificate;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
invoke-static {p0}, Lc/a/d;->a([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_2
|
|
new-instance v3, Lc/u;
|
|
|
|
invoke-direct {v3, v1, v0, v2, p0}, Lc/u;-><init>(Lc/K;Lc/i;Ljava/util/List;Ljava/util/List;)V
|
|
|
|
return-object v3
|
|
|
|
:cond_2
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "tlsVersion == null"
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
:cond_3
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "cipherSuite == null"
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()Lc/i;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lc/u;->b:Lc/i;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public b()Ljava/util/List;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Ljava/security/cert/Certificate;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lc/u;->c:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 3
|
|
|
|
instance-of v0, p1, Lc/u;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
check-cast p1, Lc/u;
|
|
|
|
iget-object v0, p0, Lc/u;->b:Lc/i;
|
|
|
|
iget-object v2, p1, Lc/u;->b:Lc/i;
|
|
|
|
invoke-static {v0, v2}, Lc/a/d;->a(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lc/u;->b:Lc/i;
|
|
|
|
iget-object v2, p1, Lc/u;->b:Lc/i;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lc/u;->c:Ljava/util/List;
|
|
|
|
iget-object v2, p1, Lc/u;->c:Ljava/util/List;
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/List;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lc/u;->d:Ljava/util/List;
|
|
|
|
iget-object p1, p1, Lc/u;->d:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_1
|
|
return v1
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lc/u;->a:Lc/K;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Enum;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
const/16 v1, 0x20f
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
mul-int/lit8 v1, v1, 0x1f
|
|
|
|
iget-object v0, p0, Lc/u;->b:Lc/i;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
mul-int/lit8 v1, v1, 0x1f
|
|
|
|
iget-object v0, p0, Lc/u;->c:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
mul-int/lit8 v1, v1, 0x1f
|
|
|
|
iget-object v0, p0, Lc/u;->d:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
return v1
|
|
.end method
|