-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
265415b
commit e7e759e
Showing
11 changed files
with
279 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,38 @@ | ||
# InstaGen | ||
A simple instagram unverified accounts generator made by Ahad#3257 | ||
|
||
We are using [AntiBotMail](https://antibotmail.com) for emails. | ||
|
||
# How To Use? | ||
> [!WARNING] | ||
> DON'T DELETE ANY FILE | ||
It is easy to use you can follow the steps below: | ||
|
||
Type `npm install` to install all required packages. | ||
|
||
Type `node instagen.js` in console to launch Instagram Accounts Generator. | ||
|
||
You can run `generator.bat`to run this on loop. | ||
|
||
# Instagram Account Generator: | ||
*** | ||
|
||
<p align="center"><img width="600px" src="./assets/account_generator.png"/></p> | ||
|
||
*** | ||
|
||
# Note: | ||
Use it but please give credits to author. | ||
|
||
Skidding this code is not allowed if you see anyone taking credits of this script dm me on discord. | ||
|
||
You can make it email verified generator if you use your brain. | ||
|
||
# Social Media: | ||
[Instagram](https://www.instagram.com/ahadnoor._) ・ | ||
[Discord](https://discord.gg/balochistan) ・ | ||
[Website](https://www.itscruel.cf/) | ||
|
||
# Discord: Ahad#3257 | ||
If you liked this repo please don't forget to give it a star it would mean a lot. |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
antibotmail_api_key: "", // Antibotmail api key, you can get it from https://antibotmail.com | ||
mailProvider: "HOTMAIL" // you can set it HOTMAIL or OUTLOOK | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@echo off | ||
title Instagram Account Generator Made By Ahad#3257 | ||
:START | ||
node instagen.js | ||
goto START |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,195 @@ | ||
// Importing packages | ||
const puppeteer = require('puppeteer-extra'); | ||
const StealthPlugin = require('puppeteer-extra-plugin-stealth'); | ||
const { uniqueNamesGenerator, names } = require('unique-names-generator'); | ||
const fs = require('fs'); | ||
const crypto = require('crypto'); | ||
const axios = require('axios'); | ||
|
||
// Importing mail provider and antibotmail's api key, you can found it from https://antibotmail.com/dashboard/account/personal | ||
const { antibotmail_api_key, mailProvider } = require("./config"); | ||
|
||
// Setting browser's configuration. | ||
const BROWSER_CONFIG = { | ||
product: 'chrome', | ||
args: [ | ||
'--no-sandbox', | ||
'--disable-setuid-sandbox', | ||
'--disable-infobars', | ||
'--window-position=0,0', | ||
'--window-size=1600,900', | ||
'--disable-features=IsolateOrigins,site-per-process,SitePerProcess', | ||
'--flag-switches-begin --disable-site-isolation-trials --flag-switches-end' | ||
], | ||
defaultViewport: null, | ||
ignoreHTTPSErrors: true, | ||
headless: false, | ||
}; | ||
|
||
// Using puppeteer's stealth plugin | ||
puppeteer.use(StealthPlugin()); | ||
|
||
// Making loggers. | ||
const o = fs.createWriteStream('./stdout.log', { flags: 'a' }); | ||
const errorOutput = fs.createWriteStream('./stderr.log', { flags: 'a' }); | ||
const accounts = fs.createWriteStream('accounts.txt', { flags: 'a' }); | ||
const logger = new console.Console(o, errorOutput); | ||
|
||
const t0 = process.hrtime(); | ||
function write_log(goodnews, text) { | ||
const t1 = process.hrtime(t0); | ||
const time = (t1[0] * 1000000000 + t1[1]) / 1000000000; | ||
const color = goodnews ? "\x1b[32m" : "\x1b[31m"; | ||
|
||
console.log(`${color} [LOG - ${time}s] \x1b[37m ${text}`); | ||
logger.log(`[LOG - ${time}s] ${text}`); | ||
} | ||
|
||
// Code begin | ||
|
||
async function fill_input(page, selector, info) { | ||
await page.waitForSelector(selector, { timeout: 60000 }); | ||
await page.focus(selector); | ||
await page.keyboard.type(info); | ||
} | ||
|
||
async function fill_instagram_signup(page, username, password, email) { | ||
try { | ||
await page.goto('https://www.instagram.com/', { waitUntil: 'networkidle0', timeout: 120000 }); | ||
write_log(true, "Navigated to Instagram homepage"); | ||
|
||
await page.waitForSelector('a[href="/accounts/emailsignup/"]'); | ||
await page.click('a[href="/accounts/emailsignup/"]'); | ||
write_log(true, "Clicked on signup link"); | ||
|
||
await page.waitForSelector('input[name="emailOrPhone"]'); | ||
await fill_input(page, 'input[name="emailOrPhone"]', email); | ||
write_log(true, "Filled email"); | ||
|
||
await fill_input(page, 'input[name="fullName"]', username); | ||
write_log(true, "Filled full name"); | ||
|
||
await fill_input(page, 'input[name="username"]', username); | ||
write_log(true, "Filled username"); | ||
|
||
await fill_input(page, 'input[name="password"]', password); | ||
write_log(true, "Filled password"); | ||
|
||
await page.click('button[type="submit"]'); | ||
write_log(true, "Clicked signup button"); | ||
|
||
await page.waitForSelector('select[title="Month:"]'); | ||
await page.select('select[title="Month:"]', '5'); | ||
|
||
await page.waitForSelector('select[title="Day:"]'); | ||
await page.select('select[title="Day:"]', '15'); | ||
|
||
await page.waitForSelector('select[title="Year:"]'); | ||
await page.select('select[title="Year:"]', '1995'); | ||
|
||
write_log(true, "Filled birthdate"); | ||
|
||
const nextButtonSelector = 'button._acan._acap._acaq._acas._aj1-._ap30'; | ||
await page.waitForSelector(nextButtonSelector, { visible: true, timeout: 60000 }); | ||
await page.click(nextButtonSelector); | ||
write_log(true, "Clicked continue button"); | ||
|
||
return true; | ||
} catch (error) { | ||
write_log(false, `Error in fill_instagram_signup: ${error.message}`); | ||
throw error; | ||
} | ||
} | ||
async function delay(ms) { | ||
return new Promise(resolve => setTimeout(resolve, ms)); | ||
} | ||
|
||
// Buying emails from https://antibotmail.com/ | ||
|
||
async function generate_email() { | ||
try { | ||
write_log(true, 'Generating email'); | ||
const payload = { | ||
"X-ABM-ApiKey": antibotmail_api_key, | ||
"mailcode": `${mailProvider}_TEMP`, | ||
"quantity": 1, | ||
"softId": "6929294f-658f-4c6c-ae99-5363f9d8e119-CruelDev69" | ||
}; | ||
const headers = { | ||
"content-type": "application/json" | ||
}; | ||
|
||
while (true) { | ||
const response = await axios.post('https://api.antibotmail.com/api/mail/buy', payload, { headers }); | ||
if (response.data && response.data.Data && response.data.Data.Emails && response.data.Data.Emails.length > 0) { | ||
// It returns email's password too, you can use it to generate email verified accounts. | ||
return response.data.Data.Emails[0].Email; | ||
} else { | ||
write_log(false, 'No email generated, retrying...'); | ||
} | ||
await new Promise(resolve => setTimeout(resolve, 2000)); | ||
} | ||
} catch (error) { | ||
write_log(false, `Error generating email: ${error.message}`); | ||
throw error; | ||
} | ||
} | ||
|
||
async function create_instagram_account(browser, email) { | ||
try { | ||
const page = await browser.newPage(); | ||
|
||
// Generatinng username and password for your account. | ||
const randomNumber = Math.floor(Math.random() * 100); | ||
const username = "x." + uniqueNamesGenerator({ dictionaries: [names] }) + `._${randomNumber + randomNumber}`; | ||
const password = crypto.randomBytes(10).toString('hex'); | ||
|
||
const success = await fill_instagram_signup(page, username, password, email); | ||
if (success) { | ||
write_log(true, `Account created successfully: ${email} | ${password}`); | ||
accounts.write(`Email: ${email} | Password: ${password}\n`); | ||
} else { | ||
write_log(false, "Failed to create Instagram account, retrying..."); | ||
} | ||
|
||
await delay(60000); | ||
|
||
await page.close(); | ||
} catch (error) { | ||
write_log(false, `Error creating Instagram account: ${error.message}`); | ||
throw error; | ||
} | ||
} | ||
|
||
(async () => { | ||
const blue = '\x1b[38;5;93m'; | ||
const reset = '\x1b[0m'; | ||
const bright = '\x1b[1m'; | ||
let art = | ||
`${bright} | ||
██╗███╗ ██╗███████╗████████╗ █████╗ ██████╗ ██████╗ █████╗ ███╗ ███╗ ██████╗ ███████╗███╗ ██╗███████╗██████╗ █████╗ ████████╗ ██████╗ ██████╗ | ||
██║████╗ ██║██╔════╝╚══██╔══╝██╔══██╗██╔════╝ ██╔══██╗██╔══██╗████╗ ████║ ██╔════╝ ██╔════╝████╗ ██║██╔════╝██╔══██╗██╔══██╗╚══██╔══╝██╔═══██╗██╔══██╗ | ||
██║██╔██╗ ██║███████╗ ██║ ███████║██║ ███╗██████╔╝███████║██╔████╔██║ ██║ ███╗█████╗ ██╔██╗ ██║█████╗ ██████╔╝███████║ ██║ ██║ ██║██████╔╝ | ||
██║██║╚██╗██║╚════██║ ██║ ██╔══██║██║ ██║██╔══██╗██╔══██║██║╚██╔╝██║ ██║ ██║██╔══╝ ██║╚██╗██║██╔══╝ ██╔══██╗██╔══██║ ██║ ██║ ██║██╔══██╗ | ||
██║██║ ╚████║███████║ ██║ ██║ ██║╚██████╔╝██║ ██║██║ ██║██║ ╚═╝ ██║ ╚██████╔╝███████╗██║ ╚████║███████╗██║ ██║██║ ██║ ██║ ╚██████╔╝██║ ██║ | ||
╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ | ||
${reset} | ||
`; | ||
art = art.replace(/█/g, `${blue}█${reset}`); | ||
console.log(art); | ||
|
||
try { | ||
const email = await generate_email(); | ||
if (email) { | ||
const browser = await puppeteer.launch(BROWSER_CONFIG); | ||
await create_instagram_account(browser, email); | ||
await browser.close(); | ||
} else { | ||
write_log(false, "Failed to generate email."); | ||
} | ||
} catch (error) { | ||
write_log(false, `Main script error: ${error.message}`); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "instaaccountgenerator", | ||
"version": "1.0.0", | ||
"description": "Twitter Account Generator Made By Ahad#3257", | ||
"main": "main.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "Ahad#3257", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@cliqz/adblocker-puppeteer": "^1.27.3", | ||
"anticaptcha": "^2.2.0", | ||
"axios": "^1.7.2", | ||
"cross-fetch": "^4.0.0", | ||
"puppeteer": "^22.10.0", | ||
"puppeteer-extra": "^3.3.6", | ||
"puppeteer-extra-plugin-recaptcha": "^3.6.8", | ||
"puppeteer-extra-plugin-stealth": "^2.11.2", | ||
"unique-names-generator": "^4.7.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/CruelDev69/InstaGen.git" | ||
}, | ||
"keywords": [ | ||
"instagram", | ||
"accountgenerator", | ||
"tokengenerator" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/CruelDev69/InstaGen/issues" | ||
}, | ||
"homepage": "https://github.com/CruelDev69/InstaGen#readme" | ||
} |
Empty file.
Empty file.