aijavascript9747
DarkGPT - Uncensored AI Chat Scraper (Bypass No-OTP Registration)
Scraper AI Chat uncensored dari platform DarkGPT (model Qwen 3.5 / 3.8 Abliterated) dengan exploit auto-register instan tanpa OTP untuk akses unlimit.
Vamz Spectre26 Okt 2026278 baris kode
Jalankan via Terminal / CLI:
# 1. Download file script
curl -sL "https://code.vamxapi.my.id/snippet/raw/darkgpt-ai" -o darkgpt-ai.js
# 2. Jalankan script
node darkgpt-ai.js
Dependencies npm yang Dibutuhkan:
npm install axiosPanduan Penggunaan:
curl -sL https://code.vamxapi.my.id/snippet/raw/darkgpt-ai -o darkgpt-ai.js && node darkgpt-ai.js "Halo siapa kamu?"
darkgpt-ai.js(278 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
/**
* Scraper: DarkGPT AI Uncensored Chat Scraper (Bypass No-OTP & Auto-Rotate Infinite Trial)
* Author: Vamz Spectre (vamxapi.my.id)
* Description: Scrape AI Chat uncensored dari DarkGPT (Qwen 3.5 / 3.8 Abliterated) dengan exploit auto-register instant tanpa OTP & auto-rotate session saat limit trial 3 respon habis (anti 402 trial_exhausted & anti 429).
*
* Usage:
* curl -sL "https://code.vamxapi.my.id/snippet/raw/darkgpt-ai" -o darkgpt-ai.js
* node darkgpt-ai.js "Siapa kamu dan apa kemampuanmu?"
* node darkgpt-ai.js "Buatkan rencana penyerangan cyber fiktif" "qwen3.8-27b-abliterated"
*/
const fs = require('fs');
const path = require('path');
const os = require('os');
const crypto = require('crypto');
const { execSync } = require('child_process');
const BASE_URL = 'https://darkgpt.tech';
const SESSION_FILE = path.join(os.homedir(), '.darkgpt_session.json');
/**
* Baca session tersimpan dari cache
*/
function loadCachedSession() {
try {
if (fs.existsSync(SESSION_FILE)) {
const data = JSON.parse(fs.readFileSync(SESSION_FILE, 'utf8'));
if (data && data.cookie) return data;
}
} catch (_) {}
return null;
}
/**
* Simpan session ke cache
*/
function saveCachedSession(sessionData) {
try {
fs.writeFileSync(SESSION_FILE, JSON.stringify(sessionData, null, 2), 'utf8');
} catch (_) {}
}
/**
* Hapus session jika trial habis (402) atau expired (401)
*/
function clearCachedSession() {
try {
if (fs.existsSync(SESSION_FILE)) fs.unlinkSync(SESSION_FILE);
} catch (_) {}
}
/**
* Ekstrak session token dari header respons
*/
function extractSessionCookie(headers) {
let sessionCookie = '';
const setCookies = typeof headers.getSetCookie === 'function'
? headers.getSetCookie()
: [headers.get('set-cookie')].filter(Boolean);
for (const cookieStr of setCookies) {
if (cookieStr.includes('better-auth.session_token=')) {
sessionCookie = cookieStr.split(';')[0].trim();
break;
}
}
return sessionCookie;
}
/**
* Register akun baru via curl socks5 Tor fallback jika IP terkena 429
*/
function registerViaProxyFallback(account) {
try {
const bodyStr = JSON.stringify(account).replace(/'/g, "'\\''");
const cmd = `curl -s -i -x socks5h://127.0.0.1:9050 ${BASE_URL}/api/auth/sign-up/email \
-H "Content-Type: application/json" \
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" \
-H "Origin: ${BASE_URL}" \
-H "Referer: ${BASE_URL}/" \
-d '${bodyStr}' --max-time 15`;
const raw = execSync(cmd, { stdio: ['pipe', 'pipe', 'ignore'] }).toString();
const match = raw.match(/set-cookie:\s*(__Secure-better-auth\.session_token=[^;\r\n]+)/i)
|| raw.match(/set-cookie:\s*(better-auth\.session_token=[^;\r\n]+)/i);
if (match) {
const cookie = match[1].trim();
const bodyPart = raw.split(/\r?\n\r?\n/).pop() || '{}';
let json = {};
try { json = JSON.parse(bodyPart); } catch (_) {}
return {
token: json.token || '',
cookie,
user: json.user || account
};
}
} catch (_) {}
return null;
}
/**
* Register akun anonymous baru (No OTP Bug)
*/
async function registerAnonymousAccount() {
const randomHex = crypto.randomBytes(4).toString('hex');
const account = {
name: `user_${randomHex}`,
email: `dark_${randomHex}_${Date.now()}@inboxmail.test`,
password: `Pass_${randomHex}!2026`
};
const url = `${BASE_URL}/api/auth/sign-up/email`;
const headers = {
'Content-Type': 'application/json',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36',
'Origin': BASE_URL,
'Referer': `${BASE_URL}/`
};
try {
const response = await fetch(url, {
method: 'POST',
headers,
body: JSON.stringify(account)
});
if (response.ok) {
let cookie = extractSessionCookie(response.headers);
const data = await response.json();
const token = data?.token || '';
if (!cookie && token) cookie = `__Secure-better-auth.session_token=${token}`;
const session = { token, cookie, user: data?.user || {}, savedAt: Date.now() };
saveCachedSession(session);
return session;
}
} catch (_) {}
// Fallback jika direct request terkena 429
const proxySession = registerViaProxyFallback(account);
if (proxySession && proxySession.cookie) {
saveCachedSession(proxySession);
return proxySession;
}
throw new Error("Gagal registrasi akun baru di DarkGPT (Limit pendaftaran).");
}
/**
* Dapatkan sesi aktif atau buat baru
*/
async function getOrRenewSession(forceNew = false) {
if (!forceNew) {
const cached = loadCachedSession();
if (cached && cached.cookie) return cached;
}
return await registerAnonymousAccount();
}
/**
* Kirim chat prompt ke DarkGPT dengan auto-rotate trial limit (HTTP 402)
* @param {string} prompt
* @param {string} modelId
* @returns {Promise<Object>}
*/
async function chatDarkGPT(prompt, modelId = 'qwen3.5-9b-abliterated') {
if (!prompt || typeof prompt !== 'string') {
throw new Error("Prompt pertanyaan wajib disertakan.");
}
let auth = await getOrRenewSession();
const conversationId = crypto.randomUUID();
const messageId = crypto.randomUUID();
const payload = {
id: conversationId,
conversationId: conversationId,
modelId: modelId,
webSearch: false,
trigger: 'submit-message',
messageId: messageId,
messages: [
{
id: messageId,
role: 'user',
content: prompt.trim(),
parts: [{ type: 'text', text: prompt.trim() }]
}
]
};
const sendRequest = async (cookie) => {
return await fetch(`${BASE_URL}/api/chat`, {
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/124.0.0.0 Safari/537.36',
'Origin': BASE_URL,
'Referer': `${BASE_URL}/c/${conversationId}`,
'Cookie': cookie
},
body: JSON.stringify(payload)
});
};
let response = await sendRequest(auth.cookie);
// Jika trial habis (HTTP 402) atau sesi expired (HTTP 401), auto-rotate akun baru
if (response.status === 402 || response.status === 401) {
clearCachedSession();
auth = await getOrRenewSession(true);
response = await sendRequest(auth.cookie);
}
if (!response.ok) {
const errorText = await response.text();
throw new Error(`DarkGPT chat error (HTTP ${response.status}): ${errorText}`);
}
const rawStream = await response.text();
const lines = rawStream.split('\n');
let fullAnswer = '';
let modelMetadata = null;
for (const line of lines) {
const trimmed = line.trim();
if (!trimmed.startsWith('data:')) continue;
const jsonStr = trimmed.replace(/^data:\s*/, '').trim();
if (!jsonStr || jsonStr === '[DONE]') continue;
try {
const parsed = JSON.parse(jsonStr);
if (parsed.type === 'start' && parsed.messageMetadata) {
modelMetadata = parsed.messageMetadata;
} else if (parsed.type === 'text-delta' && typeof parsed.delta === 'string') {
fullAnswer += parsed.delta;
}
} catch (_) {}
}
return {
status: true,
creator: 'Vamz Spectre',
result: {
model: modelMetadata?.modelId || modelId,
modelLabel: modelMetadata?.modelLabel || 'Qwen Abliterated',
provider: modelMetadata?.providerId || 'featherless',
prompt: prompt.trim(),
answer: fullAnswer.trim(),
conversationId,
sessionToken: auth.token
}
};
}
module.exports = chatDarkGPT;
// CLI Runner
if (require.main === module) {
const queryPrompt = process.argv[2] || 'Ceritakan kisah singkat tentang hacker di era cyber dystopia.';
const selectedModel = process.argv[3] || 'qwen3.5-9b-abliterated';
chatDarkGPT(queryPrompt, selectedModel)
.then(res => console.log(JSON.stringify(res, null, 2)))
.catch(err => {
console.error(JSON.stringify({
status: false,
creator: 'Vamz Spectre',
error: err.message || 'Gagal mengeksekusi request DarkGPT'
}, null, 2));
process.exit(1);
});
}