Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.217.80
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
enhanced-resolve /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
util
[ DIR ]
drwxr-xr-x
2024-07-10 10:56
AliasFieldPlugin.js
3.02
KB
-rw-r--r--
2023-10-12 14:26
AliasPlugin.js
4.48
KB
-rw-r--r--
2023-10-12 14:26
AppendPlugin.js
1.17
KB
-rw-r--r--
2023-10-12 14:26
CachedInputFileSystem.js
15.01
KB
-rw-r--r--
2023-10-12 14:26
CloneBasenamePlugin.js
1.34
KB
-rw-r--r--
2023-10-12 14:26
ConditionalPlugin.js
1.68
KB
-rw-r--r--
2023-10-12 14:26
DescriptionFilePlugin.js
2.63
KB
-rw-r--r--
2023-10-12 14:26
DescriptionFileUtils.js
5.13
KB
-rw-r--r--
2023-10-12 14:26
DirectoryExistsPlugin.js
1.66
KB
-rw-r--r--
2023-10-12 14:26
ExportsFieldPlugin.js
4.92
KB
-rw-r--r--
2023-10-12 14:26
ExtensionAliasPlugin.js
2.99
KB
-rw-r--r--
2023-10-12 14:26
FileExistsPlugin.js
1.53
KB
-rw-r--r--
2023-10-12 14:26
ImportsFieldPlugin.js
5.44
KB
-rw-r--r--
2023-10-12 14:26
JoinRequestPartPlugin.js
1.87
KB
-rw-r--r--
2023-10-12 14:26
JoinRequestPlugin.js
1.25
KB
-rw-r--r--
2023-10-12 14:26
LogInfoPlugin.js
1.51
KB
-rw-r--r--
2023-10-12 14:26
MainFieldPlugin.js
2.42
KB
-rw-r--r--
2023-10-12 14:26
ModulesInHierachicDirectoriesPlugin.js
215
B
-rw-r--r--
2023-10-12 14:26
ModulesInHierarchicalDirectoriesPlugin.js
2.37
KB
-rw-r--r--
2023-10-12 14:26
ModulesInRootPlugin.js
1.13
KB
-rw-r--r--
2023-10-12 14:26
NextPlugin.js
803
B
-rw-r--r--
2023-10-12 14:26
ParsePlugin.js
2.26
KB
-rw-r--r--
2023-10-12 14:26
PnpPlugin.js
3.15
KB
-rw-r--r--
2023-10-12 14:26
Resolver.js
16.36
KB
-rw-r--r--
2023-10-12 14:26
ResolverFactory.js
20.6
KB
-rw-r--r--
2023-10-12 14:26
RestrictionsPlugin.js
1.77
KB
-rw-r--r--
2023-10-12 14:26
ResultPlugin.js
971
B
-rw-r--r--
2023-10-12 14:26
RootsPlugin.js
1.62
KB
-rw-r--r--
2023-10-12 14:26
SelfReferencePlugin.js
2.15
KB
-rw-r--r--
2023-10-12 14:26
SymlinkPlugin.js
2.67
KB
-rw-r--r--
2023-10-12 14:26
SyncAsyncFileSystemDecorator.js
2.79
KB
-rw-r--r--
2023-10-12 14:26
TryNextPlugin.js
919
B
-rw-r--r--
2023-10-12 14:26
UnsafeCachePlugin.js
3.15
KB
-rw-r--r--
2023-10-12 14:26
UseFilePlugin.js
1.28
KB
-rw-r--r--
2023-10-12 14:26
createInnerContext.js
1.05
KB
-rw-r--r--
2023-10-12 14:26
forEachBail.js
1.09
KB
-rw-r--r--
2023-10-12 14:26
getInnerRequest.js
1.1
KB
-rw-r--r--
2023-10-12 14:26
getPaths.js
1.12
KB
-rw-r--r--
2023-10-12 14:26
index.js
5.64
KB
-rw-r--r--
2023-10-12 14:26
Save
Rename
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Ivan Kopeykin @vankop */ "use strict"; /** @typedef {import("./Resolver")} Resolver */ /** @typedef {import("./Resolver").ResolveStepHook} ResolveStepHook */ const slashCode = "/".charCodeAt(0); const backslashCode = "\\".charCodeAt(0); /** * @param {string} path path * @param {string} parent parent path * @returns {boolean} true, if path is inside of parent */ const isInside = (path, parent) => { if (!path.startsWith(parent)) return false; if (path.length === parent.length) return true; const charCode = path.charCodeAt(parent.length); return charCode === slashCode || charCode === backslashCode; }; module.exports = class RestrictionsPlugin { /** * @param {string | ResolveStepHook} source source * @param {Set<string | RegExp>} restrictions restrictions */ constructor(source, restrictions) { this.source = source; this.restrictions = restrictions; } /** * @param {Resolver} resolver the resolver * @returns {void} */ apply(resolver) { resolver .getHook(this.source) .tapAsync("RestrictionsPlugin", (request, resolveContext, callback) => { if (typeof request.path === "string") { const path = request.path; for (const rule of this.restrictions) { if (typeof rule === "string") { if (!isInside(path, rule)) { if (resolveContext.log) { resolveContext.log( `${path} is not inside of the restriction ${rule}` ); } return callback(null, null); } } else if (!rule.test(path)) { if (resolveContext.log) { resolveContext.log( `${path} doesn't match the restriction ${rule}` ); } return callback(null, null); } } } callback(); }); } };