Hosting an exploit via NodeJS/Express

Discussion in 'Wii U - Hacking & Backup Loaders' started by Dann_, May 3, 2016.

  1. Dann_
    OP

    Dann_ Advanced Member

    Newcomer
    60
    31
    May 3, 2016
    Afghanistan
    First of all sup I guess :P

    I've been doing some experiments with the latest exploits and I'm thinking of making a little server/manager for the ones you have to load trough the mp4 exploit. All the exploits I've tried have worked fantasticly by loading them trough Apache / Wamp but they refuse to work with NodeJS/Express

    I've tried to use Express their function that just sends files to the user and I've made my own (set header to 'video/mp4' and then pumped the mp4 data) which had no success either. All that happens is the Wii U receives the video and it eiter freezes while the loading circle appears or it freezes before then even


    Does anyone know why this happens and or how to fix it? Thanks in advance

    //Custom Video Loading thingy
    HTML:
    router.get('/hax', function(req, res, next) {
      var filePath = path.join(__dirname, '../public/exploits/osdriver.mp4');
      var stat = fs.statSync(filePath);
    
      res.writeHead(200, {
        'Content-Type': 'video/mp4',
        'Content-Length': stat.size
      });
    
      var readStream = fs.createReadStream(filePath);
      readStream.pipe(res);
    });
     
    Last edited by Dann_, May 3, 2016
  2. Dann_
    OP

    Dann_ Advanced Member

    Newcomer
    60
    31
    May 3, 2016
    Afghanistan
    bumpy dump
     
  3. Fuses

    Fuses Newbie

    Newcomer
    6
    3
    May 3, 2016
    United States
    Why not just dump them all in a folder and use http-server?
     
  4. Dann_
    OP

    Dann_ Advanced Member

    Newcomer
    60
    31
    May 3, 2016
    Afghanistan
    See, that doesn't work either. It will crash just like my application. This is what I find strange :/ It works perfectly on Apache / WAMP Server but it just crashes on anything else. Does anyone know why this is?
     
    Last edited by Dann_, May 4, 2016
  5. Dann_
    OP

    Dann_ Advanced Member

    Newcomer
    60
    31
    May 3, 2016
    Afghanistan
    bumpy dump