initial commit

This commit is contained in:
Omer Sabic 2023-04-05 11:41:49 +02:00
commit da827c04d7
6 changed files with 3200 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
node_modules
.env
"

101
main.js Normal file
View File

@ -0,0 +1,101 @@
const puppeteer = require('puppeteer-extra');
const proxyChain = require('proxy-chain');
const { generateUsername } = require("unique-username-generator");
// const { hcaptcha } = require("puppeteer-hcaptcha");
const StealthPlugin = require('puppeteer-extra-plugin-stealth')
puppeteer.use(StealthPlugin())
// Set up the proxy server and port
const proxyURL = 'http://154.95.36.199:6893';
// const newProxyURL = proxyChain.anonymizeProxy(proxyURL)
function makeAccount() {
// Set up the Puppeteer browser launch options with the proxy configuration
puppeteer.launch({
headless: false,
args: [
'--disable-setuid-sandbox',
'--no-sandbox',
`--proxy-server=${proxyURL}`,
],
}).then(async browser => {
let user = generateUsername()
const userData = {
username: user,
email: `${user}@spam.omersabic.com`,
password: generatePassword(10)
}
// Use Puppeteer as you normally would
const page = await browser.newPage();
await page.authenticate({
username: 'qjuloybs',
password: 'o2axhmxniph5'
})
await page.goto('https://discord.com/register');
await page.waitForNetworkIdle();
await page.type('input[name="email"]', userData.email);
await page.type('input[name="username"]', userData.username);
await page.type('input[name="password"]', userData.password);
// DOB month
await delay(400);
await page.keyboard.press("Tab");
await page.keyboard.press("Space");
await page.keyboard.press("Enter");
// DOB day
await delay(400);
// await page.keyboard.press("Tab");
await page.keyboard.press("Space");
await page.keyboard.press("Enter");
// DOB year
await delay(400);
// await page.keyboard.press("Tab");
// await page.keyboard.press("Space")
await page.keyboard.type("1990");
await page.keyboard.press("Enter");
// TOS accept
await page.keyboard.press("Tab");
await page.keyboard.press("Space");
// await page.click('button[type=submit]')
// console.log(userData);
// await delay(4000);
// console.log('solving captcha');
// await delay(10000)
// let verifyEmail = await session.findEmailBySender('noreply@discordapp.com')
// console.log(verifyEmail);
})
}
function delay(time) {
return new Promise(function (resolve) {
setTimeout(resolve, time)
});
}
function generatePassword(length) {
const charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+~`|}{[]\:;?><,./-=';
let password = '';
for (let i = 0; i < length; i++) {
password += charset[Math.floor(Math.random() * charset.length)];
}
return password;
}
makeAccount()

3073
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

23
package.json Normal file
View File

@ -0,0 +1,23 @@
{
"name": "account-generator",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@lu-development/gmwrapper": "^1.0.0",
"guerrillamail-api": "^1.2.2",
"proxy-chain": "^2.2.1",
"puppeteer": "^19.7.5",
"puppeteer-extra": "^3.3.6",
"puppeteer-extra-plugin-recaptcha": "^3.6.8",
"puppeteer-extra-plugin-stealth": "^2.11.2",
"puppeteer-hcaptcha": "^4.1.6",
"unique-username-generator": "^1.1.3"
}
}

0
users.txt Normal file
View File

0
verifier-service.js Normal file
View File