Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.13
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
node-readdirp /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
bench.js
731
B
-rw-r--r--
grep.js
1.46
KB
-rw-r--r--
list.js
733
B
-rw-r--r--
types.ts
578
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : grep.js
'use strict'; const {createReadStream} = require('fs'); const es = require('event-stream'); const readdirp = require('..'); const findLinesMatching = (searchTerm) => { return es.through(function (entry) { let lineno = 0; const matchingLines = []; const fileStream = this; createReadStream(entry.fullPath, {encoding: 'utf-8'}) // handle file contents line by line .pipe(es.split('\n')) // filter, keep only the lines that matched the term .pipe(es.mapSync((line) => { lineno++; return ~line.indexOf(searchTerm) ? `${lineno}: ${line}` : undefined; })) // aggregate matching lines and delegate control back to the file stream .pipe(es.through( (data) => { matchingLines.push(data); }, () => { // drop files that had no matches if (matchingLines.length) { const result = { file: entry, lines: matchingLines }; fileStream.emit('data', result); // pass result on to file stream } this.emit('end'); })); }); }; // create a stream of all javascript files found in this and all sub directories // find all lines matching the term // for each file (if none found, that file is ignored) readdirp(__dirname, {fileFilter: '*.js'}) .pipe(findLinesMatching('arguments')) .pipe(es.mapSync((res) => { // format the results and output return `\n\n${res.file.path}\n\t${res.lines.join('\n\t')}`; })) .pipe(process.stdout);
Close