Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
union-value /
Delete
Unzip
Name
Size
Permission
Date
Action
index.js
923
B
-rw-r--r--
2022-12-08 00:48
package.json
1.28
KB
-rw-r--r--
2022-12-08 00:48
Save
Rename
'use strict'; const get = require('get-value'); const set = require('set-value'); const isObject = val => { return val != null && typeof val === 'object' && !Array.isArray(val); }; const flatten = (...args) => { let res = []; let flat = arr => { for (let ele of arr) Array.isArray(ele) ? flat(ele, res) : res.push(ele); }; flat(args); return res; }; const unique = arr => arr.filter((v, i) => arr.indexOf(v) === i); const union = (...args) => unique(flatten(...args)); const first = (...args) => args.find(v => v != null); module.exports = (obj, prop, value) => { if (!isObject(obj)) { throw new TypeError('expected the first argument to be an object'); } if (typeof prop !== 'string') { throw new TypeError('expected the second argument to be a string'); } let arr = [].concat(first(get(obj, prop), [])); set(obj, prop, union(arr, [].concat(first(value, [])))); return obj; };