Primer paso de la investigacion. Se aportan el .apk, las carpetas con el apk extraido y el apk descompilado. El archivo API_DOCUMENTATION.md es un archivo donde se anotaran los descubrimientos del funcionamiento de la API, y los .py son scripts para probar la funcionalidad de la API con los métodos que vayamos encontrando. Finalmente, los archivos .js son scripts de Frida para extraer informacion de la APP durante la ejecucion.
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
package com.google.firebase.auth;
|
||||
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.firebase.remoteconfig.RemoteConfigComponent;
|
||||
import java.util.Map;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class GetTokenResult {
|
||||
private String zza;
|
||||
private Map<String, Object> zzb;
|
||||
|
||||
@KeepForSdk
|
||||
public GetTokenResult(String str, Map<String, Object> map) {
|
||||
this.zza = str;
|
||||
this.zzb = map;
|
||||
}
|
||||
|
||||
private final long zza(String str) {
|
||||
Integer num = (Integer) this.zzb.get(str);
|
||||
if (num == null) {
|
||||
return 0L;
|
||||
}
|
||||
return num.longValue();
|
||||
}
|
||||
|
||||
public long getAuthTimestamp() {
|
||||
return zza("auth_time");
|
||||
}
|
||||
|
||||
public Map<String, Object> getClaims() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
public long getExpirationTimestamp() {
|
||||
return zza("exp");
|
||||
}
|
||||
|
||||
public long getIssuedAtTimestamp() {
|
||||
return zza("iat");
|
||||
}
|
||||
|
||||
public String getSignInProvider() {
|
||||
Map map = (Map) this.zzb.get(RemoteConfigComponent.DEFAULT_NAMESPACE);
|
||||
if (map != null) {
|
||||
return (String) map.get("sign_in_provider");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public String getSignInSecondFactor() {
|
||||
Map map = (Map) this.zzb.get(RemoteConfigComponent.DEFAULT_NAMESPACE);
|
||||
if (map != null) {
|
||||
return (String) map.get("sign_in_second_factor");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getToken() {
|
||||
return this.zza;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user