scraperjavascript348
Omar-Thing TikTok Profile, Region OSINT & Statistics Inspector
High-speed TikTok OSINT profile scraper & locked region detector with payload seal bypass and proprietary bitwise decryption.
Vamz Spectre16 Okt 2026216 baris kode
Jalankan via Terminal / CLI:
# 1. Download file script
curl -sL "https://code.vamxapi.my.id/snippet/raw/omar-thing-tiktok" -o omar-thing-tiktok.js
# 2. Jalankan script
node omar-thing-tiktok.js
Dependencies npm yang Dibutuhkan:
npm install None (Pure Node.js 18+)Panduan Penggunaan:
curl -sL "https://code.vamxapi.my.id/snippet/raw/omar-thing-tiktok" -o omar-thing-tiktok.js node omar-thing-tiktok.js "tiktok"
omar-thing-tiktok.js(216 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
/**
* Omar-Thing TikTok Profile & Region Inspector
* Author: Vamz Spectre (VamxAPI)
* Target: https://omar-thing.site
*
* Download & Run:
* curl -sL "https://code.vamxapi.my.id/snippet/raw/omar-thing-tiktok" -o omar-thing-tiktok.js
* node omar-thing-tiktok.js "tiktok"
*
* Features:
* - Auto Bypass Payload Sealing & Worker Gateway
* - Proprietary Bitwise Stream Decryption Engine
* - Extracts Full TikTok Profile Info, Verification, Seller Status & Room Live ID
* - Real-time Follower, Following, Likes (Hearts), Video Counts & Locked Region Code
* - Pure Node.js 18+ (Zero External Dependencies)
*/
/**
* Decrypt proprietary hex payload from Omar-Thing worker
* @param {string} hexPayload
* @param {number} hint
* @returns {object}
*/
function decryptResponse(hexPayload, hint) {
const matches = hexPayload.match(/.{2}/g);
if (!matches) throw new Error('Format payload terenkripsi tidak valid');
const encrypted = new Uint8Array(matches.map(h => parseInt(h, 16)));
const seed = hint;
const decrypted = new Uint8Array(encrypted.length);
for (let i = 0; i < encrypted.length; i++) {
let b = encrypted[i];
if (i > 0) b = b ^ (encrypted[i - 1] & 0x3f);
b = ((b >> 3) | (b << 5)) & 0xff;
b = b ^ ((255 - (i % 256)) & 0xff);
b = ((b - 17 + 256) * 43) & 0xff;
b = b ^ ((seed >> (i % 8)) & 0xff);
decrypted[i] = b;
}
const fullStr = new TextDecoder().decode(decrypted);
const MAGIC = '\x02\x1F\x03';
const idx = fullStr.indexOf(MAGIC);
if (idx === -1) throw new Error('Respon worker gagal didekripsi (Magic header mismatch)');
return JSON.parse(fullStr.substring(idx + MAGIC.length));
}
/**
* Request helper with fallback endpoints
* @param {string[]} urls
* @param {object} options
* @returns {Promise<Response>}
*/
async function fetchWithFallback(urls, options = {}) {
let lastError = null;
for (const url of urls) {
try {
const res = await fetch(url, options);
if (res.ok) return res;
if (res.status >= 500 || res.status === 429) continue;
return res;
} catch (err) {
lastError = err;
}
}
throw lastError || new Error('Semua endpoint gateway gagal dihubungi');
}
/**
* Scrape TikTok user profile & region details via Omar-Thing worker
* @param {string} inputUsername
* @returns {Promise<object>}
*/
async function omarThingTikTok(inputUsername) {
const username = String(inputUsername || '').trim().replace(/^@/, '');
if (!username) {
throw new Error('Username TikTok wajib diisi');
}
const sealRes = await fetchWithFallback(
[
'https://dev.omar-thing.site/api/v1/seal',
'https://for.omar-thing.site/api/seal'
],
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
'Origin': 'https://omar-thing.site',
'Referer': 'https://omar-thing.site/'
},
body: JSON.stringify({ username })
}
);
if (!sealRes.ok) {
throw new Error(`Inisialisasi seal gagal: HTTP ${sealRes.status}`);
}
const sealData = await sealRes.json();
if (!sealData || !sealData.s) {
throw new Error('Gagal mendapatkan token seal enkripsi dari server');
}
const workerRes = await fetchWithFallback(
[
'https://worker.omar-thing.site/',
'https://for.omar-thing.site/test'
],
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
'Origin': 'https://omar-thing.site',
'Referer': 'https://omar-thing.site/'
},
body: JSON.stringify({
sealed: sealData.s,
seal_id: sealData.id
})
}
);
if (!workerRes.ok) {
const errText = await workerRes.text().catch(() => '');
throw new Error(`Worker error HTTP ${workerRes.status}: ${errText || 'User tidak ditemukan'}`);
}
const responseJson = await workerRes.json();
let data;
if (responseJson.p && responseJson.h !== undefined) {
data = decryptResponse(responseJson.p, responseJson.h);
} else {
data = responseJson;
}
if (!data || data.error || !data.nickname) {
throw new Error(data?.error || `Akun TikTok @${username} tidak ditemukan atau private`);
}
return {
status: true,
author: 'Vamz Spectre',
result: {
username: data.username || username,
nickname: data.nickname || '',
userId: data.userId || '',
secUid: data.secUid || '',
region: data.userRegionCode || data.region || 'Unknown',
language: data.language || '',
bio: data.about || '',
bioLink: data.bioLink || '',
avatar: data.avatar || '',
isVerified: data.isVerified === 'Yes' || data.isVerified === true,
isPrivate: data.isPrivate === 'Yes' || data.privateAccount === true,
isLive: data.isLive === 'Yes' || data.isLive === true,
roomId: data.roomId || '',
accountCreated: data.accountCreated || '',
stats: {
followers: Number(data.stats?.followers || 0),
following: Number(data.stats?.following || 0),
hearts: Number(data.stats?.hearts || 0),
videos: Number(data.stats?.videos || 0),
friends: Number(data.stats?.friends || 0)
}
}
};
}
// CLI Execution Support
if (require.main === module) {
const arg = process.argv[2];
if (!arg) {
console.log(
JSON.stringify(
{
status: false,
error: 'Parameter username TikTok belum diisi.',
usage: 'node omar-thing-tiktok.js "<username>"',
example: 'node omar-thing-tiktok.js "tiktok"'
},
null,
2
)
);
process.exit(1);
}
omarThingTikTok(arg)
.then(result => {
console.log(JSON.stringify(result, null, 2));
process.exit(0);
})
.catch(err => {
console.error(
JSON.stringify(
{
status: false,
error: err.message || String(err)
},
null,
2
)
);
process.exit(1);
});
}
module.exports = omarThingTikTok;