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:
2025-12-04 13:59:54 +01:00
parent f2fd1c3bf5
commit e0133d2ca2
10432 changed files with 1019085 additions and 1 deletions

View File

@@ -0,0 +1,56 @@
package D;
import android.net.Uri;
import androidx.core.content.FileProvider;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
/* loaded from: classes.dex */
public final class k implements j {
/* renamed from: a, reason: collision with root package name */
public final String f358a;
/* renamed from: b, reason: collision with root package name */
public final HashMap f359b = new HashMap();
public k(String str) {
this.f358a = str;
}
public static boolean a(String str, String str2) {
String removeTrailingSlash;
String removeTrailingSlash2;
removeTrailingSlash = FileProvider.removeTrailingSlash(str);
removeTrailingSlash2 = FileProvider.removeTrailingSlash(str2);
if (removeTrailingSlash.equals(removeTrailingSlash2)) {
return true;
}
StringBuilder sb = new StringBuilder();
sb.append(removeTrailingSlash2);
sb.append('/');
return removeTrailingSlash.startsWith(sb.toString());
}
public final File b(Uri uri) {
String encodedPath = uri.getEncodedPath();
int indexOf = encodedPath.indexOf(47, 1);
String decode = Uri.decode(encodedPath.substring(1, indexOf));
String decode2 = Uri.decode(encodedPath.substring(indexOf + 1));
File file = (File) this.f359b.get(decode);
if (file == null) {
throw new IllegalArgumentException("Unable to find configured root for " + uri);
}
File file2 = new File(file, decode2);
try {
File canonicalFile = file2.getCanonicalFile();
if (a(canonicalFile.getPath(), file.getPath())) {
return canonicalFile;
}
throw new SecurityException("Resolved path jumped beyond configured root");
} catch (IOException unused) {
throw new IllegalArgumentException("Failed to resolve canonical path for " + file2);
}
}
}