!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/share/.cache/yarn/v6/npm-tape-5.6.1-integrity/node_modules/tape/test/async-await/   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:     async5.js (1.13 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
'use strict';

var util = require('util');
var http = require('http');

var test = require('../../');

test('async5', async function myTest(t) {
	try {
		t.ok(true, 'before server');

		var mockDb = { state: 'old' };
		var server = http.createServer(function (req, res) {
			res.end('OK');

			// Pretend we write to the DB and it takes time.
			setTimeout(function () {
				mockDb.state = 'new';
			}, 10);
		});

		await util.promisify(function (cb) {
			server.listen(0, cb);
		})();

		t.ok(true, 'after server');

		t.ok(true, 'before request');

		var res = await util.promisify(function (cb) {
			var req = http.request({
				hostname: 'localhost',
				port: server.address().port,
				path: '/',
				method: 'GET'
			}, function (resp) {
				cb(null, resp);
			});
			req.end();
		})();

		t.ok(true, 'after request');

		res.resume();
		t.equal(res.statusCode, 200, 'res.statusCode is 200');

		setTimeout(function () {
			t.equal(mockDb.state, 'new', 'mockDb.state is new');

			server.close(function (err) {
				t.ifError(err, 'error on close');
				t.end();
			});
		}, 50);
	} catch (err) {
		t.ifError(err, 'error in catch');
		t.end();
	}
});

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