daily pastebin goal
14%
SHARE
TWEET

Untitled

AmazingDev Jul 12th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #MCACCOUNTFINDER.PY - Austin Lincoln (Rightful property of Marcus Mikelic)
  2.  
  3. # IMPORTS
  4.  
  5. import requests
  6. import ast
  7. import random
  8. import os
  9. import time
  10. global available
  11.  
  12. # VAR DECLAR
  13.  
  14.  
  15. version = "1"
  16.  
  17. letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
  18.  
  19.  
  20. # MOJANG AUTH
  21.  
  22. print("[AUTH] Verifying version...")
  23. response = requests.get("https://pastebin.com/raw/mW8Xh2by")
  24.  
  25. if "enabled" in response.text:
  26.     enabled = True
  27. else:
  28.     enabled = False
  29.  
  30.  
  31. if enabled == True:
  32.  
  33.     os.system('cls')
  34.     print("[AUTH] Version verified, and connected to Mojang's API.")
  35.     time.sleep(2)
  36.     os.system('cls')
  37.     pass
  38.  
  39. else:
  40.  
  41.     os.system('cls')
  42.     print("[AUTH] Unable to communicate with Mojang's API. (Program disabled!)")
  43.  
  44. # FUNCTIONS
  45.  
  46. def account_avaiable(name):
  47.  
  48.     try:
  49.         response = requests.get("https://api.mojang.com/users/profiles/minecraft/" + str(name))
  50.         dictionary = ast.literal_eval(str(response.text))
  51.         if "name" in dictionary:
  52.             available = "y"
  53.         else:
  54.             pass
  55.  
  56.     except:
  57.         available = "n"
  58.    
  59.     return available
  60.  
  61. def generate_account_name(length):
  62.  
  63.     name = ""
  64.  
  65.     for i in range(length):
  66.         isletter = random.randint(0,1)
  67.         if isletter == 0:
  68.             addedchar = random.choice(letters)
  69.             name = str(name) + str(addedchar)
  70.         elif isletter == 1:
  71.             addedint = random.randint(0,9)
  72.             name = str(name) + str(addedint)
  73.         else:
  74.             pass
  75.  
  76.     return name
  77.  
  78. # PROGRAM
  79.  
  80. while True:
  81.  
  82.     length = input("Length to search: ")
  83.     maximumtimes = input("How many searches (do 'inf' for infinite searches): ")
  84.     print("")
  85.  
  86.     if maximumtimes == "inf":
  87.         print("=--- INFINITE SEARCH FOR " + str(length) + "-DIGIT-NAMES ---=\n")
  88.         i = 0
  89.         while True:
  90.             i += 1
  91.             name = generate_account_name(int(length))
  92.             account_available_thing = account_avaiable(name)
  93.             if account_available_thing == "y":
  94.                 print("AVAILABLE ---> " + str(name) + "<--- AVAILABLE (" + str(i) + ")")
  95.             else:
  96.                 pass
  97.  
  98.     else:
  99.         for i in length:
  100.             name = generate_account_name(int(length))
  101.             account_available_thing = account_avaiable(name)
  102.             if account_available_thing == "y":
  103.                 print("AVAILABLE ---> " + str(name) + "<--- AVAILABLE (" + str(i) + ")")
  104.             else:
  105.                 print("TAKEN: " + str(name) + " (" + str(i) + ")")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top