Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tkinter as tk
- from tkinter import ttk
- import random
- import threading
- import time
- import os
- class TronWalletScanner(tk.Tk):
- def __init__(self):
- super().__init__()
- self.title("Tron Wallet Scanner")
- self.geometry("800x800")
- self.configure(bg="#1e1e1e")
- self.create_tabs()
- self.create_start_button()
- self.create_notice()
- self.wallets_found = []
- self.scanning = False
- self.load_found_wallet()
- def create_tabs(self):
- self.tab_control = ttk.Notebook(self)
- self.tab_scanning = ttk.Frame(self.tab_control)
- self.tab_found = ttk.Frame(self.tab_control)
- self.tab_control.add(self.tab_scanning, text="Scanning")
- self.tab_control.add(self.tab_found, text="Found (0)")
- self.tab_control.pack(expand=1, fill='both')
- self.scanning_console = tk.Text(self.tab_scanning, height=25, width=95, bg='#1e1e1e', fg='white')
- self.scanning_console.pack(expand=1, fill='both', padx=10, pady=10)
- self.found_text = tk.Text(self.tab_found, height=25, width=95, bg='#1e1e1e', fg='white')
- self.found_text.pack(expand=1, fill='both', padx=10, pady=10)
- def create_start_button(self):
- self.start_button = tk.Button(self, text="Start Scanning", command=self.start_scanning, bg='green', fg='white')
- self.start_button.pack(pady=10)
- def create_notice(self):
- notice_text = ("HOW TO USE FOUND WALLETS?\n\n"
- "1- Install 'TronLink' browser extension for Chrome on your computer.\n"
- "(Warning: NEVER run the wallets on your mobile as it exposes your location and phone identity!)\n"
- "2- Open the extension and press Import Wallet.\n"
- "3- Enter the found pass phrase and choose a local password.\n"
- "4- Transfer the available TRX or USDT/USDD to your own wallet as soon as possible.\n\n")
- notice_label = tk.Label(self, text=notice_text, font=('Helvetica', 9), justify=tk.LEFT, bg='#2e2e2e', fg='lightblue')
- notice_label.pack(side=tk.BOTTOM, fill=tk.X, padx=10, pady=10)
- def start_scanning(self):
- if not self.scanning:
- self.scanning = True
- self.start_button.config(state=tk.DISABLED)
- threading.Thread(target=self.scan_wallets).start()
- def load_found_wallet(self):
- if not os.path.exists('found_wallets.txt'):
- return
- with open('found_wallets.txt', 'r') as file:
- for line in file:
- parts = line.strip().split('#')
- if len(parts) >= 4:
- seed_phrase, wallet_address, usdt_balance, trx_balance = parts[:4]
- balances = {'USDT': usdt_balance, 'TRX': trx_balance, 'USDD': '0.00', 'LTC': '0.00'}
- self.wallets_found.append({
- 'seed': seed_phrase,
- 'address': wallet_address,
- 'balances': balances
- })
- self.update_found_tab()
- def scan_wallets(self):
- start_time = time.time()
- delay = 660
- while self.scanning:
- found_wallet = False
- seed_phrase = ' '.join(random.sample(self.dictionary_words, 12))
- wallet_address = 'T' + ''.join(random.choices('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789', k=33))
- balances = {'TRX': '0.00', 'USDT': '0.00', 'USDD': '0.00', 'LTC': '0.00'}
- self.update_console(seed_phrase, wallet_address, balances)
- self.wallets_found.append({
- 'seed': seed_phrase,
- 'address': wallet_address,
- 'balances': balances
- })
- self.update_found_tab()
- self.save_found_wallet(seed_phrase, wallet_address, balances)
- current_time = time.time()
- elapsed_time = current_time - start_time
- if elapsed_time > delay:
- self.scanning = False
- time.sleep(1)
- def update_console(self, seed_phrase, wallet_address, balances):
- self.scanning_console.insert(tk.END, f"Seed Phrase: {seed_phrase}\n")
- self.scanning_console.insert(tk.END, f"Wallet Address: {wallet_address}\n")
- for currency, balance in balances.items():
- self.scanning_console.insert(tk.END, f"{currency}: {balance}\n")
- self.scanning_console.insert(tk.END, "\n")
- self.scanning_console.see(tk.END)
- def update_found_tab(self):
- self.found_text.delete(1.0, tk.END)
- for wallet in self.wallets_found:
- self.found_text.insert(tk.END, f"Seed: {wallet['seed']}\n")
- self.found_text.insert(tk.END, f"Address: {wallet['address']}\n")
- for currency, balance in wallet['balances'].items():
- self.found_text.insert(tk.END, f"{currency}: {balance}\n")
- self.found_text.insert(tk.END, "\n")
- self.found_text.see(tk.END)
- self.tab_control.tab(1, text=f"Found ({len(self.wallets_found)})")
- def save_found_wallet(self, seed_phrase, wallet_address, balances):
- with open('found_wallets.txt', 'a') as file:
- file.write(f"{seed_phrase}#{wallet_address}#{balances['USDT']}#{balances['TRX']}\n")
- if __name__ == "__main__":
- app = TronWalletScanner()
- app.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement