stalkerjavascript24164
Mobile Legends Player Stalker & Account Validator
Mobile Legends Player Stalker & Account Validator real-time dengan multi-engine gateway dan output konsisten user & id.
Vamz Spectre19 Okt 2026272 baris kode
Jalankan via Terminal / CLI:
# 1. Download file script
curl -sL "https://code.vamxapi.my.id/snippet/raw/stalkml" -o stalkml.js
# 2. Jalankan script
node stalkml.js
Panduan Penggunaan:
curl -sL "https://code.vamxapi.my.id/snippet/raw/stalkml" -o stalkml.js node stalkml.js 1114917746 13486
stalkml.js(272 lines)
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
/**
* StalkML - Mobile Legends Player Stalker & Account Validator
* Author: Vamz Spectre (VamxAPI)
*
* Fitur:
* - Validasi ID & Server (Zone ID) Mobile Legends: Bang Bang secara real-time
* - Mengekstrak nama in-game resmi (user) dan User ID Mobile Legends
* - Multi-Engine Gateway Fallback:
* 1. Primary: MLBB High-Speed Realtime Inquiry (~15-30ms)
* 2. Secondary: Global Game Nickname Resolver (~30-50ms)
* 3. Tertiary: GoPay Official Game Inquiry Engine (~50ms)
* - Zero Dependencies: Berjalan langsung menggunakan Node.js native HTTPS (IPv4 safe)
* - Fleksibel parsing input: "ID Zone", "ID(Zone)", "ID|Zone", atau 2 argumen terpisah
* - Output format JSON murni & konsisten: { user, id, zoneId }
*
* Penggunaan CLI:
* curl -sL "https://code.vamxapi.my.id/snippet/raw/stalkml" -o stalkml.js
* node stalkml.js 1114917746 13486
* node stalkml.js "1114917746(13486)"
*/
const https = require("https");
const http = require("http");
const { URL } = require("url");
/**
* Lightweight native HTTP/HTTPS client (IPv4 forced, auto redirect, fast keepalive)
*/
function request(urlStr, options = {}) {
return new Promise((resolve, reject) => {
try {
const parsed = new URL(urlStr);
const isHttps = parsed.protocol === "https:";
const client = isHttps ? https : http;
const req = client.request(parsed, {
method: options.method || "GET",
family: 4,
headers: {
"User-Agent":
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
Accept: "application/json, text/plain, */*",
...options.headers,
},
timeout: options.timeout || 6000,
}, (res) => {
if (res.statusCode >= 300 && res.statusCode < 400 && res.headers.location) {
const redirectUrl = new URL(res.headers.location, urlStr).toString();
return resolve(request(redirectUrl, options));
}
const chunks = [];
res.on("data", chunk => chunks.push(chunk));
res.on("end", () => {
const body = Buffer.concat(chunks).toString("utf-8");
try {
const json = JSON.parse(body);
resolve({ status: res.statusCode, headers: res.headers, data: json, raw: body });
} catch {
resolve({ status: res.statusCode, headers: res.headers, data: null, raw: body });
}
});
});
req.on("error", err => reject(new Error(`StalkML Request Error: ${err.message}`)));
req.on("timeout", () => {
req.destroy();
reject(new Error("StalkML Request Timeout"));
});
if (options.body) req.write(options.body);
req.end();
} catch (err) {
reject(err);
}
});
}
/**
* Parsing input menjadi ID dan Zone ID
* @param {string} rawId
* @param {string} [rawZone]
* @returns {{ id: string, zoneId: string } | null}
*/
function parseMlInput(rawId, rawZone) {
if (!rawId) return null;
const str = String(rawId).trim();
// Format ID(Zone) atau ID [Zone]
const matchParentheses = str.match(/^([0-9]{4,12})\s*[\(\[\{]([0-9]{3,8})[\)\]\}]$/);
if (matchParentheses) {
return { id: matchParentheses[1], zoneId: matchParentheses[2] };
}
// Format ID|Zone, ID/Zone, ID Zone, dll
const matchDelimited = str.match(/^([0-9]{4,12})[\s\|\/\-_,:;]+([0-9]{3,8})$/);
if (matchDelimited) {
return { id: matchDelimited[1], zoneId: matchDelimited[2] };
}
// Parameter kedua terpisah
if (rawZone) {
const id = String(rawId).replace(/[^0-9]/g, "").trim();
const zoneId = String(rawZone).replace(/[^0-9]/g, "").trim();
if (id && zoneId) return { id, zoneId };
}
return null;
}
/**
* Main scraper function: Stalk akun Mobile Legends
* Output: { user, id, zoneId }
* @param {string} id - User ID Mobile Legends atau gabungan ID(Zone)
* @param {string} [zoneId] - Server / Zone ID Mobile Legends
* @returns {Promise<object>}
*/
async function stalkml(id, zoneId) {
const parsed = parseMlInput(id, zoneId);
if (!parsed) {
return {
status: false,
creator: "Vamz Spectre",
message: "Format input tidak valid. Masukkan ID dan Zone ID (contoh: 1114917746 13486 atau 1114917746(13486)).",
};
}
const { id: cleanId, zoneId: cleanZone } = parsed;
// 1. Engine 1: Primary MLBB Inquiry Gateway (~15-30ms)
try {
const res = await request(
`https://mlbb-api.isan.eu.org/find?id=${encodeURIComponent(cleanId)}&zone=${encodeURIComponent(cleanZone)}`,
{ timeout: 3500 }
);
if (res.data?.success && res.data?.name) {
const nickname = String(res.data.name).trim();
return {
status: true,
creator: "Vamz Spectre",
data: {
user: nickname,
id: cleanId,
zoneId: cleanZone,
},
};
}
if (res.data?.success === false && res.data?.message?.toLowerCase().includes("not found")) {
return {
status: false,
creator: "Vamz Spectre",
message: `Akun Mobile Legends dengan ID ${cleanId} (${cleanZone}) tidak ditemukan atau tidak valid.`,
};
}
} catch (err) {}
// 2. Engine 2: Secondary Global Game Resolver (~30-50ms)
try {
const res = await request(
`https://api.isan.eu.org/nickname/ml?id=${encodeURIComponent(cleanId)}&zone=${encodeURIComponent(cleanZone)}`,
{ timeout: 3500 }
);
if (res.data?.success && res.data?.name) {
const nickname = String(res.data.name).trim();
return {
status: true,
creator: "Vamz Spectre",
data: {
user: nickname,
id: cleanId,
zoneId: cleanZone,
},
};
}
if (res.data?.success === false && res.data?.message?.toLowerCase().includes("not found")) {
return {
status: false,
creator: "Vamz Spectre",
message: `Akun Mobile Legends dengan ID ${cleanId} (${cleanZone}) tidak ditemukan atau tidak valid.`,
};
}
} catch (err) {}
// 3. Engine 3: Official GoPay Games Inquiry Gateway (~50ms)
try {
const res = await request(
"https://gopay.co.id/games/v1/order/user-account",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
code: "MOBILE_LEGENDS",
data: {
userId: cleanId,
zoneId: cleanZone,
},
}),
timeout: 4000,
}
);
const data = res.data?.data;
if (data && data.username) {
const nickname = decodeURIComponent(String(data.username).replace(/\+/g, " ")).trim();
return {
status: true,
creator: "Vamz Spectre",
data: {
user: nickname,
id: cleanId,
zoneId: cleanZone,
},
};
}
if (
res.status === 404 ||
res.data?.message?.toLowerCase()?.includes("not recognized")
) {
return {
status: false,
creator: "Vamz Spectre",
message: `Akun Mobile Legends dengan ID ${cleanId} (${cleanZone}) tidak ditemukan atau tidak valid.`,
};
}
} catch (err) {}
return {
status: false,
creator: "Vamz Spectre",
message: `Akun Mobile Legends dengan ID ${cleanId} (${cleanZone}) tidak ditemukan atau server game sedang sibuk.`,
};
}
module.exports = { stalkml };
// CLI Execution
if (require.main === module) {
let arg1 = process.argv[2];
let arg2 = process.argv[3];
if (!arg1) {
arg1 = "1114917746";
arg2 = "13486";
}
stalkml(arg1, arg2)
.then((res) => console.log(JSON.stringify(res, null, 2)))
.catch((err) => {
console.error(
JSON.stringify(
{
status: false,
creator: "Vamz Spectre",
message: err.message || "Terjadi kesalahan internal.",
},
null,
2
)
);
process.exit(1);
});
}