def onAdUnpack(request): processname = request.POST.get("processname") if processname: deviceutil = DeviceUtil() devices = fridaFunc.enmuDevices() deviceutil.setup_device(devices) deviceutil.spawn_process_and_load_script_file(processname,'./server/fridaJavaScript/adUnpack.js') return HttpResponse("OK")
def enumerateClassLoaders(request): processname = request.POST.get("processname") deviceutil = DeviceUtil() devices = fridaFunc.enmuDevices() deviceutil.setup_device(devices) deviceutil.setup_process(processname) deviceutil.attach_process_and_load_script_file( "./server/fridaJavaScript/enumerateClassLoaders.js") return HttpResponse("OK")
def onAndroidTrace(request): processname = request.POST.get("processname") classfuncname = request.POST.get("classfuncname") modulefuncname = request.POST.get("modulefuncname") androidTraceJs = formatJS.formatAndroidTrace(classfuncname, modulefuncname) deviceutil = DeviceUtil() devices = fridaFunc.enmuDevices() deviceutil.setup_device(devices) deviceutil.spawn_process_and_load_script(processname, androidTraceJs) return HttpResponse("OK")
def findBaseAddress(request): processname = request.POST.get("processname") modulename = request.POST.get("modulename") findBaseAddressJs = formatJS.formatFindBaseAddress(modulename) deviceutil = DeviceUtil() devices = fridaFunc.enmuDevices() deviceutil.setup_device(devices) deviceutil.setup_process(processname) deviceutil.attach_process_and_load_script(findBaseAddressJs) return HttpResponse("OK")
def enumerateExports(request): processname = request.POST.get("processname") modulename = request.POST.get("modulename") enumerateExportsJs = formatJS.formatEnumerateExports(modulename) deviceutil = DeviceUtil() devices = fridaFunc.enmuDevices() deviceutil.setup_device(devices) deviceutil.setup_process(processname) deviceutil.attach_process_and_load_script(enumerateExportsJs) return HttpResponse("OK")
def onAdJavaHook(request): processname = request.POST.get("processname") funcname = request.POST.get("funcname") classname = request.POST.get("classname") enlogcode = request.POST.get("enlogcode") onAdJavaHookjs = formatJS.formatAdJavaHook(classname, funcname, enlogcode) # print(nativeHookJs) deviceutil = DeviceUtil() devices = fridaFunc.enmuDevices() deviceutil.setup_device(devices) deviceutil.setup_process(processname) deviceutil.attach_process_and_load_script(onAdJavaHookjs) return HttpResponse("OK")
def onOrNativeHook(request): processname = request.POST.get("processname") moduleName = request.POST.get("moduleName") exportName = request.POST.get("exportName") enlogcode = request.POST.get("enlogcode") lelogcode = request.POST.get("lelogcode") orNativeHookJs = formatJS.formatOrNativeHook(moduleName, exportName, enlogcode, lelogcode) deviceutil = DeviceUtil() devices = fridaFunc.enmuDevices() deviceutil.setup_device(devices) deviceutil.setup_process(processname) deviceutil.attach_process_and_load_script(orNativeHookJs) return HttpResponse("OK")
def onAdNativeHook(request): processname = request.POST.get("processname") moduleName = request.POST.get("moduleName") instruction = request.POST.get("instruction") funcoffset = request.POST.get("funcoffset") enlogcode = request.POST.get("enlogcode") lelogcode = request.POST.get("lelogcode") onAdNativeHookjs = formatJS.formatAdNativeHook(moduleName,instruction,funcoffset,enlogcode,lelogcode) # print(nativeHookJs) deviceutil = DeviceUtil() devices = fridaFunc.enmuDevices() deviceutil.setup_device(devices) deviceutil.setup_process(processname) deviceutil.attach_process_and_load_script(onAdNativeHookjs) return HttpResponse("OK")