Skip to content

oh man i using frida in nuxt get erros #108

@ytrsoft

Description

@ytrsoft

import * as frida from 'frida'

let isInt = false

const code = const setup = () => { Java.perform(() => { console.log('===setup===') }) } rpc.exports = { setup }

const initApp = async (app: any) => {
const device = await frida.getUsbDevice()
const session = await device.attach('XXXX')
const script = await session.createScript(code)
script.load()
const rpc = script.exports
app.provide('rpc', rpc)
}

export default defineNuxtPlugin(async (app) => {
console.log('=============================')
if (!isInt) {
await initApp(app)
isInt = true
}
})

=============================
FATAL ERROR: v8::HandleScope::CreateHandle() Cannot create a handle without a HandleScope
----- Native stack trace -----

1: 00007FF73A70BA4B node::SetCppgcReference+16011
2: 00007FF73A675539 node::OnFatalError+265
3: 00007FF73B202D0B v8::FunctionTemplate::RemovePrototype+299
4: 00007FF73B08B726 v8::CppHeap::wrapper_descriptor+70806
5: 00007FF73B1F174B v8::Object::GetCreationContextChecked+107
6: 00007FF73A750490 node::MakeCallback+48
7: 00007FFF60CEFA19 frida_jdwp_reference_type_id_get_handle+6757
8: 00007FFF60CEF8F8 frida_jdwp_reference_type_id_get_handle+6468
9: 00007FF73A77EDFB uv_update_time+475
10: 00007FF73A77E984 uv_run+900
11: 00007FF73A74F125 node::SpinEventLoop+405
12: 00007FF73A62010A X509_STORE_get_cleanup+181418
13: 00007FF73A6BCB23 node::Start+4675
14: 00007FF73A6BB907 node::Start+39
15: 00007FF73A3DE51C AES_cbc_encrypt+154444
16: 00007FF73BE575B8 inflateValidate+22264
17: 00007FF8170EE8D7 BaseThreadInitThunk+23
18: 00007FF8191BBF2C RtlUserThreadStart+44

ERROR [unhandledRejection] read ECONNRESET 18:22:34

at TCP.onStreamRead (node:internal/stream_base_commons:216:20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions