Guest User

Untitled

a guest
Apr 14th, 2026
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. import requests
  2. import random
  3. import string
  4. import re
  5. import time
  6. from colorama import init, Fore, Style
  7.  
  8. init(autoreset=True)
  9.  
  10. URL = "http://kicq.ru/reg117623/index.php"
  11.  
  12. def rand_string(chars: str, min_len: int, max_len: int) -> str:
  13. length = random.randint(min_len, max_len)
  14. return ''.join(random.choice(chars) for _ in range(length))
  15.  
  16. def register_account():
  17. nickname = rand_string(string.ascii_lowercase + string.digits, 6, 12)
  18. email = rand_string(string.ascii_lowercase + string.digits, 8, 16) + "@gmail.com"
  19. password_chars = string.ascii_letters + string.digits
  20. password = rand_string(password_chars, 6, 8)
  21.  
  22. data = {
  23. "new_user_email": email,
  24. "new_user_nickname": nickname,
  25. "new_user_password": password
  26. }
  27.  
  28. try:
  29. r = requests.post(URL, data=data, timeout=15)
  30. r.encoding = "windows-1251"
  31. html = r.text
  32.  
  33. uin_match = re.search(r"KICQ UIN:\s*(\d+)", html)
  34. pwd_match = re.search(r"Password:\s*([^<\s]+)", html)
  35.  
  36. if not uin_match or not pwd_match:
  37. return None, None, None, "[-] НЕТ ДАННЫХ"
  38.  
  39. suka = uin_match.group(1)
  40. password = pwd_match.group(1)
  41.  
  42. return suka, email, password, None
  43.  
  44. except Exception as e:
  45. return None, None, None, f"[-] ОШИБКА: {e}"
  46.  
  47.  
  48. def main():
  49. try:
  50. count = int(input("Сколько? "))
  51. if count < 1:
  52. print(Fore.RED + "Число должно быть больше 0!")
  53. return
  54. except ValueError:
  55. print(Fore.RED + "Введите корректное число!")
  56. return
  57.  
  58. filename = input("Куда сохранять(иначе accounts.txt)? ").strip()
  59. if not filename:
  60. filename = "accounts.txt"
  61.  
  62. if not filename.endswith(".txt"):
  63. filename += ".txt"
  64.  
  65. print(Fore.GREEN + f"\nНачинаем...\n")
  66.  
  67. successful = 0
  68.  
  69. with open(filename, "a", encoding="utf-8") as f:
  70. for i in range(1, count + 1):
  71. print(Fore.WHITE + f"[{i}/{count}] Регистрация...", end=" ")
  72.  
  73. uin, email, password, error = register_account()
  74.  
  75. if error:
  76. print(Fore.RED + f"[-] {error}")
  77. time.sleep(1)
  78. continue
  79.  
  80. line = f"{uin} | {email} | {password}\n"
  81. f.write(line)
  82. f.flush()
  83.  
  84. print(Fore.GREEN + f" {uin} | {email} | {password}")
  85.  
  86. successful += 1
  87.  
  88.  
  89. if __name__ == "__main__":
  90. main()
Advertisement
Add Comment
Please, Sign In to add comment