403Webshell
Server IP : 157.230.181.24  /  Your IP : 216.73.217.11
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux conductive 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64
User :  ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/vhosts/convo/node_modules/spawn-sync/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/convo/node_modules/spawn-sync/postinstall.js
'use strict';

function onError(err) {
  try {
    var str = '' + (err ? (err.stack || err.message || err) : 'null');
    require('fs').writeFileSync(__dirname + '/error.log', str);
  } catch (ex) {
  }
}
try {
  var fs = require('fs');
  var cp = require('child_process');
  var REQUIRES_UPDATE = false;
  var pkg = JSON.parse(fs.readFileSync(__dirname + '/package.json', 'utf8'));
  if (cp.spawnSync || __dirname.indexOf('node_modules') === -1) {
    if(pkg.dependencies['try-thread-sleep']){
      delete pkg.dependencies['try-thread-sleep'];
      REQUIRES_UPDATE = true;
    }
  } else {
    if(!pkg.dependencies['try-thread-sleep']){
      pkg.dependencies['try-thread-sleep'] = "^1.0.0";
      REQUIRES_UPDATE = true;
      console.log('Installing native dependencies (this may take up to a minute)');
    }
  }
  if (REQUIRES_UPDATE && __dirname.indexOf('node_modules') !== -1) {
    fs.writeFileSync(__dirname + '/package.json', JSON.stringify(pkg, null, '  '));
    cp.exec((process.env.npm_execpath ? ('"' + process.argv[0] + '" "' + process.env.npm_execpath + '"') : 'npm') +
            ' install --production', {
      cwd: __dirname
    }, function (err) {
      if (err) onError(err);
      process.exit(0);
    });
    setTimeout(function () {
      process.exit(0);
    }, 60000);
  }
} catch (ex) {
  onError(ex);
}

Youez - 2016 - github.com/yon3zu
LinuXploit