Stops the scanner.
(self)
| 2249 | self.logger.info(f"🚀 Port scan mode: FULL RANGE ({total_ports} ports, profile: {profile['label']})") |
| 2250 | self.logger.info(f" Command: nmap {nmap_args} {ip}") |
| 2251 | |
| 2252 | # Notify scan started |
| 2253 | if progress_callback: |
| 2254 | progress_callback('scanning', {'message': 'Stage 1: Port discovery'}) |
| 2255 | |
| 2256 | scan_start = time.time() |
| 2257 | self.logger.info(f"⏰ STAGE 1 START: {datetime.now().strftime('%H:%M:%S')}") |
| 2258 | |
| 2259 | # Execute the port discovery scan |
| 2260 | self.nm.scan(hosts=ip, arguments=nmap_args) |
| 2261 | |
| 2262 | scan_duration = time.time() - scan_start |