AmazingDev

ttt

Jul 13th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  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.  
  11.  
  12. # VAR DECLAR
  13.  
  14. english_dictionary_object = requests.get("http://www.mieliestronk.com/corncob_lowercase.txt")
  15. english_dictionary_string = english_dictionary_object.text
  16. english = english_dictionary_string.split("\n")
  17.  
  18. # FUNCTIONS
  19.  
  20. def account_avaiable(name):
  21.  
  22. try:
  23. response = requests.get("https://api.mojang.com/users/profiles/minecraft/" + str(name))
  24. if response.text != "" or None:
  25. pass
  26. else:
  27. available = "y"
  28. return available
  29.  
  30. except:
  31. not_available = "n"
  32. return not_available
  33.  
  34. def generate_account_name():
  35.  
  36. name = " "
  37. while True:
  38. name = random.choice(list(english))
  39. if len(name) < 17:
  40. if len(name) > 2:
  41. return name
  42.  
  43. def allwords():
  44. for i in range(1):
  45. print('=-- OG ACCOUNT SCAN: ' + str(len(english)) + " NAMES ---=\n\n")
  46.  
  47. i = 0
  48. amount = len(english)
  49. for i in range(len(english)):
  50. name = english[i]
  51. i += 1
  52. av = account_avaiable(name)
  53. if av == "y":
  54. print("Found! ---> " + str(name) + " (" + str(i) + "/" + str(amount)+ ")")
  55. input("")
  56.  
  57. # PROGRAM
  58.  
  59. while True:
  60. list_of_previous_names = []
  61. os.system('cls')
  62. amount = input("How many og accounts would you like? ")
  63. show_web = input("Would you like websites to show (y/n)? ")
  64. os.system('cls')
  65.  
  66. print('=-- OG ACCOUNT SCAN: ' + str(amount) + " ACCOUNTS ---=\n\n")
  67.  
  68. i = 0
  69. amount_found = 0
  70. while int(amount_found) != int(amount):
  71. i += 1
  72. name = generate_account_name()
  73. av = account_avaiable(name)
  74. if av == "y":
  75. if name in list_of_previous_names:
  76. pass
  77. else:
  78. amount_found += 1
  79. print("Found! ---> " + str(name) + " (" + str(amount_found) + "/" + str(amount) + " - " + str(i) + " tries!)")
  80. list_of_previous_names.append(name)
  81. if show_web == "y":
  82. os.system('start https://namemc.com/search?q=' + str(name))
  83. else:
  84. pass
  85. ## while int(amount_found) != int(amount):
  86. ## i += 1
  87. ## name = generate_account_name()
  88. ## av = account_avaiable(name)
  89. ## if av == "y":
  90. ## if name in list_of_previous_names:
  91. ## pass
  92. ## else:
  93. ## site = requests.get("https://namemc.com/search?q=" + str(name))
  94. ## aval = "Available" in site.text
  95. ## print(aval)
  96. ## if aval == True:
  97. ## print("Found! ---> " + str(name) + " (" + str(amount_found) + "/" + str(amount) + " - " + str(i) + " tries!)")
  98. ## list_of_previous_names.append(name)
  99. ## amount_found += 1
  100. ## if show_web == "y":
  101. ## os.system('start https://namemc.com/search?q=' + str(name))
  102. ## else:
  103. ## pass
  104.  
  105. input("\nDone!")
Advertisement
Add Comment
Please, Sign In to add comment