manage-bde as nodejs child process

0

if you run manage-bde -unlock F: -password manage-bde will ask you for password if you do the same using the script below it won't ask for password it will error with stdout: ERROR: An error occurred (code 0x80070006): stdout: The handle is invalid.. Basically, I'm building bruteforce software for Bitlocker. How to solve?

    module.exports = (() => {
    var { spawn } = require('child_process');

    var test = spawn('manage-bde', ['-unlock', 'F:', '-password']);

    test.stdout.on('data', function (data) {
        test.stdin.write('password\n');
        console.log('stdout: ' + data);
    });

    test.stderr.on('data', function (data) {
        console.log('stderr: ' + data);
    });

})();
node.js
powershell
child-process
spawn
bitlocker
asked on Stack Overflow Sep 12, 2019 by DisplayNamey

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0