Advertisement
Darkgeek

scanner

Aug 6th, 2024
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.38 KB | None | 0 0
  1. import tkinter as tk
  2. from tkinter import ttk
  3. import random
  4. import threading
  5. import time
  6. import os
  7.  
  8. class TronWalletScanner(tk.Tk):
  9.     def __init__(self):
  10.         super().__init__()
  11.         self.title("Tron Wallet Scanner")
  12.         self.geometry("800x800")
  13.         self.configure(bg="#1e1e1e")
  14.  
  15.         self.create_tabs()
  16.         self.create_start_button()
  17.         self.create_notice()
  18.  
  19.         self.wallets_found = []
  20.         self.scanning = False
  21.         self.load_found_wallet()
  22.  
  23.     def create_tabs(self):
  24.         self.tab_control = ttk.Notebook(self)
  25.  
  26.         self.tab_scanning = ttk.Frame(self.tab_control)
  27.         self.tab_found = ttk.Frame(self.tab_control)
  28.  
  29.         self.tab_control.add(self.tab_scanning, text="Scanning")
  30.         self.tab_control.add(self.tab_found, text="Found (0)")
  31.  
  32.         self.tab_control.pack(expand=1, fill='both')
  33.  
  34.         self.scanning_console = tk.Text(self.tab_scanning, height=25, width=95, bg='#1e1e1e', fg='white')
  35.         self.scanning_console.pack(expand=1, fill='both', padx=10, pady=10)
  36.  
  37.         self.found_text = tk.Text(self.tab_found, height=25, width=95, bg='#1e1e1e', fg='white')
  38.         self.found_text.pack(expand=1, fill='both', padx=10, pady=10)
  39.  
  40.     def create_start_button(self):
  41.         self.start_button = tk.Button(self, text="Start Scanning", command=self.start_scanning, bg='green', fg='white')
  42.         self.start_button.pack(pady=10)
  43.  
  44.     def create_notice(self):
  45.         notice_text = ("HOW TO USE FOUND WALLETS?\n\n"
  46.                        "1- Install 'TronLink' browser extension for Chrome on your computer.\n"
  47.                        "(Warning: NEVER run the wallets on your mobile as it exposes your location and phone identity!)\n"
  48.                        "2- Open the extension and press Import Wallet.\n"
  49.                        "3- Enter the found pass phrase and choose a local password.\n"
  50.                        "4- Transfer the available TRX or USDT/USDD to your own wallet as soon as possible.\n\n")
  51.  
  52.         notice_label = tk.Label(self, text=notice_text, font=('Helvetica', 9), justify=tk.LEFT, bg='#2e2e2e', fg='lightblue')
  53.         notice_label.pack(side=tk.BOTTOM, fill=tk.X, padx=10, pady=10)
  54.  
  55.     def start_scanning(self):
  56.         if not self.scanning:
  57.             self.scanning = True
  58.             self.start_button.config(state=tk.DISABLED)
  59.             threading.Thread(target=self.scan_wallets).start()
  60.  
  61.     def load_found_wallet(self):
  62.         if not os.path.exists('found_wallets.txt'):
  63.             return
  64.         with open('found_wallets.txt', 'r') as file:
  65.             for line in file:
  66.                 parts = line.strip().split('#')
  67.                 if len(parts) >= 4:
  68.                     seed_phrase, wallet_address, usdt_balance, trx_balance = parts[:4]
  69.                     balances = {'USDT': usdt_balance, 'TRX': trx_balance, 'USDD': '0.00', 'LTC': '0.00'}
  70.                     self.wallets_found.append({
  71.                         'seed': seed_phrase,
  72.                         'address': wallet_address,
  73.                         'balances': balances
  74.                     })
  75.         self.update_found_tab()
  76.  
  77.     def scan_wallets(self):
  78.         start_time = time.time()
  79.         delay = 660
  80.         while self.scanning:
  81.             found_wallet = False
  82.             seed_phrase = ' '.join(random.sample(self.dictionary_words, 12))
  83.             wallet_address = 'T' + ''.join(random.choices('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789', k=33))
  84.             balances = {'TRX': '0.00', 'USDT': '0.00', 'USDD': '0.00', 'LTC': '0.00'}
  85.  
  86.             self.update_console(seed_phrase, wallet_address, balances)
  87.  
  88.             self.wallets_found.append({
  89.                 'seed': seed_phrase,
  90.                 'address': wallet_address,
  91.                 'balances': balances
  92.             })
  93.             self.update_found_tab()
  94.             self.save_found_wallet(seed_phrase, wallet_address, balances)
  95.  
  96.             current_time = time.time()
  97.             elapsed_time = current_time - start_time
  98.             if elapsed_time > delay:
  99.                 self.scanning = False
  100.             time.sleep(1)
  101.  
  102.     def update_console(self, seed_phrase, wallet_address, balances):
  103.         self.scanning_console.insert(tk.END, f"Seed Phrase: {seed_phrase}\n")
  104.         self.scanning_console.insert(tk.END, f"Wallet Address: {wallet_address}\n")
  105.         for currency, balance in balances.items():
  106.             self.scanning_console.insert(tk.END, f"{currency}: {balance}\n")
  107.         self.scanning_console.insert(tk.END, "\n")
  108.         self.scanning_console.see(tk.END)
  109.  
  110.     def update_found_tab(self):
  111.         self.found_text.delete(1.0, tk.END)
  112.         for wallet in self.wallets_found:
  113.             self.found_text.insert(tk.END, f"Seed: {wallet['seed']}\n")
  114.             self.found_text.insert(tk.END, f"Address: {wallet['address']}\n")
  115.             for currency, balance in wallet['balances'].items():
  116.                 self.found_text.insert(tk.END, f"{currency}: {balance}\n")
  117.             self.found_text.insert(tk.END, "\n")
  118.         self.found_text.see(tk.END)
  119.         self.tab_control.tab(1, text=f"Found ({len(self.wallets_found)})")
  120.  
  121.     def save_found_wallet(self, seed_phrase, wallet_address, balances):
  122.         with open('found_wallets.txt', 'a') as file:
  123.             file.write(f"{seed_phrase}#{wallet_address}#{balances['USDT']}#{balances['TRX']}\n")
  124.  
  125.  
  126. if __name__ == "__main__":
  127.     app = TronWalletScanner()
  128.     app.mainloop()
  129.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement