Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need rz-pipe for nodejs #41

Open
weituotian opened this issue Jul 30, 2022 · 2 comments
Open

need rz-pipe for nodejs #41

weituotian opened this issue Jul 30, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@weituotian
Copy link

jsdec is using javascript too.

@wargio
Copy link
Member

wargio commented Jul 30, 2022

jsdec is using duktape, which is another js engine.

@weituotian
Copy link
Author

may be these codes:

const spawn = require('child_process').spawn;

let rizinExe = 'C:\\myprogram\\cutter.Windows\\rizin.exe';
const py = spawn(rizinExe,
    [
        '-p',
        'L:\\backup\\apk\\momo\\libmahoshojo.fix.so.rzdb',
        '-q0',
    ],
    {
        // detached: true
    });

py.stdout.on('data', function (res) {
    res = res.toString('utf8');
    console.log(res)
})
py.stderr.on('data', function (data) {
    console.log('standard error output:\n' + data);
});

py.stdin.write('e asm.arch\n', () => {
    console.log('write end');
});

output:

"C:\Program Files\nodejs\node.exe" K:\projects\nodejs\jstillery\x86\testCmdRizin.js
write end

arm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants