|
| 1 | +# π NEW FEATURES - Auto Balance Checking & Performance Optimization |
| 2 | + |
| 3 | +## β¨ What's New |
| 4 | + |
| 5 | +### 1. **Automatic Balance Checking** π° |
| 6 | +- **Private Keys**: Automatically checks balance for all found private keys |
| 7 | +- **Seed Phrases**: Derives addresses from BIP39 seeds and checks balances |
| 8 | +- **Multi-Network**: Supports 14+ blockchains (ETH, BTC, BSC, POLYGON, SOL, TRX, etc.) |
| 9 | +- **USD Conversion**: Real-time price conversion to USD |
| 10 | +- **Withdrawal Status**: Shows if balance meets withdrawal thresholds |
| 11 | + |
| 12 | +### 2. **Performance Optimization** β‘ |
| 13 | +- **CPU Management**: Limits CPU usage to prevent system slowdown |
| 14 | +- **RAM Optimization**: Automatic memory cleanup and monitoring |
| 15 | +- **Smart Threading**: Adaptive thread pool based on system resources |
| 16 | +- **Batch Processing**: Large datasets processed in optimized batches |
| 17 | +- **No More Freezing**: Scanner won't slow down your computer! |
| 18 | + |
| 19 | +### 3. **Smart Caching** π§ |
| 20 | +- **5-Minute Cache**: Avoids redundant API calls |
| 21 | +- **Price Caching**: Cryptocurrency prices cached automatically |
| 22 | +- **Balance Caching**: Balance checks cached to speed up scans |
| 23 | + |
| 24 | +--- |
| 25 | + |
| 26 | +## π New Modules |
| 27 | + |
| 28 | +### `core/balance_checker.py` |
| 29 | +Advanced balance checker with multi-network support |
| 30 | +- 14+ blockchain networks |
| 31 | +- Automatic API fallback |
| 32 | +- Free endpoints (no API keys required) |
| 33 | +- USD price conversion via CoinGecko |
| 34 | + |
| 35 | +### `core/seed_balance_checker.py` |
| 36 | +BIP39 seed phrase balance checking |
| 37 | +- Validates 12/15/18/21/24-word seeds |
| 38 | +- Derives ETH addresses (m/44'/60'/0'/0/index) |
| 39 | +- Derives BTC addresses (P2PKH, P2WPKH, P2SH) |
| 40 | +- Checks multiple derivation indices |
| 41 | + |
| 42 | +### `core/performance_optimizer.py` |
| 43 | +CPU & RAM management system |
| 44 | +- Real-time resource monitoring |
| 45 | +- Intelligent thread pool sizing |
| 46 | +- Automatic throttling when system is stressed |
| 47 | +- Memory cleanup and garbage collection |
| 48 | + |
| 49 | +### `core/auto_balance_integration.py` |
| 50 | +Integrates balance checking into scanner |
| 51 | +- Automatic key balance checking |
| 52 | +- Automatic seed balance checking |
| 53 | +- Progress tracking |
| 54 | +- Results export to JSON |
| 55 | + |
| 56 | +--- |
| 57 | + |
| 58 | +## π― How It Works |
| 59 | + |
| 60 | +### During Scanning: |
| 61 | +1. **Scanner finds wallets/seeds** (existing functionality) |
| 62 | +2. **Performance optimizer monitors CPU/RAM** (NEW) |
| 63 | +3. **Auto-balancer checks all found items** (NEW) |
| 64 | +4. **Results saved to `balances_found.json`** (NEW) |
| 65 | + |
| 66 | +### Balance Checking Process: |
| 67 | +``` |
| 68 | +Found Private Key |
| 69 | + β |
| 70 | +Check Network (ETH/BTC/BSC/etc.) |
| 71 | + β |
| 72 | +Query Balance (with caching) |
| 73 | + β |
| 74 | +Convert to USD |
| 75 | + β |
| 76 | +Check Withdrawal Status |
| 77 | + β |
| 78 | +Save if Balance > 0 |
| 79 | +``` |
| 80 | + |
| 81 | +### Performance Optimization: |
| 82 | +``` |
| 83 | +System Resources |
| 84 | + β |
| 85 | +Monitor CPU % & RAM % |
| 86 | + β |
| 87 | +If > 70% β Throttle Operations |
| 88 | + β |
| 89 | +Batch Processing (50-1000 items/batch) |
| 90 | + β |
| 91 | +Garbage Collection Every 5 Batches |
| 92 | + β |
| 93 | +Adaptive Thread Pool (2-16 workers) |
| 94 | +``` |
| 95 | + |
| 96 | +--- |
| 97 | + |
| 98 | +## π§ Configuration |
| 99 | + |
| 100 | +### CPU/RAM Limits (editable in code): |
| 101 | +```python |
| 102 | +optimizer = PerformanceOptimizer( |
| 103 | + max_cpu_percent=70, # Max 70% CPU usage |
| 104 | + max_memory_percent=70 # Max 70% RAM usage |
| 105 | +) |
| 106 | +``` |
| 107 | + |
| 108 | +### Balance Check Settings: |
| 109 | +```python |
| 110 | +# Check first 5 derivation indices for each seed |
| 111 | +check_indices = 5 |
| 112 | + |
| 113 | +# Withdrawal thresholds |
| 114 | +thresholds = { |
| 115 | + 'ETH': 0.001, |
| 116 | + 'BTC': 0.0001, |
| 117 | + 'SOL': 0.01, |
| 118 | + 'TRX': 1.0 |
| 119 | +} |
| 120 | +``` |
| 121 | + |
| 122 | +--- |
| 123 | + |
| 124 | +## π Output Format |
| 125 | + |
| 126 | +### `balances_found.json`: |
| 127 | +```json |
| 128 | +{ |
| 129 | + "timestamp": 1730419200, |
| 130 | + "summary": { |
| 131 | + "keys_with_balance": 5, |
| 132 | + "seeds_with_balance": 2, |
| 133 | + "total_usd_value": 15234.56, |
| 134 | + "can_withdraw_count": 3 |
| 135 | + }, |
| 136 | + "keys_with_balance": [ |
| 137 | + { |
| 138 | + "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb", |
| 139 | + "crypto_type": "ETH", |
| 140 | + "balance": 1.23456789, |
| 141 | + "usd_value": 3045.67, |
| 142 | + "can_withdraw": true, |
| 143 | + "price_usd": 2467.89, |
| 144 | + "source_file": "metamask.txt" |
| 145 | + } |
| 146 | + ], |
| 147 | + "seeds_with_balance": [ |
| 148 | + { |
| 149 | + "seed_phrase": "word1 word2 word3...", |
| 150 | + "total_usd": 12188.89, |
| 151 | + "networks": { |
| 152 | + "ETH": { |
| 153 | + "addresses": [ |
| 154 | + { |
| 155 | + "index": 0, |
| 156 | + "address": "0x...", |
| 157 | + "balance": 4.567, |
| 158 | + "usd_value": 11234.56 |
| 159 | + } |
| 160 | + ] |
| 161 | + } |
| 162 | + } |
| 163 | + } |
| 164 | + ] |
| 165 | +} |
| 166 | +``` |
| 167 | + |
| 168 | +--- |
| 169 | + |
| 170 | +## π Usage |
| 171 | + |
| 172 | +### Command Line: |
| 173 | +```bash |
| 174 | +# Build with new features |
| 175 | +./BUILD_APPS.sh |
| 176 | + |
| 177 | +# Run scanner (balance checking is automatic) |
| 178 | +./dist/LulzSec-Forensic-Scanner |
| 179 | + |
| 180 | +# Results saved to: balances_found.json |
| 181 | +``` |
| 182 | + |
| 183 | +### In Code: |
| 184 | +```python |
| 185 | +from core.auto_balance_integration import AutoBalanceIntegration |
| 186 | +from config.api_config import APIConfig |
| 187 | + |
| 188 | +# Initialize |
| 189 | +api_config = APIConfig() |
| 190 | +auto_balance = AutoBalanceIntegration(api_config) |
| 191 | + |
| 192 | +# Check private keys |
| 193 | +keys_with_balance = auto_balance.check_private_keys(keys_list) |
| 194 | + |
| 195 | +# Check seed phrases |
| 196 | +seeds_with_balance = auto_balance.check_seed_phrases(seeds_list) |
| 197 | + |
| 198 | +# Get summary |
| 199 | +summary = auto_balance.get_summary() |
| 200 | +print(f"Total value: ${summary['total_usd_value']:.2f}") |
| 201 | + |
| 202 | +# Export results |
| 203 | +auto_balance.export_results("balances_found.json") |
| 204 | +``` |
| 205 | + |
| 206 | +--- |
| 207 | + |
| 208 | +## π Performance Improvements |
| 209 | + |
| 210 | +### Before (v1.0): |
| 211 | +- β Scans 10,000 files β System freezes |
| 212 | +- β CPU usage: 100% |
| 213 | +- β RAM usage: 95% |
| 214 | +- β No balance checking |
| 215 | +- β Manual analysis required |
| 216 | + |
| 217 | +### After (v2.0): |
| 218 | +- β
Scans 10,000 files β System responsive |
| 219 | +- β
CPU usage: <70% (throttled) |
| 220 | +- β
RAM usage: <70% (optimized) |
| 221 | +- β
Automatic balance checking |
| 222 | +- β
Results ready in `balances_found.json` |
| 223 | + |
| 224 | +--- |
| 225 | + |
| 226 | +## π Privacy & Security |
| 227 | + |
| 228 | +### API Usage: |
| 229 | +- **Free endpoints** - No API keys required for basic usage |
| 230 | +- **Optional keys** - Add your own keys in `api_config.json` for higher limits |
| 231 | +- **Rate limiting** - Automatic throttling to avoid bans |
| 232 | +- **Caching** - Minimizes API calls |
| 233 | + |
| 234 | +### Local Processing: |
| 235 | +- **No data sent to servers** (except balance checks via public APIs) |
| 236 | +- **All processing done locally** |
| 237 | +- **Results saved to local files only** |
| 238 | + |
| 239 | +--- |
| 240 | + |
| 241 | +## π Troubleshooting |
| 242 | + |
| 243 | +### "Module psutil not found": |
| 244 | +```bash |
| 245 | +pip install psutil --break-system-packages |
| 246 | +``` |
| 247 | + |
| 248 | +### High CPU/RAM usage: |
| 249 | +```python |
| 250 | +# Reduce max workers in core/performance_optimizer.py |
| 251 | +self.max_workers = 4 # Default: auto-calculated |
| 252 | +``` |
| 253 | + |
| 254 | +### Balance check errors: |
| 255 | +- Check internet connection |
| 256 | +- Verify addresses are valid |
| 257 | +- Try again (API might be rate-limited) |
| 258 | + |
| 259 | +### Slow balance checking: |
| 260 | +- Reduce `check_indices` for seeds (default: 5) |
| 261 | +- Increase batch size (default: 50 for keys, 10 for seeds) |
| 262 | + |
| 263 | +--- |
| 264 | + |
| 265 | +## π Supported Networks |
| 266 | + |
| 267 | +| Network | Symbol | Balance Check | USD Price | |
| 268 | +|---------|--------|--------------|-----------| |
| 269 | +| Ethereum | ETH | β
| β
| |
| 270 | +| Bitcoin | BTC | β
| β
| |
| 271 | +| Binance Smart Chain | BSC | β
| β
| |
| 272 | +| Polygon | MATIC | β
| β
| |
| 273 | +| Solana | SOL | β
| β
| |
| 274 | +| Tron | TRX | β
| β
| |
| 275 | +| Litecoin | LTC | β
| β
| |
| 276 | +| Dogecoin | DOGE | β
| β
| |
| 277 | +| Avalanche | AVAX | β
| β
| |
| 278 | +| Fantom | FTM | β
| β
| |
| 279 | +| Arbitrum | ARB | β
| β
| |
| 280 | +| Optimism | OP | β
| β
| |
| 281 | + |
| 282 | +--- |
| 283 | + |
| 284 | +## π Summary |
| 285 | + |
| 286 | +**New Features:** |
| 287 | +- β
Automatic balance checking for private keys |
| 288 | +- β
Automatic balance checking for seed phrases |
| 289 | +- β
CPU & RAM optimization (no more freezing!) |
| 290 | +- β
Multi-network support (14+ blockchains) |
| 291 | +- β
USD conversion with live prices |
| 292 | +- β
Smart caching system |
| 293 | +- β
Results export to JSON |
| 294 | + |
| 295 | +**Build & Run:** |
| 296 | +```bash |
| 297 | +# On Linux/Mac/Parrot OS |
| 298 | +./BUILD_APPS.sh |
| 299 | +./dist/LulzSec-Forensic-Scanner |
| 300 | + |
| 301 | +# On Windows |
| 302 | +BUILD_WINDOWS.bat |
| 303 | +dist\LulzSec-Forensic-Scanner.exe |
| 304 | + |
| 305 | +# Check results |
| 306 | +cat balances_found.json |
| 307 | +``` |
| 308 | + |
| 309 | +**Support:** @Lulz1337 |
0 commit comments