Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Optimizations / Fixes
Browse files Browse the repository at this point in the history
optimization fixes to tools
  • Loading branch information
Mickey758 committed Oct 10, 2022
1 parent 58d0275 commit 802ef14
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ binary
!SOURCES.txt
!top_level.txt
!dependency_links.txt
test.*
test*

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ def tools():
clear()
ascii()
print("\n\n")
set_title('Info')
message_box('Creator Info',f'Discord: {discord_name}\nCracked.io: MickeyYe\nGithub: Mickey758\n\nReport Bugs / Request Modules',0)
need_update = check_updates()
if not need_update: home()
Expand Down
2 changes: 1 addition & 1 deletion modules/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ def get_file(title:str,type:str):
get_file(title="Combo File",type="Combo File")
"""
root = Tk()
root.lift()
root.withdraw()
root.lift()
root.iconbitmap(default=ICON_PATH)
response = filedialog.askopenfilename(title=title,filetypes=((type, '.txt'),('All Files', '.*'),))
root.destroy()
Expand Down
4 changes: 2 additions & 2 deletions modules/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def starter(modules_lst:list):
set_title(f"Calani AIO | Getting Ready | {discord_name}")
def initializeChecker(account:str):
if ':' in account:
email,password = account.split(":")
email,password = account.split(":",1)
if email and password:
for module in modules_lst:
modules_list[module].check(email,password)
Expand Down Expand Up @@ -100,7 +100,7 @@ def initializeChecker(account:str):
print("\n")

print(f" [{cyan}>{reset}] Pick Proxy File")
file_path = get_file("Proxy File File",type="Proxy File")
file_path = get_file("Proxy File",type="Proxy File")
if not file_path:
print(f" [{red}>{reset}] No File Detected")
sleep(1)
Expand Down
20 changes: 15 additions & 5 deletions modules/tools/capture_remove.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def start():
return
print(f" [{cyan}>{reset}] Imported {green}{len(original_combos)}{reset} Combos")
if duplicates != 0:
print(f" [{cyan}>{reset}] Removed {duplicates} Duplicates")
print(f" [{cyan}>{reset}] Removed {green}{duplicates}{reset} Duplicates")
sleep(1)
Checker.time = get_time()
edit(after_combos)
Expand All @@ -33,12 +33,22 @@ def start():
input(f" [{cyan}>{reset}] Press Enter To Go Back")
return
def edit(combos):
clear()
ascii()
print("\n\n")
print(f" [{cyan}Please Wait, Removing Capture{reset}]")
combo_number = 0
to_save = []
for combo in combos:
combo_number += 1
print(f' [{cyan}{int((combo_number/len(combos))*100)}%{reset}]',end='\r')
if not ":" in combo:
continue

email = combo.split(":")[0].rstrip()
password = combo.split(":")[1]
email,password = combo.split(":",1)
if " " in password: password = password.split(" ")[0]
log(None,":".join([email,password]))
save("Capture_Remove",None,Checker.time,":".join([email,password]))
new_combo = ':'.join([email,password])

if new_combo not in to_save: to_save.append(combo)

save("Capture_Remove",None,Checker.time,"\n".join(to_save))
12 changes: 7 additions & 5 deletions modules/tools/combo_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,32 +37,34 @@ def edit(combos):
clear()
ascii()
print("\n\n")
print(f" [{cyan}Please Wait, Editing Combo{reset}]")
print(f" [{cyan}Please Wait, Editing Combos{reset}]")
acc = 0
for combo in combos:
acc += 1
print(f' [{cyan}{int((acc/len(combos))*100)}%{reset}]')
print(f' [{cyan}{int((acc/len(combos))*100)}%{reset}]',end='\r')
if not ":" in combo: continue
email,password = combo.split(":")
email,password = combo.split(":",1)
if not email or not password: continue

passwords = []
passwords.append(password)
passwords.append(f"{password[0].upper()}{password[1:]}")
passwords.append(f"{password[0].lower()}{password[1:]}")
passwords.append(f"{password[0].upper()}{password[1:]}1")
passwords.append(f"{password[0].upper()}{password[1:]}12")
passwords.append(f"{password[0].upper()}{password[1:]}123")
passwords.append(f"{password[0].upper()}{password[1:]}1234")
passwords.append(f"{password[0].upper()}{password[1:]}12345")
passwords.append(f"{password[0].upper()}{password[1:]}*")
passwords.append(f"{password[0].upper()}{password[1:]}!")
passwords.append(f"{password[0].upper()}{password[1:]}?")
passwords.append(f"{password[0].upper()}{password[1:]}@")
passwords.append(f"{password[0].lower()}{password[1:]}")
passwords.append(f"{password[0].lower()}{password[1:]}1")
passwords.append(f"{password[0].lower()}{password[1:]}12")
passwords.append(f"{password[0].lower()}{password[1:]}123")
passwords.append(f"{password[0].lower()}{password[1:]}1234")
passwords.append(f"{password[0].lower()}{password[1:]}12345")
passwords.append(f"{password[0].lower()}{password[1:]}*")
passwords.append(f"{password[0].lower()}{password[1:]}!")
passwords.append(f"{password[0].lower()}{password[1:]}?")
passwords.append(f"{password[0].lower()}{password[1:]}@")
Expand All @@ -82,4 +84,4 @@ def edit(combos):
passwords.append(f"{password}*$@")
for password in passwords:
edited.append(":".join([email,password]))
save("Combo_Editor",None,Checker.time,"\n".join(edited))
save("Combo_Editor",None,Checker.time,"\n".join(list(set(edited))))
9 changes: 8 additions & 1 deletion modules/tools/domain_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,18 @@ def sort(combos):
ascii()
print("\n\n")
print(f" [{cyan}Please Wait, Sorting Domains{reset}]")
combo_number = 0
domains = {}
for combo in combos:
combo_number += 1
print(f' [{cyan}{int((combo_number/len(combos))*100)}%{reset}]',end='\r')
if not ":" in combo: continue

email = combo.split(":")[0]
if not "@" in email: continue

domain = email.split("@")[1].lower().split(".")[0]
save(f"@{domain}",None,Checker.time,combo)
if domain not in domains: domains[domain] = []
domains[domain].append(combo)
for domain in domains:
save(f"@{domain}",None,Checker.time,'\n'.join(domains[domain]))
15 changes: 7 additions & 8 deletions modules/tools/proxy_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def start():
print(f" [{cyan}Selected Proxy Type: {Checker.proxy_type.title()}{reset}]")
print("\n")
print(f" [{cyan}>{reset}] Pick Proxy File")
sleep(1)
file_path = get_file("Proxy File",type="Proxy File")
if not file_path:
print(f" [{cyan}No File Detected{reset}]")
Expand All @@ -31,10 +30,10 @@ def start():
print(f" [{red}>{reset}] No Proxies Detected")
sleep(1)
return
print(f" [{cyan}Imported {len(before_proxies)} Proxies{reset}]")
print(f" [{cyan}>{reset}] Imported {green}{len(before_proxies)}{reset} Accounts")
if duplicates != 0:
print(f" [{cyan}Removed {duplicates} Duplicates{reset}]")
sleep(1)
print(f" [{cyan}>{reset}] Removed {green}{duplicates}{reset} Duplicates")
sleep(0.5)

Checker.checking = True
Checker.time = get_time()
Expand All @@ -52,7 +51,7 @@ def start():
mainpool.imap_unordered(func=check,iterable=Checker.accounts)
mainpool.close()
mainpool.join()
sleep(5)
sleep(1)
Checker.checking = False
print("\n\n")
print(f" [{cyan}>{reset}] Finished Checking Proxies")
Expand All @@ -70,13 +69,13 @@ def check(proxy:str):
s.mount('https://', HTTPAdapter(max_retries=retries))

s.get("http://httpbin.org/get")
Checker.remaining.remove(proxy)
Checker.good += 1
Checker.cpm += 60

if not Checker.cui: log("good",proxy,Checker.proxy_type.title())
save(Checker.proxy_type.title(),"good",Checker.time,proxy)
return
except:
Checker.bad += 1
finally:
Checker.remaining.remove(proxy)
Checker.bad += 1
return
4 changes: 2 additions & 2 deletions modules/tools/proxy_scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ def start():
print(f" [{cyan}>{reset}] Imported {green}{len(original_links)}{reset} Links")
if duplicates != 0:
print(f" [{cyan}>{reset}] Removed {green}{duplicates}{reset} Duplicates")
sleep(1)
sleep(0.5)
scrape(after_links)
case "2": scrape()
case "x": return

def scrape(links:str=None):
def scrape(links:list=None):
Checker.time = get_time()
proxies = []
if not links: links = default
Expand Down
2 changes: 1 addition & 1 deletion modules/variables.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from threading import Lock
lock = Lock()
version = "1.0.2.1"
version = "1.0.2.2"
discord_name = "MickeyYe#9423"
class Checker:
bad = 0
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.2.1
1.0.2.2

0 comments on commit 802ef14

Please sign in to comment.