-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
312 lines (255 loc) · 9.85 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
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
//libs
const fs = require('fs');
const StealthPlugin = require('puppeteer-extra-plugin-stealth')
const randchars = require("crypto")
const puppeteer = require('puppeteer-extra')
const RecaptchaPlugin = require('puppeteer-extra-plugin-recaptcha')
const { uniqueNamesGenerator, NumberDictionary } = require('unique-names-generator')
const { PuppeteerBlocker } = require('@cliqz/adblocker-puppeteer')
const {fetch} = require('cross-fetch')
const ps = require('prompt-sync')
const prompt = ps();
const colors = require('colors');
const setTitle = require('node-bash-title');
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
setTitle('Luxury Services Generator | V.4');
async function main(){
console.clear()
'use-scrict';
console.log(`
Luxury Services Twitch Generator
\x1b[37m[\x1b[31m1\x1b[37m] Generation
\x1b[37m[\x1b[31m2\x1b[37m] Exit
`);
let choice = prompt(' \x1b[37m[ OPTION ] ')
if(choice == 1){
console.log('')
console.log(' ['+'1'.brightRed+'] Temp-mail');
console.log(' ['+'2'.brightRed+'] 10minemail');
console.log(' ['+'3'.brightRed+'] Gmails');
console.log('')
let emailchoice = prompt(' \x1b[37m[ OPTION ] ');
let tokensname = prompt(' \x1b[37m[ CONFIG ] Token Username? ');
let HowTokens = prompt(' \x1b[37m[ CONFIG ] How many tokens? ');
const cfg = {
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-infobars',
'--window-position=0,0',
'--window-size=1366,768',
],
defaultViewport: null,
ignoreHTTPSErrors: true,
headless: false,
}
puppeteer.use(StealthPlugin())
puppeteer.use(
RecaptchaPlugin({
provider: {
id: '2captcha',
token: ''
},
visualFeedback: true,
throwOnError: true
})
)
const accounts = fs.createWriteStream('tokens.txt', {flags:'a'})
async function dsne(page, infoname, info){
const p = await page.$('input[name=' + infoname + ']');
await p.focus();
await page.keyboard.type(info);
}
async function cli(page, name, min, max) {
var i = await page.$('[class*=input' + name + "]");
if (i === null) {
i = await page.$("[class*=" + name + "]");
}
await i.click();
var r = Math.floor(Math.random() * (max - min + 1)) + min;
await page.waitForSelector('[class*=option]');
await page.$eval("[class$=option]", function(e, r){e.parentNode.childNodes[r].click()}, r);
return r
}
async function discordInput(dspagee, username, password, email){
await dspagee.bringToFront();
await dspagee.goto('https://discord.com/register', {"waitUntil" : "networkidle0", timeout: 70000});
await cli(dspagee, "year", 17, 24);
await cli(dspagee, "day", 0, 28);
await cli(dspagee, "month", 0, 11);
dspagee.waitForSelector('input[type*=checkbox]').then(() => {
dspagee.$eval('input[type*=checkbox]', el => el.click());
}).catch(e => {});
await dsne(dspagee, "username", username);
await dsne(dspagee, "password", password);
await dsne(dspagee, "email", email);
await dspagee.$eval('button[type=submit]', (el) => el.click());
}
async function captchaby(DiscordPage){
try {
await DiscordPage.waitForSelector('[src*=sitekey]');
await DiscordPage.addScriptTag({content: `hcaptcha.execute()`})
while(true){
try{
await DiscordPage.solveRecaptchas();
return true;
} catch(err) {
sleep(3000);
}
}
} catch(e){
};
}
async function genmail(page2){
if(emailchoice == 1){
PuppeteerBlocker.fromPrebuiltAdsAndTracking(fetch).then((blocker) => {
blocker.enableBlockingInPage(page2);
});
await page2.bringToFront();
await page2.goto("https://temp-mail.org/", { waitUntil: 'networkidle2', timeout: 0});
var info_id = "#mail";
try {
await page2.waitForSelector(info_id);
await page2.waitForFunction((info_id) => document.querySelector(info_id).value.indexOf("@") != -1, {}, info_id);
var email = await page2.$eval('#mail', el => el.value);
return email;
} catch(e){
return false;
}}
else if(emailchoice == 2){
PuppeteerBlocker.fromPrebuiltAdsAndTracking(fetch).then((blocker) => {
blocker.enableBlockingInPage(page2);
});
await page2.bringToFront();
await page2.goto("https://10minemail.com/", { waitUntil: 'networkidle2', timeout: 0});
var info_id = "#mail";
try {
await page2.waitForSelector(info_id);
await page2.waitForFunction((info_id) => document.querySelector(info_id).value.indexOf("@") != -1, {}, info_id);
var email = await page2.$eval('#mail', el => el.value);
return email;
} catch(e){
return false;
}}
else if(emailchoice == 3){
PuppeteerBlocker.fromPrebuiltAdsAndTracking(fetch).then((blocker) => {
blocker.enableBlockingInPage(page2);
});
await page2.bringToFront();
await page2.goto("https://tempmail.dev/en/Gmail", { waitUntil: 'networkidle2', timeout: 0});
var info_id = "#current-mail";
try {
await page2.waitForSelector('#current-mail');
const element = await page2.$("#current-mail");
const email = await page2.evaluate(element => element.textContent, element);
return email;
} catch(e){
return false;
}
}
}
async function emailvery(page2){
await page2.bringToFront();
if(emailchoice == 1){
while(true){
try {
await page2.waitForSelector('[title*=Discord]', {timeout: 500});
await page2.$eval('[title*=Discord]', e => e.parentNode.click());
await page2.waitForSelector("td > a[href*='discord'][style*=background]");
const elem = await page2.$eval("td > a[href*='discord'][style*=background]", el => el.href);
return elem;
} catch(e){};
}
}else if(emailchoice == 2){
while(true){
try {
await page2.waitForSelector('[title*=Discord]', {timeout: 500});
await page2.$eval('[title*=Discord]', e => e.parentNode.click());
await page2.waitForSelector("td > a[href*='discord'][style*=background]");
const elem = await page2.$eval("td > a[href*='discord'][style*=background]", el => el.href);
return elem;
} catch(e){};
}
}else if(emailchoice == 3){
while(true){
try {
await page2.waitForSelector('#inbox-dataList');
await page2.click('#inbox-dataList');
await page2.waitForSelector("td > a[href*='discord'][style*=background]");
const elem = await page2.$eval("td > a[href*='discord'][style*=background]", el => el.href);
return elem;
} catch(e){};
}
}
}
async function verif2(chrom, link){
const page = await chrom.newPage();
await page.goto(link, {"waitUntil" : "networkidle0", "timeout": 60000});
captchaby(page);
await sleep(12000)
}
const nickname = [
`| ${tokensname}`
];
const numberDictionary = NumberDictionary.generate({ min: 1, max: 99999, length: 6, });
async function create_accinfos(chrome, disc) {
const username = uniqueNamesGenerator({dictionaries: [numberDictionary, nickname], separator: ' ', style: "capital",length: 2,});
const password = randchars.randomBytes(10).toString('hex');
const page2 = (await chrome.pages())[0];
var email;
while(!email){
try {
email = await genmail(page2);
} catch(e){};
}
const dspage = disc;
await discordInput(dspage, username, password, email);
const client = disc._client;
var token;
client.on('Network.webSocketFrameSent', ({response}) => {
try {
const json = JSON.parse(response.payloadData);
if(!token && json["d"]["token"]){
token = json["d"]["token"];
};
} catch(e){};
})
await captchaby(dspage);
let verifyy = await emailvery(page2);
console.log(' \x1b[37m[ PASSED ]')
await verif2(chrome, verifyy);
//Write token to tokensonly.txt
fs.appendFileSync('tokensonly.txt', `${token}\n`);
return `${username}:${email}:${password}:${token}:discord.gg/lboost`;
}
(async () => {
var token;
for (let i = 0; i < HowTokens; i++) {
const browser = await puppeteer.launch(cfg);
try {
const page = await browser.newPage();
const infos = await create_accinfos(browser, page);
accounts.write(infos + "\n");
} catch(e) {
console.log(e);
} finally {
try{
browser.close();
await sleep(101500)
} catch(e){};
}
}
})();
}
else if(choice == 2){
await sleep(1000);
}
else{
console.log(' \x1b[37m[ ERROR ]');
sleep(1100)
main()
}
}
main()