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.159
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
/
home /
amatya /
quiz1 /
node_modules /
recursive-readdir /
[ HOME SHELL ]
Name
Size
Permission
Action
LICENSE
1.06
KB
-rw-rw-rw-
README.md
1.92
KB
-rw-rw-rw-
index.js
2.09
KB
-rw-rw-rw-
package.json
634
B
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : index.js
var fs = require("fs"); var p = require("path"); var minimatch = require("minimatch"); function patternMatcher(pattern) { return function(path, stats) { var minimatcher = new minimatch.Minimatch(pattern, { matchBase: true }); return (!minimatcher.negate || stats.isFile()) && minimatcher.match(path); }; } function toMatcherFunction(ignoreEntry) { if (typeof ignoreEntry == "function") { return ignoreEntry; } else { return patternMatcher(ignoreEntry); } } function readdir(path, ignores, callback) { if (typeof ignores == "function") { callback = ignores; ignores = []; } if (!callback) { return new Promise(function(resolve, reject) { readdir(path, ignores || [], function(err, data) { if (err) { reject(err); } else { resolve(data); } }); }); } ignores = ignores.map(toMatcherFunction); var list = []; fs.readdir(path, function(err, files) { if (err) { return callback(err); } var pending = files.length; if (!pending) { // we are done, woop woop return callback(null, list); } files.forEach(function(file) { var filePath = p.join(path, file); fs.stat(filePath, function(_err, stats) { if (_err) { return callback(_err); } if ( ignores.some(function(matcher) { return matcher(filePath, stats); }) ) { pending -= 1; if (!pending) { return callback(null, list); } return null; } if (stats.isDirectory()) { readdir(filePath, ignores, function(__err, res) { if (__err) { return callback(__err); } list = list.concat(res); pending -= 1; if (!pending) { return callback(null, list); } }); } else { list.push(filePath); pending -= 1; if (!pending) { return callback(null, list); } } }); }); }); } module.exports = readdir;
Close