Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.140.201.179
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
browser-sync /
dist /
Delete
Unzip
Name
Size
Permission
Date
Action
cli
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
public
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
server
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
args.js
1.61
KB
-rw-rw-r--
2022-08-30 11:49
args.js.map
1.4
KB
-rw-rw-r--
2022-08-30 11:49
async-tasks.js
1.33
KB
-rw-rw-r--
2022-08-30 11:49
async-tasks.js.map
1.07
KB
-rw-rw-r--
2022-08-30 11:49
async.js
9.05
KB
-rw-rw-r--
2022-08-30 11:49
async.js.map
6.92
KB
-rw-rw-r--
2022-08-30 11:49
bin.js
7.19
KB
-rwxrwxr-x
2022-08-30 11:49
bin.js.map
5.46
KB
-rw-rw-r--
2022-08-30 11:49
browser-sync.js
14.47
KB
-rw-rw-r--
2022-08-30 11:49
browser-sync.js.map
13.45
KB
-rw-rw-r--
2022-08-30 11:49
config.js
1.11
KB
-rw-rw-r--
2022-08-30 11:49
config.js.map
819
B
-rw-rw-r--
2022-08-30 11:49
connect-utils.js
7.8
KB
-rw-rw-r--
2022-08-30 11:49
connect-utils.js.map
5.42
KB
-rw-rw-r--
2022-08-30 11:49
default-config.js
14.31
KB
-rw-rw-r--
2022-08-30 11:49
default-config.js.map
3.13
KB
-rw-rw-r--
2022-08-30 11:49
file-event-handler.js
2.5
KB
-rw-rw-r--
2022-08-30 11:49
file-event-handler.js.map
2.04
KB
-rw-rw-r--
2022-08-30 11:49
file-utils.js
1.73
KB
-rw-rw-r--
2022-08-30 11:49
file-utils.js.map
1.43
KB
-rw-rw-r--
2022-08-30 11:49
file-watcher.js
2.04
KB
-rw-rw-r--
2022-08-30 11:49
file-watcher.js.map
2.02
KB
-rw-rw-r--
2022-08-30 11:49
hooks.js
2.41
KB
-rw-rw-r--
2022-08-30 11:49
hooks.js.map
2.13
KB
-rw-rw-r--
2022-08-30 11:49
http-protocol.js
3.26
KB
-rw-rw-r--
2022-08-30 11:49
http-protocol.js.map
2.7
KB
-rw-rw-r--
2022-08-30 11:49
index.js
10.34
KB
-rw-rw-r--
2022-08-30 11:49
index.js.map
5.94
KB
-rw-rw-r--
2022-08-30 11:49
internal-events.js
3.39
KB
-rw-rw-r--
2022-08-30 11:49
internal-events.js.map
3.13
KB
-rw-rw-r--
2022-08-30 11:49
lodash.custom.js
148.39
KB
-rw-rw-r--
2022-08-30 11:49
lodash.custom.js.map
74.35
KB
-rw-rw-r--
2022-08-30 11:49
logger.js
6.95
KB
-rw-rw-r--
2022-08-30 11:49
logger.js.map
6.44
KB
-rw-rw-r--
2022-08-30 11:49
options.js
6.48
KB
-rw-rw-r--
2022-08-30 11:49
options.js.map
5.95
KB
-rw-rw-r--
2022-08-30 11:49
plugins.js
4.72
KB
-rw-rw-r--
2022-08-30 11:49
plugins.js.map
3.04
KB
-rw-rw-r--
2022-08-30 11:49
snippet.js
2.87
KB
-rw-rw-r--
2022-08-30 11:49
snippet.js.map
2.65
KB
-rw-rw-r--
2022-08-30 11:49
sockets.js
2.25
KB
-rw-rw-r--
2022-08-30 11:49
sockets.js.map
2.05
KB
-rw-rw-r--
2022-08-30 11:49
tunnel.js
950
B
-rw-rw-r--
2022-08-30 11:49
tunnel.js.map
1.05
KB
-rw-rw-r--
2022-08-30 11:49
types.js
110
B
-rw-rw-r--
2022-08-30 11:49
types.js.map
102
B
-rw-rw-r--
2022-08-30 11:49
utils.js
8.41
KB
-rw-rw-r--
2022-08-30 11:49
utils.js.map
7.07
KB
-rw-rw-r--
2022-08-30 11:49
Save
Rename
"use strict"; var queryString = require("qs"); var proto = exports; var instanceMethods = ["exit", "notify", "pause", "resume"]; var getBody = require("raw-body"); const permittedSocketEvents = [ "file:reload", "browser:reload", "browser:notify", "browser:location", "options:set" ]; /** * Does the requested method expect an instance of BrowserSync * or raw access to the emitter? * @param method * @returns {boolean} */ function methodRequiresInstance(method) { return instanceMethods.indexOf(method) > -1; } /** * Use BrowserSync options + querystring to create a * full HTTP/HTTTPS url. * * Eg. http://localhost:3000/__browser_sync__?method=reload * Eg. http://localhost:3000/__browser_sync__?method=reload&args=core.css * Eg. http://localhost:3000/__browser_sync__?method=reload&args=core.css&args=core.min * * @param args * @param url * @returns {string} */ proto.getUrl = function (args, url) { return [ url, require("./config").httpProtocol.path, "?", queryString.stringify(args) ].join(""); }; /** * Return a middleware for handling the requests * @param {BrowserSync} bs * @returns {Function} */ proto.middleware = function (bs) { return function (req, res) { if (req.method === "POST") { return getBody(req, function (err, body) { if (err) { const output = ["Error: could not parse JSON."]; res.writeHead(500, { "Content-Type": "text/plain" }); return res.end(output.join("\n")); } try { const [name, payload] = JSON.parse(body.toString()); bs.io.sockets.emit(name, payload); return res.end(`Browsersync HTTP Protocol received: ${name} ${JSON.stringify(payload)}`); } catch (e) { const output = [`Error: ${e.message}`]; res.writeHead(500, { "Content-Type": "text/plain" }); return res.end(output.join("\n")); } }); } var params = queryString.parse(req.url.replace(/^.*\?/, "")); var output; if (!Object.keys(params).length) { output = [ "Error: No Parameters were provided.", "Example: http://localhost:3000/__browser_sync__?method=reload&args=core.css" ]; res.writeHead(500, { "Content-Type": "text/plain" }); res.end(output.join("\n")); return; } try { var bsOrEmitter = methodRequiresInstance(params.method) ? bs : bs.events; require("./public/" + params.method)(bsOrEmitter).apply(null, [ params.args ]); output = [ "Called public API method `.%s()`".replace("%s", params.method), "With args: " + JSON.stringify(params.args) ]; res.end(output.join("\n")); } catch (e) { res.writeHead(404, { "Content-Type": "text/plain" }); res.write("Public API method `" + params.method + "` not found."); res.end(); return; } }; }; //# sourceMappingURL=http-protocol.js.map