Get Pushover key status (without revealing full keys).
()
| 19355 | }) |
| 19356 | |
| 19357 | # Define progress callback to emit real-time updates |
| 19358 | def progress_callback(event_type, data): |
| 19359 | socketio.emit('lynis_update', { |
| 19360 | 'type': 'lynis_progress', |
| 19361 | 'event': event_type, |
| 19362 | 'ip': target_ip, |
| 19363 | 'message': data.get('message', ''), |
| 19364 | 'stage': data.get('stage'), |
| 19365 | 'details': data.get('details') |
| 19366 | }) |
| 19367 | |
| 19368 | action = LynisPentestSSH(shared_data) |
| 19369 | status = action.run_manual(target_ip, username, password, progress_callback=progress_callback) |
| 19370 | success = status == 'success' |
| 19371 | |
| 19372 | # Emit final result |
| 19373 | if success: |
| 19374 | socketio.emit('lynis_update', { |
| 19375 | 'type': 'lynis_completed', |
nothing calls this directly
no test coverage detected