mirror of
https://github.com/XploitWizer-Community/XploitSPY.git
synced 2024-11-16 23:39:20 +08:00
399 lines
8.7 KiB
Smali
399 lines
8.7 KiB
Smali
|
.class public Lb/D$a;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source ""
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lb/D;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x9
|
||
|
name = "a"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field a:Lb/w;
|
||
|
|
||
|
.field b:Ljava/lang/String;
|
||
|
|
||
|
.field c:Lb/v$a;
|
||
|
|
||
|
.field d:Lb/F;
|
||
|
|
||
|
.field e:Ljava/lang/Object;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 1
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
const-string v0, "GET"
|
||
|
|
||
|
iput-object v0, p0, Lb/D$a;->b:Ljava/lang/String;
|
||
|
|
||
|
new-instance v0, Lb/v$a;
|
||
|
|
||
|
invoke-direct {v0}, Lb/v$a;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Lb/D$a;->c:Lb/v$a;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method constructor <init>(Lb/D;)V
|
||
|
.locals 1
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iget-object v0, p1, Lb/D;->a:Lb/w;
|
||
|
|
||
|
iput-object v0, p0, Lb/D$a;->a:Lb/w;
|
||
|
|
||
|
iget-object v0, p1, Lb/D;->b:Ljava/lang/String;
|
||
|
|
||
|
iput-object v0, p0, Lb/D$a;->b:Ljava/lang/String;
|
||
|
|
||
|
iget-object v0, p1, Lb/D;->d:Lb/F;
|
||
|
|
||
|
iput-object v0, p0, Lb/D$a;->d:Lb/F;
|
||
|
|
||
|
iget-object v0, p1, Lb/D;->e:Ljava/lang/Object;
|
||
|
|
||
|
iput-object v0, p0, Lb/D$a;->e:Ljava/lang/Object;
|
||
|
|
||
|
iget-object p1, p1, Lb/D;->c:Lb/v;
|
||
|
|
||
|
invoke-virtual {p1}, Lb/v;->a()Lb/v$a;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
iput-object p1, p0, Lb/D$a;->c:Lb/v$a;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public a(Lb/v;)Lb/D$a;
|
||
|
.locals 0
|
||
|
|
||
|
invoke-virtual {p1}, Lb/v;->a()Lb/v$a;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
iput-object p1, p0, Lb/D$a;->c:Lb/v$a;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public a(Lb/w;)Lb/D$a;
|
||
|
.locals 1
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
iput-object p1, p0, Lb/D$a;->a:Lb/w;
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:cond_0
|
||
|
new-instance p1, Ljava/lang/NullPointerException;
|
||
|
|
||
|
const-string v0, "url == null"
|
||
|
|
||
|
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public a(Ljava/lang/String;)Lb/D$a;
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Lb/D$a;->c:Lb/v$a;
|
||
|
|
||
|
invoke-virtual {v0, p1}, Lb/v$a;->b(Ljava/lang/String;)Lb/v$a;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public a(Ljava/lang/String;Lb/F;)Lb/D$a;
|
||
|
.locals 2
|
||
|
|
||
|
if-eqz p1, :cond_5
|
||
|
|
||
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_4
|
||
|
|
||
|
const-string v0, "method "
|
||
|
|
||
|
if-eqz p2, :cond_1
|
||
|
|
||
|
invoke-static {p1}, Lb/a/c/g;->b(Ljava/lang/String;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
new-instance v1, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string p1, " must not have a request body."
|
||
|
|
||
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p2
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
if-nez p2, :cond_3
|
||
|
|
||
|
invoke-static {p1}, Lb/a/c/g;->e(Ljava/lang/String;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-nez v1, :cond_2
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_2
|
||
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
new-instance v1, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string p1, " must have a request body."
|
||
|
|
||
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p2
|
||
|
|
||
|
:cond_3
|
||
|
:goto_1
|
||
|
iput-object p1, p0, Lb/D$a;->b:Ljava/lang/String;
|
||
|
|
||
|
iput-object p2, p0, Lb/D$a;->d:Lb/F;
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:cond_4
|
||
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
const-string p2, "method.length() == 0"
|
||
|
|
||
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p1
|
||
|
|
||
|
:cond_5
|
||
|
new-instance p1, Ljava/lang/NullPointerException;
|
||
|
|
||
|
const-string p2, "method == null"
|
||
|
|
||
|
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public a(Ljava/lang/String;Ljava/lang/String;)Lb/D$a;
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Lb/D$a;->c:Lb/v$a;
|
||
|
|
||
|
invoke-virtual {v0, p1, p2}, Lb/v$a;->a(Ljava/lang/String;Ljava/lang/String;)Lb/v$a;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public a()Lb/D;
|
||
|
.locals 2
|
||
|
|
||
|
iget-object v0, p0, Lb/D$a;->a:Lb/w;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
new-instance v0, Lb/D;
|
||
|
|
||
|
invoke-direct {v0, p0}, Lb/D;-><init>(Lb/D$a;)V
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:cond_0
|
||
|
new-instance v0, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
const-string v1, "url == null"
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public b(Ljava/lang/String;)Lb/D$a;
|
||
|
.locals 6
|
||
|
|
||
|
if-eqz p1, :cond_3
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
const/4 v5, 0x3
|
||
|
|
||
|
const-string v3, "ws:"
|
||
|
|
||
|
move-object v0, p1
|
||
|
|
||
|
invoke-virtual/range {v0 .. v5}, Ljava/lang/String;->regionMatches(ZILjava/lang/String;II)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v1, "http:"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const/4 v1, 0x3
|
||
|
|
||
|
:goto_0
|
||
|
invoke-virtual {p1, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
const/4 v5, 0x4
|
||
|
|
||
|
const-string v3, "wss:"
|
||
|
|
||
|
move-object v0, p1
|
||
|
|
||
|
invoke-virtual/range {v0 .. v5}, Ljava/lang/String;->regionMatches(ZILjava/lang/String;II)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v1, "https:"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const/4 v1, 0x4
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
:goto_1
|
||
|
invoke-static {p1}, Lb/w;->c(Ljava/lang/String;)Lb/w;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
invoke-virtual {p0, v0}, Lb/D$a;->a(Lb/w;)Lb/D$a;
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:cond_2
|
||
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
new-instance v1, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v2, "unexpected url: "
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_3
|
||
|
new-instance p1, Ljava/lang/NullPointerException;
|
||
|
|
||
|
const-string v0, "url == null"
|
||
|
|
||
|
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:goto_2
|
||
|
throw p1
|
||
|
|
||
|
:goto_3
|
||
|
goto :goto_2
|
||
|
.end method
|
||
|
|
||
|
.method public b(Ljava/lang/String;Ljava/lang/String;)Lb/D$a;
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Lb/D$a;->c:Lb/v$a;
|
||
|
|
||
|
invoke-virtual {v0, p1, p2}, Lb/v$a;->c(Ljava/lang/String;Ljava/lang/String;)Lb/v$a;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|