AnonSec Shell
Server IP : 162.0.209.157  /  Your IP : 3.14.134.195   [ Reverse IP ]
Web Server : LiteSpeed
System : Linux premium178.web-hosting.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User : balaoqob ( 2395)
PHP Version : 8.0.30
Disable Function : NONE
Domains : 1 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/node_modules/npm/lib/install/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/node_modules/npm/lib/install/writable.js
'use strict'
var path = require('path')
var fs = require('fs')
var inflight = require('inflight')
var accessError = require('./access-error.js')
var andIgnoreErrors = require('./and-ignore-errors.js')
var isFsAccessAvailable = require('./is-fs-access-available.js')

if (isFsAccessAvailable) {
  module.exports = fsAccessImplementation
} else {
  module.exports = fsOpenImplementation
}

// exposed only for testing purposes
module.exports.fsAccessImplementation = fsAccessImplementation
module.exports.fsOpenImplementation = fsOpenImplementation

function fsAccessImplementation (dir, done) {
  done = inflight('writable:' + dir, done)
  if (!done) return
  fs.access(dir, fs.W_OK, done)
}

function fsOpenImplementation (dir, done) {
  done = inflight('writable:' + dir, done)
  if (!done) return
  var tmp = path.join(dir, '.npm.check.permissions')
  fs.open(tmp, 'w', function (er, fd) {
    if (er) return done(accessError(dir, er))
    fs.close(fd, function () {
      fs.unlink(tmp, andIgnoreErrors(done))
    })
  })
}

Anon7 - 2022
AnonSec Team