|
19 | 19 | from ..config import Configuration |
20 | 20 | from ..util.color import Color |
21 | 21 | from ..util.timer import Timer |
22 | | -from ..util.logger import log_info, log_error, log_warning, log_debug |
| 22 | +from ..util.logger import log_info, log_error, log_warning, log_debug, mask_sensitive |
23 | 23 | from ..util.client_monitor import ClientMonitor, ClientConnection |
24 | 24 | from ..util.cleanup import CleanupManager |
25 | 25 | from ..util.adaptive_deauth import AdaptiveDeauthManager |
@@ -1412,7 +1412,7 @@ def on_credential_submission(self, mac_address: str, password: str, success: boo |
1412 | 1412 |
|
1413 | 1413 | # Log the attempt |
1414 | 1414 | if success: |
1415 | | - log_info('EvilTwin', f'Valid credentials from {mac_address}: {password}') |
| 1415 | + log_info('EvilTwin', f'Valid credentials from {mac_address}: {mask_sensitive(password)}') |
1416 | 1416 | Color.pl('\n{+} {G}SUCCESS! Valid credentials captured:{W}') |
1417 | 1417 | Color.pl(' {C}From:{W} {G}%s{W}' % mac_address) |
1418 | 1418 | Color.pl(' {C}Password:{W} {G}%s{W}' % password) |
@@ -1457,7 +1457,7 @@ def create_result(self, password: str, validation_time: float = 0.0) -> CrackRes |
1457 | 1457 | portal_template=getattr(Configuration, 'evil_twin_portal_template', 'generic') |
1458 | 1458 | ) |
1459 | 1459 |
|
1460 | | - log_info('EvilTwin', f'Created result for {self.target.essid}: {password}') |
| 1460 | + log_info('EvilTwin', f'Created result for {self.target.essid}: {mask_sensitive(password)}') |
1461 | 1461 | return result |
1462 | 1462 |
|
1463 | 1463 | def _setup_client_monitor(self, hostapd_log: str, dnsmasq_log: str): |
|
0 commit comments