!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/rentals.picotech.app/public_html/node_modules/bull/lib/process/   drwxr-xr-x
Free 23 GB of 117.98 GB (19.49%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     utils.js (1.51 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
'use strict';

function hasProcessExited(child) {
  return !!(child.exitCode !== null || child.signalCode);
}

function onExitOnce(child) {
  return new Promise(resolve => {
    child.once('exit', () => resolve());
  });
}

/**
 * Sends a kill signal to a child resolving when the child has exited,
 * resorting to SIGKILL if the given timeout is reached
 *
 * @param {ChildProcess} child
 * @param {'SIGTERM' | 'SIGKILL'} [signal] initial signal to use
 * @param {number} [timeoutMs] time to wait until sending SIGKILL
 *
 * @returns {Promise<void>} the killed child
 */
function killAsync(child, signal, timeoutMs) {
  if (hasProcessExited(child)) {
    return Promise.resolve(child);
  }

  // catch any new on exit
  let onExit = onExitOnce(child);

  child.kill(signal || 'SIGKILL');

  if (timeoutMs === 0 || isFinite(timeoutMs)) {
    const timeout = setTimeout(() => {
      if (!hasProcessExited(child)) {
        child.kill('SIGKILL');
      }
    }, timeoutMs);

    onExit = onExit.then(() => {
      clearTimeout(timeout);
    });
  }
  return onExit;
}

/*
 asyncSend
 Same as process.send but waits until the send is complete
 the async version is used below because otherwise
 the termination handler may exit before the parent
 process has recived the messages it requires
 */

const asyncSend = (proc, msg) => {
  return new Promise((resolve, reject) => {
    proc.send(msg, err => {
      if (err) {
        reject(err);
      } else {
        resolve();
      }
    });
  });
};

module.exports = {
  killAsync,
  asyncSend
};

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0038 ]--