Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import random
- import string
- import re
- import time
- from colorama import init, Fore, Style
- init(autoreset=True)
- URL = "http://kicq.ru/reg117623/index.php"
- def rand_string(chars: str, min_len: int, max_len: int) -> str:
- length = random.randint(min_len, max_len)
- return ''.join(random.choice(chars) for _ in range(length))
- def register_account():
- nickname = rand_string(string.ascii_lowercase + string.digits, 6, 12)
- email = rand_string(string.ascii_lowercase + string.digits, 8, 16) + "@gmail.com"
- password_chars = string.ascii_letters + string.digits
- password = rand_string(password_chars, 6, 8)
- data = {
- "new_user_email": email,
- "new_user_nickname": nickname,
- "new_user_password": password
- }
- try:
- r = requests.post(URL, data=data, timeout=15)
- r.encoding = "windows-1251"
- html = r.text
- uin_match = re.search(r"KICQ UIN:\s*(\d+)", html)
- pwd_match = re.search(r"Password:\s*([^<\s]+)", html)
- if not uin_match or not pwd_match:
- return None, None, None, "[-] НЕТ ДАННЫХ"
- suka = uin_match.group(1)
- password = pwd_match.group(1)
- return suka, email, password, None
- except Exception as e:
- return None, None, None, f"[-] ОШИБКА: {e}"
- def main():
- try:
- count = int(input("Сколько? "))
- if count < 1:
- print(Fore.RED + "Число должно быть больше 0!")
- return
- except ValueError:
- print(Fore.RED + "Введите корректное число!")
- return
- filename = input("Куда сохранять(иначе accounts.txt)? ").strip()
- if not filename:
- filename = "accounts.txt"
- if not filename.endswith(".txt"):
- filename += ".txt"
- print(Fore.GREEN + f"\nНачинаем...\n")
- successful = 0
- with open(filename, "a", encoding="utf-8") as f:
- for i in range(1, count + 1):
- print(Fore.WHITE + f"[{i}/{count}] Регистрация...", end=" ")
- uin, email, password, error = register_account()
- if error:
- print(Fore.RED + f"[-] {error}")
- time.sleep(1)
- continue
- line = f"{uin} | {email} | {password}\n"
- f.write(line)
- f.flush()
- print(Fore.GREEN + f" {uin} | {email} | {password}")
- successful += 1
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment