scraperjavascript4016
BypassTools - AdLink, Key System & Script Database Scraper
Scraper dan data extractor untuk platform bypass.tools. Mendukung scraping metadata landing page, layanan pemendek iklan & sistem kunci yang didukung (Linkvertise, LootLabs, Work.ink, Delta Key), trending scripts, katalog executor, daftar domain berisiko, serta implementasi decipher XOR untuk LootLabs.
Vamz Spectre13 Okt 2026465 baris kode
Jalankan via Terminal / CLI:
# 1. Download file script
curl -sL "https://code.vamxapi.my.id/snippet/raw/bypass-tools-scraper" -o bypass-tools-scraper.js
# 2. Jalankan script
node bypass-tools-scraper.js
Panduan Penggunaan:
node bypass-tools-scraper.js "https://bypass.tools/id"
bypass-tools-scraper.js(465 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
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
/**
* ========================================================
* Name: BypassTools Scraper & AdLink / Key System Metadata Resolver
*
* Cara Download:
* curl -sL "https://code.vamxapi.my.id/snippet/raw/bypass-tools-scraper" -o bypass-tools-scraper.js
*
* Cara Eksekusi:
* node bypass-tools-scraper.js "https://direct-link.net/9744742/JoFmYONg6cLN"
* node bypass-tools-scraper.js "https://bypass.tools/id"
*
* Author: Vamz Spectre
* Source: https://vamxapi.my.id
* ========================================================
*/
const BASE_URL = "https://bypass.tools";
const DEFAULT_HEADERS = {
"User-Agent":
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
Accept: "application/json, text/html, */*",
"Accept-Language": "id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7",
};
const LINKVERTISE_DOMAINS = [
"linkvertise.com",
"linkvertise.net",
"direct-link.net",
"link-to.net",
"link-target.net",
"up-to-down.net",
"file-link.net",
];
/**
* 1. Scrape Metadata, Layanan Didukung, Statistik & FAQ dari Landing Page
*/
async function scrapeMetadata(lang = "id") {
const targetPath = lang === "en" ? "/" : `/${lang}`;
const res = await fetch(`${BASE_URL}${targetPath}`, {
headers: DEFAULT_HEADERS,
});
if (!res.ok) {
throw new Error(`Gagal mengakses bypass.tools (${res.status})`);
}
const html = await res.text();
// Parse Title & Meta Description
const titleMatch = html.match(/<title[^>]*>([^<]+)<\/title>/i);
const descMatch = html.match(
/<meta[^>]*name=["']description["'][^>]*content=["']([^"']+)["']/i
);
const keywordsMatch = html.match(
/<meta[^>]*name=["']keywords["'][^>]*content=["']([^"']+)["']/i
);
// Parse JSON-LD FAQ Data
const jsonLdMatches = html.match(
/<script[^>]*type=["']application\/ld\+json["'][^>]*>([\s\S]*?)<\/script>/gi
);
let faqs = [];
if (jsonLdMatches) {
for (const block of jsonLdMatches) {
try {
const rawJson = block.replace(/<script[^>]*>|<\/script>/gi, "").trim();
const parsed = JSON.parse(rawJson);
if (parsed["@type"] === "FAQPage" && Array.isArray(parsed.mainEntity)) {
faqs = parsed.mainEntity.map((item) => ({
question: item.name,
answer: item.acceptedAnswer?.text || "",
}));
}
} catch {}
}
}
// Parse Supported Services
const supportedServices = [
"Linkvertise",
"LootLabs",
"Work.ink",
"Delta Executor Key System",
"Hydrogen",
"Luarmor",
"Lockr.so",
"Rapid-Links",
"Safelink / Shortlinks",
"Key Systems (Roblox / Android / PC)",
];
return {
status: true,
platform: "bypass.tools",
url: `${BASE_URL}${targetPath}`,
title: titleMatch ? titleMatch[1].replace(/&/g, "&").trim() : "Bypass Tools",
description: descMatch
? descMatch[1].replace(/&/g, "&").trim()
: "Alat bypass shortlink dan sistem kunci iklan.",
keywords: keywordsMatch ? keywordsMatch[1].split(",").map((k) => k.trim()) : [],
supported_services: supportedServices,
statistics: {
links_bypassed: "6M+",
availability: "24/7 Always online",
supported_count: "50+ shorteners & key systems",
},
faqs,
extension_download: `${BASE_URL}/api/extension/download`,
};
}
/**
* 2. Bypass / Resolver Linkvertise & Direct-Link
*/
async function resolveLinkvertise(inputUrl) {
let resolvedUrl = inputUrl.trim();
// Resolve redirect jika menggunakan alias domain
try {
const headRes = await fetch(resolvedUrl, {
method: "GET",
headers: {
"User-Agent": DEFAULT_HEADERS["User-Agent"],
},
redirect: "manual",
});
const loc = headRes.headers.get("location");
if (loc) {
resolvedUrl = new URL(loc, resolvedUrl).href;
}
} catch {}
const parsed = new URL(resolvedUrl);
const parts = parsed.pathname.split("/").filter(Boolean);
const userId = parts[0] === "access" ? parts[1] : parts[0];
const slug = parts[0] === "access" ? parts[2] : parts[1];
if (!userId || !slug) {
throw new Error("Format URL Linkvertise tidak valid (harus mengandung user_id dan slug)");
}
const query = `
query getLink($input: PublicLinkIdentificationInput!) {
linkByIdentifier(linkIdentificationInput: $input) {
id
url
target_host
target_type
title
is_premium_only
view_count
description
href
publisher {
id
name
}
}
getContent(input: $input) {
... on DetailPageTargetData {
type
url
paste
}
}
}
`;
const gqlRes = await fetch("https://publisher.linkvertise.com/graphql", {
method: "POST",
headers: {
"Content-Type": "application/json",
"User-Agent": DEFAULT_HEADERS["User-Agent"],
Origin: "https://linkvertise.com",
Referer: "https://linkvertise.com/",
},
body: JSON.stringify({
query,
variables: {
input: {
userIdAndUrl: { user_id: String(userId), url: String(slug) },
},
},
}),
});
const gqlJson = await gqlRes.json();
const linkData = gqlJson.data?.linkByIdentifier || {};
const contentData = gqlJson.data?.getContent || {};
let targetUrl = contentData?.url || null;
let pasteContent = contentData?.paste || null;
if (!targetUrl && linkData.target_host) {
targetUrl = linkData.target_host.startsWith("http")
? linkData.target_host
: `https://${linkData.target_host}`;
}
return {
status: true,
provider: "linkvertise",
input_url: inputUrl,
resolved_url: resolvedUrl,
title: linkData.title || null,
destination: targetUrl,
target_host: linkData.target_host || null,
paste_content: pasteContent,
target_type: linkData.target_type || "URL",
is_premium_only: Boolean(linkData.is_premium_only),
view_count: linkData.view_count || 0,
publisher: linkData.publisher || null,
};
}
/**
* 3. Ambil Trending Gaming / Roblox Scripts
*/
async function getTrendingScripts() {
const res = await fetch(`${BASE_URL}/api/scripts/trending`, {
headers: DEFAULT_HEADERS,
});
if (!res.ok) {
throw new Error(`Gagal mengambil data trending (${res.status})`);
}
const data = await res.json();
const scripts = data.result?.scripts || [];
return {
status: true,
total: scripts.length,
scripts: scripts.map((s) => ({
id: s._id,
title: s.metadata?.title || s.title,
slug: s.metadata?.slug || s.slug,
views: s.metadata?.views || 0,
likes: s.metadata?.likes || 0,
mobile_ready: s.metadata?.mobileReady ?? false,
key_system: s.metadata?.keySystem ?? false,
raw_script_url: s.metadata?.rawScript || null,
game_image: s.metadata?.image || null,
tested_executors: (s.metadata?.testedExecutors || []).map((e) => ({
name: e.title,
platform: e.platforms,
})),
creator: s.metadata?.user?.username || s.creator || "Anonymous",
created_at: s.createdAt,
})),
};
}
/**
* 4. Cari Script Berdasarkan Keyword
*/
async function searchScripts(query) {
const cleanQ = (query || "").trim();
if (!cleanQ) {
throw new Error("Parameter query pencarian tidak boleh kosong.");
}
const res = await fetch(
`${BASE_URL}/api/scripts/search?q=${encodeURIComponent(cleanQ)}`,
{
headers: DEFAULT_HEADERS,
}
);
if (!res.ok) {
throw new Error(`Gagal mencari script (${res.status})`);
}
const data = await res.json();
const scripts = data.result?.scripts || [];
return {
status: true,
query: cleanQ,
total: scripts.length,
scripts: scripts.map((s) => ({
id: s._id,
title: s.metadata?.title || s.title,
slug: s.metadata?.slug || s.slug,
views: s.metadata?.views || 0,
likes: s.metadata?.likes || 0,
mobile_ready: s.metadata?.mobileReady ?? false,
raw_script_url: s.metadata?.rawScript || null,
game_image: s.metadata?.image || null,
creator: s.metadata?.user?.username || s.creator || "Anonymous",
})),
};
}
/**
* 5. Ambil Daftar Executor Game & Roblox yang Didukung
*/
async function getExecutors() {
const res = await fetch(`${BASE_URL}/api/executors`, {
headers: DEFAULT_HEADERS,
});
if (!res.ok) {
throw new Error(`Gagal mengambil daftar executor (${res.status})`);
}
const executors = await res.json();
return {
status: true,
total: Array.isArray(executors) ? executors.length : 0,
executors: (Array.isArray(executors) ? executors : []).map((e) => ({
id: e._id,
name: e.title,
slug: e.slug,
platforms: e.platforms || [],
downloads: e.downloads || 0,
download_url: e.download_url || null,
price: e.price ?? 0,
creator: e.creator || null,
discord: e.discord_url || null,
})),
};
}
/**
* 6. Ambil Daftar Domain Berisiko / Blacklist
*/
async function getRiskyDomains() {
const res = await fetch(`${BASE_URL}/api/risky-domains`, {
headers: DEFAULT_HEADERS,
});
if (!res.ok) {
throw new Error(`Gagal mengambil domain berisiko (${res.status})`);
}
const domains = await res.json();
return {
status: true,
total: Array.isArray(domains) ? domains.length : 0,
domains,
};
}
/**
* 7. Reverse-Engineered LootLabs XOR Cipher Decryptor
* Dibuat dari client engine BypassTools untuk memecahkan payload terenkripsi LootLabs
*/
function solveLootlabsPayload(rawToken) {
if (!rawToken || typeof rawToken !== "string") {
throw new Error("Token payload LootLabs wajib disertakan!");
}
try {
const raw = Buffer.from(
rawToken.replace(/[^\x20-\x7E]/g, "").trim(),
"base64"
).toString("binary");
const key = raw.substring(0, 5);
const data = raw.substring(5);
let out = "";
for (let i = 0; i < data.length; i++) {
out += String.fromCharCode(data.charCodeAt(i) ^ key.charCodeAt(i % 5));
}
const isValid = /^https?:\/\//i.test(out);
return {
status: true,
decrypted_url: isValid ? out : null,
raw_output: out,
is_valid_url: isValid,
};
} catch (err) {
throw new Error(`Gagal mendeskripsi payload LootLabs: ${err.message}`);
}
}
/**
* Universal Dispatcher untuk CLI & API
*/
async function runBypassTools(target, option = "") {
const clean = (target || "").trim();
if (!clean || clean === "info" || (clean.startsWith("http") && clean.includes("bypass.tools"))) {
const lang = clean.includes("/en") ? "en" : "id";
return await scrapeMetadata(lang);
}
// Jika input berupa link iklan Linkvertise atau direct-link
if (
clean.startsWith("http://") ||
clean.startsWith("https://")
) {
const lower = clean.toLowerCase();
const isLinkvertise = LINKVERTISE_DOMAINS.some((d) => lower.includes(d));
if (isLinkvertise) {
return await resolveLinkvertise(clean);
}
}
if (clean === "trending" || clean === "scripts") {
return await getTrendingScripts();
}
if (clean === "executors" || clean === "executor") {
return await getExecutors();
}
if (clean === "risky" || clean === "blacklist") {
return await getRiskyDomains();
}
if (clean === "solve-lootlabs" || clean === "lootlabs") {
return solveLootlabsPayload(option);
}
if (clean === "search") {
return await searchScripts(option);
}
// Jika berupa query biasa, jalankan pencarian script
return await searchScripts(clean);
}
// CommonJS export
if (typeof module !== "undefined" && module.exports) {
module.exports = {
runBypassTools,
scrapeMetadata,
resolveLinkvertise,
getTrendingScripts,
searchScripts,
getExecutors,
getRiskyDomains,
solveLootlabsPayload,
};
}
/**
* CLI Runner:
* Langsung eksekusi via terminal:
* node bypass-tools-scraper.js "https://direct-link.net/9744742/JoFmYONg6cLN"
* node bypass-tools-scraper.js "https://bypass.tools/id"
* node bypass-tools-scraper.js "trending"
* node bypass-tools-scraper.js "executors"
*/
const arg1 = process.argv[2];
const arg2 = process.argv[3];
if (arg1) {
runBypassTools(arg1, arg2)
.then((res) => {
console.log(JSON.stringify(res, null, 2));
})
.catch((err) => {
console.error(JSON.stringify({ status: false, error: err.message }, null, 2));
process.exit(1);
});
} else if (process.argv[1] && process.argv.length <= 2) {
console.log("Usage: node bypass-tools-scraper.js \"<url|info|trending|executors|search>\" [extra_arg]");
}