Example #1
0
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")
Example #2
0
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")
Example #3
0
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")
Example #4
0
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")
Example #5
0
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")