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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/local/lib/node_modules/npm/node_modules/promzard/test/   drwxr-xr-x
Free 13.2 GB of 57.97 GB (22.78%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     fn.js (1.13 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
var test = require('tap').test;
var promzard = require('../');
var fs = require('fs')
var file = __dirname + '/fn.input';

var expect = {
  a : 3,
  b : '!2B...',
  c : {
    x : 5500,
    y : '/tmp/y/file.txt',
  }
}
expect.a_function = fs.readFileSync(file, 'utf8')
expect.asyncPrompt = 'async prompt'

if (process.argv[2] === 'child') {
  return child()
}

test('prompt callback param', function (t) {
  t.plan(1);

  var spawn = require('child_process').spawn
  var child = spawn(process.execPath, [__filename, 'child'])

  var output = ''
  child.stderr.on('data', function (c) {
    output += c
  })

  child.on('close', function () {
    console.error('output=%j', output)
    output = JSON.parse(output)
    t.same(output, expect);
    t.end()
  })

  setTimeout(function () {
    child.stdin.write('\n')
  }, 100)
  setTimeout(function () {
    child.stdin.write('55\n')
  }, 150)
  setTimeout(function () {
    child.stdin.end('async prompt\n')
  }, 200)
})

function child () {
  var ctx = { tmpdir : '/tmp' }
  var file = __dirname + '/fn.input';
  promzard(file, ctx, function (err, output) {
    console.error(JSON.stringify(output))
  })
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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