403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.25
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Program Files/Microsoft VS Code/ce099c1ed2/resources/app/node_modules/native-is-elevated/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Program Files/Microsoft VS Code/ce099c1ed2/resources/app/node_modules/native-is-elevated/index.js
'use strict';

let lib = null;
let tried = false;
let returned = false;
let retValue = false;

module.exports = function isElevated() {
  if (process.platform === 'win32') {
    return isElevatedWindows();
  }

  return process.getuid() === 0;
};

function isElevatedWindows() {
  if (returned) {
    return retValue;
  }

  if (!tried) {
    // Prevent multiple failed require attempts
    tried = true;
    try {
      lib = require('./build/Release/iselevated');
    } catch (err) {
      console.error(err);
    }
  }

  if (!lib) {
    return false;
  }

  try {
    // Cache the result for subsequent calls
    returned = true;
    retValue = lib.isElevated();
  } catch (err) {
    console.error(err);
  }

  return retValue;
}

Youez - 2016 - github.com/yon3zu
LinuXploit