Untitled
unknown
python
2 years ago
3.9 kB
6
Indexable
Never
import os os.system("pip install -U colorama amino.fix secmail requests names bs4 pyfiglet") os.system("clear") import json,names,secmail,time,requests,pyfiglet,aminofix from colorama import Fore as pl from bs4 import BeautifulSoup from aminofix.lib.util.helpers import generate_device_info file_name = "accounts.json" r = pl.RED rv = pl.LIGHTGREEN_EX v = pl.WHITE b = pl.LIGHTBLUE_EX y = pl.YELLOW m = pl.LIGHTMAGENTA_EX t = pl.CYAN pd = pl.LIGHTYELLOW_EX def generate_image(): if os.path.exists('image.png'): os.remove('image.png') with open('image.png', 'wb') as handle: response = requests.get("https://source.unsplash.com/random/480x480?sig=1", stream=True) if not response.ok: print(response) for block in response.iter_content(1024): if not block: break handle.write(block) def nickss(): nick = names.get_last_name() return nick def email(): mail = secmail.SecMail() email = mail.generate_email() return email def get_message(email): time.sleep(3) inbox = secmail.SecMail().get_messages(email=email).id verify_messageId = inbox[0] readed_message = secmail.SecMail().read_message(email, verify_messageId).htmlBody beautiful_soup = BeautifulSoup(readed_message, "html.parser") quotes = beautiful_soup.find_all("a") return quotes[0].get("href") def api(url): return requests.post("https://captcha-do-mega.herokuapp.com/", data={"text": url}).json()['captcha'] def device(): ula = None ula = generate_device_info() return ula["device_id"] def clear_json(filename=file_name): data = [] if os.path.exists(filename): f = open(file_name) data = json.load(f) with open(filename,'w') as fl: fl.write("[]") return data def write_json(new_data, filename=file_name): with open(filename,'r+') as file: file_data = json.load(file) file_data.append(new_data) file.seek(0) json.dump(file_data, file, indent = 4) if __name__ == '__main__': print("\n\n\n\n") plak = pyfiglet.figlet_format("ACCGEN-V1.5") print(plak) print(f"{v}[{r}YOUTUBE{v}][{pd}https://youtu.be/mCdA4bJAGGk{v}]\n") p = input(f"{v}[{m}ACCGEN-V1.5{v}][{r}Password{v}]: ") ch = input(f"{v}[{m}XXX-ACCGEN-XXX{v}][{b}Community Link{v}]: ") com = (aminofix.Client().get_from_code(ch).comId) data_old = clear_json() countAcc = 0 if data_old != 0: for account in data_old: y = {"email": account["email"], "password": account["password"], "device": account["device"] } write_json(y) while True: try: generate_image() deviceId = device() client = aminofix.Client(deviceId=deviceId) mail = email() nickname = nickss() client.request_verify_code(email=mail) linkCode = get_message(email=mail) print(linkCode) code=input("code here:") client.register(nickname=nickname, email=mail, password=p, verificationCode=code, deviceId=deviceId) client.login(email=mail, password=p) with open("image.png", "rb") as image: client.edit_profile(icon=image) client.join_community(com) y = {"email": mail, "password": p, "device": deviceId } write_json(y) countAcc += 1 print(f"{v}[{m}ACCGEN-V1.5{v}][{m}Accounts{v}]\n") () except Exception as e: if str(e).find('ActionNotAllowed')!=1: print(f"{v}[{m}XXX-ACCGEN-XXX{v}][{b}The End{v}]\n") else: print(e) break print(f"{v}[{m}XXX-ACCGEN-XXX{v}][{r}Cuentas Generadas{v}]: " + str(countAcc))