Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
quiz1 /
node_modules /
bfj /
test /
unit /
[ HOME SHELL ]
Name
Size
Permission
Action
datastream.js
2.11
KB
-rw-rw-rw-
error.js
1.76
KB
-rw-rw-rw-
eventify.js
61.83
KB
-rw-rw-rw-
jsonstream.js
2.11
KB
-rw-rw-rw-
match.js
39.34
KB
-rw-rw-rw-
parse.js
34.38
KB
-rw-rw-rw-
read.js
2.65
KB
-rw-rw-rw-
streamify.js
33.71
KB
-rw-rw-rw-
stringify.js
4.98
KB
-rw-rw-rw-
unpipe.js
3
KB
-rw-rw-rw-
walk.js
84.67
KB
-rw-rw-rw-
write.js
6.76
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : datastream.js
'use strict' const assert = require('chai').assert const spooks = require('spooks') const modulePath = '../../src/datastream' suite('datastream:', () => { let log setup(() => { log = {} }) test('require does not throw', () => { assert.doesNotThrow(() => { require(modulePath) }) }) test('require returns function', () => { assert.isFunction(require(modulePath)) }) suite('require:', () => { let Stream setup(() => { Stream = require(modulePath) }) test('Stream expects two arguments', () => { assert.lengthOf(Stream, 2) }) test('calling Stream with function argument doesNotThrow', () => { assert.doesNotThrow(() => { Stream(() => {}) }) }) test('calling Stream with object argument throws', () => { assert.throws(() => { Stream({ read: () => {} }) }) }) test('calling Stream with new returns Stream instance', () => { assert.instanceOf(new Stream(() => {}), Stream) }) test('calling Stream with new returns Readable instance', () => { assert.instanceOf(new Stream(() => {}), require('stream').Readable) }) test('calling Stream without new returns Stream instance', () => { assert.instanceOf(Stream(() => {}), Stream) }) suite('instantiate:', () => { let datastream setup(() => { datastream = new Stream(spooks.fn({ name: 'read', log: log })) }) test('datastream has _read method', () => { assert.isFunction(datastream._read) }) test('_read expects no arguments', () => { assert.lengthOf(datastream._read, 0) }) test('read was not called', () => { assert.strictEqual(log.counts.read, 0) }) suite('datastream._read:', () => { setup(() => { datastream._read() }) test('read was called once', () => { assert.strictEqual(log.counts.read, 1) assert.isUndefined(log.these.read[0]) }) test('read was called correctly', () => { assert.lengthOf(log.args.read[0], 0) }) }) }) }) })
Close