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:
21
apk_decompiled/sources/retrofit2/ServiceMethod.java
Normal file
21
apk_decompiled/sources/retrofit2/ServiceMethod.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package retrofit2;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Type;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
abstract class ServiceMethod<T> {
|
||||
public static <T> ServiceMethod<T> parseAnnotations(Retrofit retrofit, Method method) {
|
||||
RequestFactory parseAnnotations = RequestFactory.parseAnnotations(retrofit, method);
|
||||
Type genericReturnType = method.getGenericReturnType();
|
||||
if (Utils.hasUnresolvableType(genericReturnType)) {
|
||||
throw Utils.methodError(method, "Method return type must not include a type variable or wildcard: %s", genericReturnType);
|
||||
}
|
||||
if (genericReturnType != Void.TYPE) {
|
||||
return HttpServiceMethod.parseAnnotations(retrofit, method, parseAnnotations);
|
||||
}
|
||||
throw Utils.methodError(method, "Service methods cannot return void.", new Object[0]);
|
||||
}
|
||||
|
||||
public abstract T invoke(Object[] objArr);
|
||||
}
|
||||
Reference in New Issue
Block a user