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 /
svgo /
lib /
svgo /
[ HOME SHELL ]
Name
Size
Permission
Action
coa.js
18.49
KB
-rw-rw-rw-
config.js
5.99
KB
-rw-rw-rw-
css-class-list.js
3.18
KB
-rw-rw-rw-
css-select-adapter.js
1.5
KB
-rw-rw-rw-
css-style-declaration.js
8.02
KB
-rw-rw-rw-
js2svg.js
7.78
KB
-rw-rw-rw-
jsAPI.js
8.95
KB
-rw-rw-rw-
plugins.js
2.1
KB
-rw-rw-rw-
svg2js.js
4.43
KB
-rw-rw-rw-
tools.js
3.75
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : tools.js
'use strict'; var FS = require('fs'); /** * Encode plain SVG data string into Data URI string. * * @param {String} str input string * @param {String} type Data URI type * @return {String} output string */ exports.encodeSVGDatauri = function(str, type) { var prefix = 'data:image/svg+xml'; if (!type || type === 'base64') { // base64 prefix += ';base64,'; if (Buffer.from) { str = prefix + Buffer.from(str).toString('base64'); } else { str = prefix + new Buffer(str).toString('base64'); } } else if (type === 'enc') { // URI encoded str = prefix + ',' + encodeURIComponent(str); } else if (type === 'unenc') { // unencoded str = prefix + ',' + str; } return str; }; /** * Decode SVG Data URI string into plain SVG string. * * @param {string} str input string * @return {String} output string */ exports.decodeSVGDatauri = function(str) { var regexp = /data:image\/svg\+xml(;charset=[^;,]*)?(;base64)?,(.*)/; var match = regexp.exec(str); // plain string if (!match) return str; var data = match[3]; if (match[2]) { // base64 str = new Buffer(data, 'base64').toString('utf8'); } else if (data.charAt(0) === '%') { // URI encoded str = decodeURIComponent(data); } else if (data.charAt(0) === '<') { // unencoded str = data; } return str; }; exports.intersectArrays = function(a, b) { return a.filter(function(n) { return b.indexOf(n) > -1; }); }; /** * Convert a row of numbers to an optimized string view. * * @example * [0, -1, .5, .5] → "0-1 .5.5" * * @param {number[]} data * @param {Object} params * @param {string?} command path data instruction * @return {string} */ exports.cleanupOutData = function(data, params, command) { var str = '', delimiter, prev; data.forEach(function(item, i) { // space delimiter by default delimiter = ' '; // no extra space in front of first number if (i == 0) delimiter = ''; // no extra space after 'arcto' command flags if (params.noSpaceAfterFlags && (command == 'A' || command == 'a')) { var pos = i % 7; if (pos == 4 || pos == 5) delimiter = ''; } // remove floating-point numbers leading zeros // 0.5 → .5 // -0.5 → -.5 if (params.leadingZero) { item = removeLeadingZero(item); } // no extra space in front of negative number or // in front of a floating number if a previous number is floating too if ( params.negativeExtraSpace && delimiter != '' && (item < 0 || (String(item).charCodeAt(0) == 46 && prev % 1 !== 0) ) ) { delimiter = ''; } // save prev item value prev = item; str += delimiter + item; }); return str; }; /** * Remove floating-point numbers leading zero. * * @example * 0.5 → .5 * * @example * -0.5 → -.5 * * @param {Float} num input number * * @return {String} output number as string */ var removeLeadingZero = exports.removeLeadingZero = function(num) { var strNum = num.toString(); if (0 < num && num < 1 && strNum.charCodeAt(0) == 48) { strNum = strNum.slice(1); } else if (-1 < num && num < 0 && strNum.charCodeAt(1) == 48) { strNum = strNum.charAt(0) + strNum.slice(2); } return strNum; }; /** * Synchronously check if path is a directory. Tolerant to errors like ENOENT. * @param {string} path */ exports.checkIsDir = function(path) { try { return FS.lstatSync(path).isDirectory(); } catch(e) { return false; } };
Close