MCPcopy
hub / github.com/0dayCTF/reverse-shell-generator / fixedEncodeURIComponent

Function fixedEncodeURIComponent

js/script.js:115–119  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

113
114// From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent
115const fixedEncodeURIComponent = function (str) {
116 return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
117 return '%' + c.charCodeAt(0).toString(16).toUpperCase();
118 });
119}
120
121const parsePortOrDefault = function (value, defaultPort = 9001) {
122 if (value === null || value === undefined) return defaultPort;

Callers 1

encoderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected